Changeset 3034988
- Timestamp:
- 02/13/2024 09:03:50 AM (2 years ago)
- Location:
- stratum/trunk
- Files:
-
- 19 edited
-
assets/fonts/stratum.eot (modified) (previous)
-
assets/fonts/stratum.ttf (modified) (previous)
-
assets/fonts/stratum.woff (modified) (previous)
-
includes/admin-page.php (modified) (1 diff)
-
includes/ajax-templates/advanced-posts.php (modified) (1 diff)
-
includes/functions.php (modified) (1 diff)
-
includes/templates/advanced-posts.php (modified) (3 diffs)
-
includes/templates/advanced-slider.php (modified) (4 diffs)
-
includes/templates/banner.php (modified) (1 diff)
-
includes/templates/price-list.php (modified) (2 diffs)
-
includes/templates/price-menu.php (modified) (1 diff)
-
includes/templates/price-table.php (modified) (2 diffs)
-
includes/templates/testimonial-carousel.php (modified) (1 diff)
-
includes/templates/vertical-timeline.php (modified) (1 diff)
-
includes/widgets/banner.php (modified) (1 diff)
-
includes/widgets/horizontal-timeline.php (modified) (1 diff)
-
includes/widgets/price-table.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
stratum.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stratum/trunk/includes/admin-page.php
r2916916 r3034988 157 157 <!-- start markdowntohtml.com --> 158 158 159 <p>= 1.3.16, Feb 13 2024 =</p> 160 <ul> 161 <li>Minor bugfixes and improvements.</li> 162 </ul> 163 159 164 <p>= 1.3.15, May 24 2023 =</p> 160 165 <ul> -
stratum/trunk/includes/ajax-templates/advanced-posts.php
r2698175 r3034988 72 72 ), $settings ) ); 73 73 74 $title_typography_html_tag = stratum_validate_heading_html_tag( $title_typography_html_tag ); 75 74 76 $widget_class = 'stratum-advanced-posts'; 75 77 -
stratum/trunk/includes/functions.php
r2916912 r3034988 308 308 return $array; 309 309 } 310 311 /** 312 * Validate an HTML tag against a safe allowed list. 313 * 314 * @param string $tag 315 * 316 * @return string Valid HTML tag allowed for headings 317 */ 318 function stratum_validate_heading_html_tag( $tag ) { 319 320 $allowed_tags = array( 321 'h1', 322 'h2', 323 'h3', 324 'h4', 325 'h5', 326 'h6', 327 'div', 328 'span', 329 'p', 330 ); 331 332 return in_array( strtolower( $tag ), $allowed_tags ) ? $tag : 'div'; 333 } -
stratum/trunk/includes/templates/advanced-posts.php
r2916912 r3034988 1 1 <?php 2 3 use Elementor\Utils;4 2 5 3 use Stratum\Ajax\Advanced_Posts_Ajax; … … 90 88 'show_image' => $settings['show_image'], 91 89 'image_size' => $settings['image_size'], 92 'title_typography_html_tag' => $settings['title_typography_html_tag'],90 'title_typography_html_tag' => stratum_validate_heading_html_tag( $settings['title_typography_html_tag'] ), 93 91 'title_over_image' => $settings['title_over_image'], 94 92 'show_meta' => $settings['show_meta'], … … 116 114 'row_gap' => $row_gap['size'], 117 115 ]; 116 117 $title_typography_html_tag = stratum_validate_heading_html_tag( $title_typography_html_tag ); 118 118 119 119 //Generate options for swiper -
stratum/trunk/includes/templates/advanced-slider.php
r2916912 r3034988 6 6 'animation_effect' => '', 7 7 'text_animation_effect' => '', 8 'sub_title_typography_html_tag' => ' h3',8 'sub_title_typography_html_tag' => 'div', 9 9 'title_typography_html_tag' => 'h3', 10 'description_typography_html_tag' => ' h3',10 'description_typography_html_tag' => 'div', 11 11 'slides' => array(), 12 12 'image_size' => '', … … 19 19 //--Swiper 20 20 ), $settings ) ); 21 22 $sub_title_typography_html_tag = stratum_validate_heading_html_tag( $sub_title_typography_html_tag ); 23 $title_typography_html_tag = stratum_validate_heading_html_tag( $title_typography_html_tag ); 24 $description_typography_html_tag = stratum_validate_heading_html_tag( $description_typography_html_tag ); 21 25 22 26 $widget_class = 'stratum-advanced-slider'; … … 54 58 if ( !empty($item['sub_title']) ) { 55 59 ?> 56 < divclass="<?php echo esc_attr( $widget_class . '__sub-title' ); ?>">60 <<?php echo esc_html($sub_title_typography_html_tag); ?> class="<?php echo esc_attr( $widget_class . '__sub-title' ); ?>"> 57 61 <?php echo esc_html($item['sub_title']); ?> 58 </ div>62 </<?php echo esc_html($sub_title_typography_html_tag); ?>> 59 63 <?php 60 64 } … … 70 74 if ( !empty($item['description']) ) { 71 75 ?> 72 < divclass="<?php echo esc_attr( $widget_class . '__description' ); ?>">76 <<?php echo esc_html($description_typography_html_tag); ?> class="<?php echo esc_attr( $widget_class . '__description' ); ?>"> 73 77 <?php echo esc_html($item['description']); ?> 74 </ div>78 </<?php echo esc_html($description_typography_html_tag); ?>> 75 79 <?php 76 80 } -
stratum/trunk/includes/templates/banner.php
r2698175 r3034988 19 19 20 20 $class = 'stratum-banner'; 21 22 $title_typography_html_tag = stratum_validate_heading_html_tag( $title_typography_html_tag ); 21 23 22 24 $id = $image[ 'id' ]; -
stratum/trunk/includes/templates/price-list.php
r2698175 r3034988 16 16 17 17 $class = 'stratum-price-list'; 18 19 $title_html_tag = stratum_validate_heading_html_tag( $title_html_tag ); 18 20 19 21 ?> … … 39 41 <div class="<?php echo esc_attr( $class.'__item' ); ?>"> 40 42 <?php 41 $tag_name = $item[ 'title_html_tag' ];43 $tag_name = stratum_validate_heading_html_tag( $item[ 'title_html_tag' ] ); 42 44 $title = $item[ 'item_title' ]; 43 45 $price = $item[ 'item_price' ]; -
stratum/trunk/includes/templates/price-menu.php
r2698175 r3034988 36 36 <div class="<?php echo esc_attr( $class . '__header' ); ?>"> 37 37 <?php 38 $tag_name = $item[ 'title_html_tag' ];38 $tag_name = stratum_validate_heading_html_tag( $item[ 'title_html_tag' ] ); 39 39 $menu_title = $item[ 'menu_title' ]; 40 40 $menu_price = $item[ 'menu_price' ]; -
stratum/trunk/includes/templates/price-table.php
r2698175 r3034988 11 11 'price' => '', 12 12 'price_typography' => array(), 13 'price_typography_html_tag' => '',14 13 'price_currency' => '', 15 14 'price_description' => '', … … 46 45 'br' => array() 47 46 ), $title ); 47 48 $title_typography_html_tag = stratum_validate_heading_html_tag( $title_typography_html_tag ); 49 $subtitles_typography_html_tag = stratum_validate_heading_html_tag( $subtitles_typography_html_tag ); 48 50 49 51 ?> -
stratum/trunk/includes/templates/testimonial-carousel.php
r2916912 r3034988 14 14 $class = 'stratum-testimonial-carousel'; 15 15 $slider_options = stratum_generate_swiper_options( $settings ); 16 17 $heading_typography_html_tag = stratum_validate_heading_html_tag( $heading_typography_html_tag ); 18 $subtitle_typography_html_tag = stratum_validate_heading_html_tag( $subtitle_typography_html_tag ); 16 19 17 20 ?> -
stratum/trunk/includes/templates/vertical-timeline.php
r2698175 r3034988 38 38 39 39 $merge = array_merge( $item_classes, [ 'elementor-repeater-item-' . esc_attr( $item[ '_id' ] ) ] ); 40 $title_html_tag = $settings[ 'title_tag' ];40 $title_html_tag = stratum_validate_heading_html_tag( $settings[ 'title_tag' ] ); 41 41 42 42 $this->add_render_attribute( 'item' . $index, [ 'class' => $merge ] ); -
stratum/trunk/includes/widgets/banner.php
r2877991 r3034988 324 324 'text!' => '' 325 325 ], 326 'defaults' => [ 327 'html_tag' => 'h5', 328 ], 326 'exclude' => ['html_tag'] 329 327 ] 330 328 ); -
stratum/trunk/includes/widgets/horizontal-timeline.php
r2877991 r3034988 1588 1588 1589 1589 public function _generate_card_content($class, $item, $settings, $title_html_tag, $index) { 1590 1591 $title_html_tag = stratum_validate_heading_html_tag( $title_html_tag ); 1592 1590 1593 $out = ""; 1591 1594 -
stratum/trunk/includes/widgets/price-table.php
r2877991 r3034988 150 150 'price!' => '' 151 151 ], 152 'defaults' => [ 153 'html_tag' => 'h5', 154 ], 152 'exclude' => ['html_tag'] 155 153 ] 156 154 ); -
stratum/trunk/readme.txt
r2916916 r3034988 4 4 Tags: elementor, elementor addons, elementor plugins, elementor widgets, elementor extras, elementor essential addons, page builder, accordion, google map, slider, tabs, instagram, timeline, lottie, countdown, table 5 5 Requires at least: 5.0 6 Tested up to: 6. 26 Tested up to: 6.4 7 7 Requires PHP: 5.6 8 Stable tag: 1.3.1 58 Stable tag: 1.3.16 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 111 111 == Changelog == 112 112 113 = 1.3.16, Feb 13 2024 = 114 * Minor bugfixes and improvements. 115 113 116 = 1.3.15, May 24 2023 = 114 117 * Improved compatibility with latest Elementor versions. -
stratum/trunk/stratum.php
r2916912 r3034988 4 4 * Plugin URI: https://motopress.com/products/stratum/ 5 5 * Description: Advanced Elementor addon to extend page builder capabilities and add more advanced features. 6 * Version: 1.3.1 56 * Version: 1.3.16 7 7 * Author: MotoPress 8 8 * Author URI: https://motopress.com/
Note: See TracChangeset
for help on using the changeset viewer.