- Timestamp:
- 03/23/2024 03:07:38 PM (13 months ago)
- Location:
- powerkit/trunk
- Files:
-
- 14 edited
-
README.txt (modified) (2 diffs)
-
languages/powerkit.pot (modified) (2 diffs)
-
modules/basic-elements/templates/alerts.php (modified) (1 diff)
-
modules/basic-elements/templates/buttons.php (modified) (2 diffs)
-
modules/basic-elements/templates/collapsibles.php (modified) (1 diff)
-
modules/basic-elements/templates/separators.php (modified) (1 diff)
-
modules/basic-elements/templates/tabs.php (modified) (3 diffs)
-
modules/facebook/public/class-powerkit-facebook-fanpage-shortcode.php (modified) (1 diff)
-
modules/facebook/public/class-powerkit-facebook-fanpage-widget.php (modified) (2 diffs)
-
modules/pinterest/public/class-powerkit-pinterest-board-widget.php (modified) (2 diffs)
-
modules/pinterest/public/class-powerkit-pinterest-profile-widget.php (modified) (2 diffs)
-
modules/pinterest/public/class-powerkit-pinterest-shortcode.php (modified) (2 diffs)
-
modules/social-links/helpers/helper-powerkit-links.php (modified) (2 diffs)
-
powerkit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
powerkit/trunk/README.txt
r3012577 r3057392 2 2 Tags: share buttons, social links, Facebook, Twitter, Pinterest, Instagram, lightbox, slider, gallery, lazyload 3 3 Requires at least: 4.0 4 Tested up to: 6. 34 Tested up to: 6.4 5 5 Requires PHP: 5.4 6 Stable tag: 2.9. 16 Stable tag: 2.9.2 7 7 Contributors: codesupplyco 8 8 License: GPLv2 or later … … 83 83 84 84 == Changelog == 85 86 = 2.9.2 = 87 * Improved plugin security 85 88 86 89 = 2.9.1 = -
powerkit/trunk/languages/powerkit.pot
r3012577 r3057392 1 # Copyright (C) 202 3powerkit1 # Copyright (C) 2024 powerkit 2 2 # This file is distributed under the same license as the powerkit package. 3 3 msgid "" … … 3275 3275 msgstr "" 3276 3276 3277 #: modules/social-links/helpers/helper-powerkit-links.php:5 73277 #: modules/social-links/helpers/helper-powerkit-links.php:59 3278 3278 msgid "Website" 3279 3279 msgstr "" 3280 3280 3281 3281 #. translators: Social Settings Link. 3282 #: modules/social-links/helpers/helper-powerkit-links.php:40 33282 #: modules/social-links/helpers/helper-powerkit-links.php:405 3283 3283 msgid "Please select social links in <object><a href=\"%s\" target=\"_blank\">Social Links Settings</a></object>." 3284 3284 msgstr "" 3285 3285 3286 #: modules/social-links/helpers/helper-powerkit-links.php:55 63286 #: modules/social-links/helpers/helper-powerkit-links.php:558 3287 3287 msgid "Social Links not found." 3288 3288 msgstr "" -
powerkit/trunk/modules/basic-elements/templates/alerts.php
r2239653 r3057392 91 91 $output = sprintf( 92 92 '<div class="pk-alert pk-alert-%s%s" role="alert" >%s%s</div>', 93 $atts['type'],94 $dm_class,95 $dm_button,96 $content93 esc_attr( $atts['type'] ), 94 esc_attr( $dm_class ), 95 wp_kses( $dm_button ), 96 wp_kses( $content, 'post' ), 97 97 ); 98 98 -
powerkit/trunk/modules/basic-elements/templates/buttons.php
r2239653 r3057392 105 105 */ 106 106 function powerkit_basic_shortcodes_button( $output, $atts, $content ) { 107 $nofollow = ( 'true' === $atts['nofollow'] ) ? 'rel="nofollow"' : ''; 108 $block = ( 'true' === $atts['block'] ) ? ' pk-button-block' : ''; 107 $block = ( 'true' === $atts['block'] ) ? ' pk-button-block' : ''; 109 108 110 if ( isset( $atts['title'] ) && $atts['title'] ) {109 if ( isset( $atts['title'] ) && $atts['title'] ) { 111 110 $title = $atts['title']; 112 111 } 113 112 114 if ( $content ) {113 if ( $content ) { 115 114 $title = $content; 116 115 } … … 120 119 %s 121 120 </a>', 122 $atts['size'],123 $atts['style'],124 $block,125 $atts['url'],126 $atts['target'],127 $nofollow,128 $title121 esc_attr( $atts['size'] ), 122 esc_attr( $atts['style'] ), 123 esc_attr( $block ), 124 esc_url( $atts['url'] ), 125 esc_attr( $atts['target'] ), 126 ( ( 'true' === $atts['nofollow'] ) ? 'rel="nofollow"' : '' ), 127 wp_kses( $title, 'post' ) 129 128 ); 130 129 -
powerkit/trunk/modules/basic-elements/templates/collapsibles.php
r2239653 r3057392 110 110 </div> 111 111 ', 112 $item_id,113 $atts['title'],112 esc_attr( $item_id ), 113 wp_kses( $atts['title'], 'post' ), 114 114 ( 'true' === $atts['opened'] ) ? 'display:block;' : 'display:none;', 115 115 ( 'true' === $atts['opened'] ) ? 'expanded' : '', 116 do_shortcode( $content )116 wp_kses( do_shortcode( $content ), 'post' ), 117 117 ); 118 118 -
powerkit/trunk/modules/basic-elements/templates/separators.php
r2239653 r3057392 65 65 '<div class="pk-separator" %s>%s</div>', 66 66 $inl_css, 67 $content67 wp_kses( $content, 'post' ) 68 68 ); 69 69 -
powerkit/trunk/modules/basic-elements/templates/tabs.php
r2239653 r3057392 107 107 $data_toggle, 108 108 $content_id, 109 $tab['title']109 wp_kses( $tab['title'], 'post' ) 110 110 ); 111 111 … … 114 114 $content_id, 115 115 ( 1 === $num ) ? ' pk-show pk-active' : '', 116 $tab['content']116 wp_kses( $tab['content'], 'post' ) 117 117 ); 118 118 … … 152 152 153 153 $powerkit_basic_shortcodes_tabs[] = array( 154 'title' => $atts['title'],155 'content' => $content,154 'title' => wp_kses( $atts['title'], 'post' ), 155 'content' => wp_kses( $content, 'post' ), 156 156 ); 157 157 -
powerkit/trunk/modules/facebook/public/class-powerkit-facebook-fanpage-shortcode.php
r2239653 r3057392 40 40 <div class="fb-page-wrapper"> 41 41 <div class="fb-page" 42 data-href="<?php echo esc_ attr( $params['href'] ); ?>"42 data-href="<?php echo esc_url( $params['href'] ); ?>" 43 43 data-hide-cover="<?php echo esc_attr( $params['hide_cover'] ? 'true' : 'false' ); ?>" 44 44 data-show-facepile="<?php echo esc_attr( $params['show_facepile'] ? 'true' : 'false' ); ?>" -
powerkit/trunk/modules/facebook/public/class-powerkit-facebook-fanpage-widget.php
r2953867 r3057392 70 70 <div class="fb-page-wrapper"> 71 71 <div class="fb-page" 72 data-href="<?php echo esc_ attr( $params['href'] ); ?>"72 data-href="<?php echo esc_url( $params['href'] ); ?>" 73 73 data-hide-cover="<?php echo esc_attr( $params['hide_cover'] ? 'true' : 'false' ); ?>" 74 74 data-show-facepile="<?php echo esc_attr( $params['show_facepile'] ? 'true' : 'false' ); ?>" … … 140 140 <!-- Facebook Fanpage URL --> 141 141 <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Facebook fanpage URL:', 'powerkit' ); ?></label> 142 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_ attr( $params['href'] ); ?>" /></p>142 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p> 143 143 144 144 <!-- Hide Cover --> -
powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-board-widget.php
r2953867 r3057392 64 64 ?> 65 65 <div class="pinterest-board-wrapper"> 66 <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_ attr( $params['href'] ); ?>"></a>66 <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a> 67 67 </div> 68 68 <?php … … 107 107 <!-- Pinterest Board URL --> 108 108 <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Pinterest board URL:', 'powerkit' ); ?></label> 109 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_ attr( $params['href'] ); ?>" /></p>109 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p> 110 110 <?php 111 111 } -
powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-profile-widget.php
r2953867 r3057392 64 64 ?> 65 65 <div class="pinterest-profile-wrapper"> 66 <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_ attr( $params['href'] ); ?>"></a>66 <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a> 67 67 </div> 68 68 <?php … … 107 107 <!-- Pinterest Profile URL --> 108 108 <p><label for="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>"><?php esc_html_e( 'Pinterest profile URL:', 'powerkit' ); ?></label> 109 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_ attr( $params['href'] ); ?>" /></p>109 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'href' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'href' ) ); ?>" type="text" value="<?php echo esc_url( $params['href'] ); ?>" /></p> 110 110 <?php 111 111 } -
powerkit/trunk/modules/pinterest/public/class-powerkit-pinterest-shortcode.php
r2239653 r3057392 28 28 ?> 29 29 <div class="pinterest-board-wrapper"> 30 <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_ attr( $params['href'] ); ?>"></a>30 <a data-pin-do="embedBoard" data-pin-board-width="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a> 31 31 </div> 32 32 <?php … … 79 79 ?> 80 80 <div class="pinterest-profile-wrapper"> 81 <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_ attr( $params['href'] ); ?>"></a>81 <a data-pin-do="embedUser" data-pin-board="100%" href="<?php echo esc_url( $params['href'] ); ?>"></a> 82 82 </div> 83 83 <?php -
powerkit/trunk/modules/social-links/helpers/helper-powerkit-links.php
r2748949 r3057392 11 11 */ 12 12 function powerkit_get_author_fields() { 13 returnarray(13 $fields = array( 14 14 'facebook' => esc_html__( 'Facebook Profile URL', 'powerkit' ), 15 15 'twitter' => esc_html__( 'Twitter Profile URL', 'powerkit' ), … … 34 34 'rss' => esc_html__( 'RSS Profile URL', 'powerkit' ), 35 35 ); 36 37 return apply_filters( 'powerkit_get_author_fields', $fields ); 36 38 } 37 39 -
powerkit/trunk/powerkit.php
r3012577 r3057392 3 3 * Plugin Name: Powerkit 4 4 * Description: Powerkit – essential components for every WordPress site. 5 * Version: 2.9. 15 * Version: 2.9.2 6 6 * Author: Code Supply Co. 7 7 * Author URI: https://codesupply.co
Note: See TracChangeset
for help on using the changeset viewer.