Changeset 3213880
- Timestamp:
- 12/27/2024 04:34:08 PM (15 months ago)
- Location:
- gutensee
- Files:
-
- 92 added
- 8 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/assets (added)
-
tags/1.0.5/assets/css (added)
-
tags/1.0.5/assets/css/all.css (added)
-
tags/1.0.5/assets/css/all.min.css (added)
-
tags/1.0.5/assets/css/animate.css (added)
-
tags/1.0.5/assets/css/editor.css (added)
-
tags/1.0.5/assets/css/font-awesome (added)
-
tags/1.0.5/assets/css/font-awesome/FontAwesome.otf (added)
-
tags/1.0.5/assets/css/font-awesome/css (added)
-
tags/1.0.5/assets/css/font-awesome/css/all.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/all.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/brands.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/brands.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/fontawesome.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/fontawesome.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/regular.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/regular.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/solid.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/solid.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/svg-with-js.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/svg-with-js.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/v4-shims.css (added)
-
tags/1.0.5/assets/css/font-awesome/css/v4-shims.min.css (added)
-
tags/1.0.5/assets/css/font-awesome/fontawesome-webfont.eot (added)
-
tags/1.0.5/assets/css/font-awesome/fontawesome-webfont.svg (added)
-
tags/1.0.5/assets/css/font-awesome/fontawesome-webfont.ttf (added)
-
tags/1.0.5/assets/css/font-awesome/fontawesome-webfont.woff (added)
-
tags/1.0.5/assets/css/font-awesome/fontawesome-webfont.woff2 (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-brands-400.eot (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-brands-400.svg (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-brands-400.woff (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-regular-400.eot (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-regular-400.svg (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-regular-400.woff (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-solid-900.eot (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-solid-900.svg (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-solid-900.woff (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-v4compatibility.ttf (added)
-
tags/1.0.5/assets/css/font-awesome/webfonts/fa-v4compatibility.woff2 (added)
-
tags/1.0.5/assets/css/menu.css (added)
-
tags/1.0.5/assets/css/slick-theme.css (added)
-
tags/1.0.5/assets/css/slick.css (added)
-
tags/1.0.5/assets/css/style.css (added)
-
tags/1.0.5/assets/images (added)
-
tags/1.0.5/assets/images/dummy-image.png (added)
-
tags/1.0.5/assets/js (added)
-
tags/1.0.5/assets/js/editor.js (added)
-
tags/1.0.5/assets/js/font-awesome (added)
-
tags/1.0.5/assets/js/font-awesome/js (added)
-
tags/1.0.5/assets/js/font-awesome/js/brands.js (added)
-
tags/1.0.5/assets/js/font-awesome/js/brands.min.js (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-v4compatibility.ttf (added)
-
tags/1.0.5/assets/js/font-awesome/webfonts/fa-v4compatibility.woff2 (added)
-
tags/1.0.5/assets/js/slick.js (added)
-
tags/1.0.5/assets/js/slick.min.js (added)
-
tags/1.0.5/build (added)
-
tags/1.0.5/build/index.asset.php (added)
-
tags/1.0.5/build/index.js (added)
-
tags/1.0.5/gutensee.php (added)
-
tags/1.0.5/inc (added)
-
tags/1.0.5/inc/blocks (added)
-
tags/1.0.5/inc/blocks/breadcrumbs.php (added)
-
tags/1.0.5/inc/blocks/contact-us.php (added)
-
tags/1.0.5/inc/blocks/latest-post.php (added)
-
tags/1.0.5/inc/blocks/navbar.php (added)
-
tags/1.0.5/inc/blocks/post-query.php (added)
-
tags/1.0.5/inc/blocks/topbar.php (added)
-
tags/1.0.5/inc/script.php (added)
-
tags/1.0.5/inc/templates (added)
-
tags/1.0.5/inc/templates/gutensee-template.html (added)
-
tags/1.0.5/inc/templates/gutensee-template.php (added)
-
tags/1.0.5/inc/templates/template.php (added)
-
tags/1.0.5/lang (added)
-
tags/1.0.5/lang/gutensee.pot (added)
-
tags/1.0.5/package-lock.json (added)
-
tags/1.0.5/package.json (added)
-
tags/1.0.5/readme.txt (added)
-
trunk/gutensee.php (modified) (2 diffs)
-
trunk/inc/blocks/breadcrumbs.php (modified) (5 diffs)
-
trunk/inc/blocks/contact-us.php (modified) (1 diff)
-
trunk/inc/blocks/latest-post.php (modified) (1 diff)
-
trunk/inc/blocks/navbar.php (modified) (2 diffs)
-
trunk/inc/blocks/post-query.php (modified) (2 diffs)
-
trunk/inc/blocks/topbar.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gutensee/trunk/gutensee.php
r3213041 r3213880 3 3 * Plugin Name: Gutensee 4 4 * Plugin URI: 5 * Description: Gutensee Plugin6 * Version: 1.0. 45 * Description: Gutensee is a Gutenberg base block plugin that helps to build a beautiful block websites. 6 * Version: 1.0.5 7 7 * Requires at least: 5.3 8 8 * Requires PHP: 5.4 … … 16 16 */ 17 17 if( !defined( 'ABSPATH' ) ) {exit(); } 18 define('GUTENSEE_VERSION', '1.0. 4');18 define('GUTENSEE_VERSION', '1.0.5'); 19 19 define('GUTENSEE_PLUGIN_PATH',trailingslashit(plugin_dir_path(__FILE__))); 20 20 define('GUTENSEE_PLUGIN_URL',trailingslashit(plugins_url('/',__FILE__))); -
gutensee/trunk/inc/blocks/breadcrumbs.php
r3213041 r3213880 8 8 $displayclass=$displaydesktop.' '.$displaytablet.' '.$displaymobile; 9 9 $animationclass='wow animated '.$attributes['durations'].' '.$attributes['animation']; 10 10 $allowed_tags = array( 11 'script' => array( 12 'type' => true, 13 'src' => true, 14 ), 15 'style' => array( 16 'type' => true, 17 'src' => true, 18 ), 19 ); 11 20 $bordertop=(!empty($attributes['border']['top'])) ? $attributes['border']['top']['width'].' '. $attributes['border']['top']['style'].' '. $attributes['border']['top']['color'] : null; 12 21 $borderright=(!empty($attributes['border']['right'])) ? $attributes['border']['right']['width'].' '. $attributes['border']['right']['style'].' '. $attributes['border']['right']['color'] : null; … … 18 27 $bordercolor=(!empty($attributes['border']['color']))? $attributes['border']['color'] :null; 19 28 20 $output = $attributes['addcss'];21 $heading_level = isset($attributes['headingLevel']) ? $attributes['headingLevel']: 'h2';29 $output =wp_kses($attributes['addcss'], $allowed_tags); 30 $heading_level = isset($attributes['headingLevel']) ? esc_attr($attributes['headingLevel']) : 'h2'; 22 31 $output .= '<div id="'.$attributes['advid'].'"><div id="'.$uniqueid.'" class="gutensee-breadcrumb '.$displayclass.' '.$animationclass.' '.$attributes['advclass'].'">'; 23 32 // Initialize the output with the current page title or other relevant titles 24 $output .= '<' . $heading_level. '>';33 $output .= '<' . esc_attr($heading_level) . '>'; 25 34 26 35 if (is_search()) { … … 40 49 $output .= get_the_date(); 41 50 } elseif (is_post_type_archive()) { 42 $output .= post_type_archive_title('', false);51 $output .= esc_html(post_type_archive_title('', false)); 43 52 } 44 53 } else { … … 47 56 } 48 57 49 $output .= '</' . $heading_level. '>';58 $output .= '</' . esc_attr($heading_level) . '>'; 50 59 $output .= '<div>'; 51 60 // Start breadcrumbs with Home link … … 121 130 122 131 $output .= '</div>'; 123 $output .= '</div></div>'; 124 $output .= esc_html($attributes['addjs']);132 $output .= '</div></div>'; 133 $output .= wp_kses($attributes['addjs'], $allowed_tags); 125 134 return $output; 126 135 } -
gutensee/trunk/inc/blocks/contact-us.php
r3213041 r3213880 106 106 $btnborderstyle=(!empty($attributes['btnborder']['style']))? $attributes['btnborder']['style'] :null; 107 107 $btnbordercolor=(!empty($attributes['btnborder']['color']))? $attributes['btnborder']['color'] :null; 108 $allowed_tags = array( 109 'script' => array( 110 'type' => true, 111 'src' => true, 112 ), 113 'style' => array( 114 'type' => true, 115 'src' => true, 116 ), 117 ); 108 118 109 $customcss= $attributes['addcss'];110 $customcss= $attributes['addjs'];119 $customcss=wp_kses($attributes['addcss'], $allowed_tags); 120 $customcss=wp_kses($attributes['addjs'], $allowed_tags); 111 121 112 122 return ob_get_clean(); -
gutensee/trunk/inc/blocks/latest-post.php
r3213041 r3213880 79 79 break; 80 80 } 81 82 $list_items_markup .= $attributes['addcss']; 83 $list_items_markup .= $attributes['addjs']; 81 $allowed_tags = array( 82 'script' => array( 83 'type' => true, 84 'src' => true, 85 ), 86 'style' => array( 87 'type' => true, 88 'src' => true, 89 ), 90 ); 91 $list_items_markup .= wp_kses($attributes['addcss'], $allowed_tags); 92 $list_items_markup .= wp_kses($attributes['addjs'], $allowed_tags); 84 93 85 94 $list_items_markup .='<div id="'.esc_attr($attributes['advid']).'"><div id="'.esc_attr($uniqueid).'" class="post-query-loop '.esc_attr($Rowclass).' single-item '.esc_attr($uniqueid).' '.esc_attr($attributes['addclass']).' '.esc_attr($displayclass).' '. esc_attr($animationclass).' '.esc_attr($attributes['addclass']).'">'; -
gutensee/trunk/inc/blocks/navbar.php
r3213041 r3213880 1197 1197 $displaymobile=($attributes['hidemobile'] != true) ? 'hide-mobile' : ''; 1198 1198 $displayclass=$displaydesktop.' '.$displaytablet.' '.$displaymobile; 1199 1200 $list_items_markup .= wp_kses_post($attributes['addcss']); 1199 $allowed_tags = array( 1200 'script' => array( 1201 'type' => true, 1202 'src' => true, 1203 ), 1204 'style' => array( 1205 'type' => true, 1206 'src' => true, 1207 ), 1208 ); 1209 $list_items_markup .= wp_kses($attributes['addcss'], $allowed_tags); 1201 1210 1202 1211 $alignmentClass = ($attributes['textAlignment'] != null) ? 'has-text-align-'.$attributes['textAlignment'].'' : ''; … … 1220 1229 $list_items_markup .= '</nav></div>'; 1221 1230 } 1222 $list_items_markup .=wp_kses _post($attributes['addjs']);1231 $list_items_markup .=wp_kses($attributes['addjs'], $allowed_tags); 1223 1232 return $list_items_markup; 1224 1233 } -
gutensee/trunk/inc/blocks/post-query.php
r3213041 r3213880 88 88 break; 89 89 } 90 91 $list_items_markup .= wp_kses_post($attributes['addcss']); 90 $allowed_tags = array( 91 'script' => array( 92 'type' => true, 93 'src' => true, 94 ), 95 'style' => array( 96 'type' => true, 97 'src' => true, 98 ), 99 ); 100 $list_items_markup .= wp_kses($attributes['addcss'], $allowed_tags); 92 101 93 102 $list_items_markup .='<div id="'.esc_attr($attributes['advid']).'"><div id="'.esc_attr($uniqueid).'" class="post-query-loop '.esc_attr($Rowclass).' single-item '.esc_attr($uniqueid).' '.esc_attr($attributes['addclass']).' '.esc_attr($displayclass).' '. esc_attr($animationclass).' '.esc_attr($attributes['advclass']).'">'; … … 823 832 $list_items_markup .='</div></div>'; 824 833 825 $list_items_markup .=wp_kses _post($attributes['addjs']);834 $list_items_markup .=wp_kses($attributes['addjs'], $allowed_tags); 826 835 827 836 return $list_items_markup; -
gutensee/trunk/inc/blocks/topbar.php
r3213041 r3213880 21 21 ]; 22 22 $query = new WP_Query($args); 23 24 $list_items_markup .=wp_kses_post($attributes['addcss']); 23 $allowed_tags = array( 24 'script' => array( 25 'type' => true, 26 'src' => true, 27 ), 28 'style' => array( 29 'type' => true, 30 'src' => true, 31 ), 32 ); 33 $list_items_markup .=wp_kses($attributes['addcss'], $allowed_tags ); 25 34 26 35 // Format the date based on selected format … … 90 99 $list_items_markup .= '<div id="'.esc_attr($attributes['advid']).'"><div class="gutensee-topbar '.esc_attr($displayclass).' '.esc_attr($animationclass).' '.esc_attr($alignmentClass).' '.esc_attr($attributes['advclass']).'" id="'.esc_attr($attributes['uniqueid']).'">'.wp_kses_post($content).'</div></div>'; 91 100 92 $list_items_markup .=wp_kses _post($attributes['addjs']);101 $list_items_markup .=wp_kses($attributes['addjs'], $allowed_tags); 93 102 94 103 return $list_items_markup; -
gutensee/trunk/readme.txt
r3213041 r3213880 5 5 Requires at least: 5.3 6 6 Tested up to: 6.7.1 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later … … 47 47 48 48 == Changelog == 49 50 @Version 1.0.5 51 * Fixed reviewer issues. 49 52 50 53 @Version 1.0.4
Note: See TracChangeset
for help on using the changeset viewer.