Changeset 3422759
- Timestamp:
- 12/18/2025 11:13:05 AM (4 weeks ago)
- Location:
- woocommerce-products-slider/trunk
- Files:
-
- 25 edited
-
assets/settings-tabs/settings-tabs.js (modified) (1 diff)
-
includes/3rd-party/advanced-product-labels-for-woocommerce.php (modified) (1 diff)
-
includes/3rd-party/dokan-lite/functions-layout-element.php (modified) (7 diffs)
-
includes/3rd-party/easy-digital-downloads/functions-layout-element.php (modified) (16 diffs)
-
includes/3rd-party/perfect-woocommerce-brands.php (modified) (10 diffs)
-
includes/3rd-party/ti-woocommerce-wishlist.php (modified) (10 diffs)
-
includes/3rd-party/wish-list-for-woocommerce.php (modified) (9 diffs)
-
includes/3rd-party/wishlist.php (modified) (9 diffs)
-
includes/3rd-party/woo-smart-compare.php (modified) (10 diffs)
-
includes/3rd-party/woo-smart-quick-view.php (modified) (10 diffs)
-
includes/3rd-party/woo-smart-wishlist.php (modified) (10 diffs)
-
includes/3rd-party/wpc-countdown-timer.php (modified) (9 diffs)
-
includes/3rd-party/yith-woocommerce-badges-management.php (modified) (9 diffs)
-
includes/3rd-party/yith-woocommerce-brands-add-on.php (modified) (9 diffs)
-
includes/3rd-party/yith-woocommerce-compare.php (modified) (10 diffs)
-
includes/3rd-party/yith-woocommerce-quick-view.php (modified) (9 diffs)
-
includes/3rd-party/yith-woocommerce-wishlist.php (modified) (9 diffs)
-
includes/functions-builder.php (modified) (2 diffs)
-
includes/functions-layout-hook.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/view-filterable/index.php (modified) (1 diff)
-
templates/view-grid/index.php (modified) (2 diffs)
-
templates/view-masonry/index.php (modified) (2 diffs)
-
templates/view-slider/index.php (modified) (2 diffs)
-
woocommerce-products-slider.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-products-slider/trunk/assets/settings-tabs/settings-tabs.js
r3422655 r3422759 24 24 }) 25 25 26 console.log($('.code-editor'));27 26 28 27 if ($('.code-editor').length) { -
woocommerce-products-slider/trunk/includes/3rd-party/advanced-product-labels-for-woocommerce.php
r3422655 r3422759 103 103 ?> 104 104 <style> 105 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {105 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 106 106 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 107 107 <?php endif; ?> -
woocommerce-products-slider/trunk/includes/3rd-party/dokan-lite/functions-layout-element.php
r3422655 r3422759 238 238 ?> 239 239 <style> 240 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {240 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 241 241 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 242 242 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 267 267 ?> 268 268 <style> 269 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {269 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 270 270 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 271 271 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 298 298 ?> 299 299 <style> 300 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {300 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 301 301 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 302 302 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 330 330 ?> 331 331 <style> 332 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {332 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 333 333 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 334 334 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 360 360 ?> 361 361 <style> 362 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {362 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 363 363 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 364 364 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 389 389 ?> 390 390 <style> 391 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {391 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 392 392 <?php if (!empty($width)): ?>width: <?php echo esc_attr($width); ?>; 393 393 <?php endif; ?><?php if (!empty($height)): ?>height: <?php echo esc_attr($height); ?>; … … 415 415 ?> 416 416 <style> 417 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {417 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 418 418 <?php if (!empty($width)): ?>width: <?php echo esc_attr($width); ?>; 419 419 <?php endif; ?><?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; -
woocommerce-products-slider/trunk/includes/3rd-party/easy-digital-downloads/functions-layout-element.php
r3422655 r3422759 251 251 ?> 252 252 <style> 253 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {253 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 254 254 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 255 255 <?php endif; ?><?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; … … 261 261 } 262 262 263 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?>a {263 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 264 264 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 265 265 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 290 290 ?> 291 291 <style> 292 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {292 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 293 293 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 294 294 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 320 320 ?> 321 321 <style> 322 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {322 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 323 323 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 324 324 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 329 329 } 330 330 331 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?>a {331 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 332 332 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 333 333 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 360 360 ?> 361 361 <style> 362 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {362 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 363 363 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 364 364 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; … … 366 366 } 367 367 368 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?>a {368 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 369 369 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 370 370 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 396 396 ?> 397 397 <style> 398 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?> {398 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 399 399 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 400 400 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; … … 402 402 } 403 403 404 .layout-<?php echo esc_attr($layout_id); ?>.element-<?php echo esc_attr($element_index); ?>a {404 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 405 405 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 406 406 <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; … … 554 554 ob_start(); 555 555 ?> 556 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr($element_index); ?>{}</textarea>556 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 557 557 <?php 558 558 … … 711 711 ob_start(); 712 712 ?> 713 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>713 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 714 714 <?php 715 715 … … 867 867 ob_start(); 868 868 ?> 869 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>869 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 870 870 <?php 871 871 … … 1024 1024 ob_start(); 1025 1025 ?> 1026 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>1026 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 1027 1027 <?php 1028 1028 … … 1163 1163 ob_start(); 1164 1164 ?> 1165 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>1165 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 1166 1166 <?php 1167 1167 … … 1319 1319 ob_start(); 1320 1320 ?> 1321 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>1321 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 1322 1322 <?php 1323 1323 … … 1475 1475 ob_start(); 1476 1476 ?> 1477 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr( $element_index); ?>{}</textarea>1477 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 1478 1478 <?php 1479 1479 -
woocommerce-products-slider/trunk/includes/3rd-party/perfect-woocommerce-brands.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_perfect_brands'); 5 5 6 function wcps_layout_elements_perfect_brands($layout_elements){ 6 function wcps_layout_elements_perfect_brands($layout_elements) 7 { 7 8 8 9 9 $layout_elements['perfect_brands'] = array('name' => __('Perfect brands','woocommerce-products-slider'));10 $layout_elements['perfect_brands'] = array('name' => __('Perfect brands', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_perfect_brands','wcps_layout_elements_option_perfect_brands'); 19 function wcps_layout_elements_option_perfect_brands($parameters){ 18 add_action('wcps_layout_elements_option_perfect_brands', 'wcps_layout_elements_option_perfect_brands'); 19 function wcps_layout_elements_option_perfect_brands($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('Perfect brands', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('Perfect brands', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[perfect_brands]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[perfect_brands]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 68 69 69 70 add_action('wcps_layout_element_perfect_brands', 'wcps_layout_element_perfect_brands', 10); 70 function wcps_layout_element_perfect_brands($args){ 71 function wcps_layout_element_perfect_brands($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-perfect_brands element-' .$element_index : 'element-perfect_brands';79 $element_class = !empty($element_index) ? 'element-perfect_brands element-' . $element_index : 'element-perfect_brands'; 78 80 79 81 //require PWB_PLUGIN_DIR.'classes/class-perfect-woocommerce-brands.php'; 80 82 81 if (class_exists('Perfect_Woocommerce_Brands')){83 if (class_exists('Perfect_Woocommerce_Brands')) { 82 84 $Perfect_Woocommerce_Brands = new Perfect_Woocommerce_Brands(); 83 85 … … 85 87 echo wp_kses_post($Perfect_Woocommerce_Brands->show_brands_in_loop()); 86 88 87 ?>88 <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[brand_shortcode id="' .$product_id.'" ]');; ?></div>89 <?php89 ?> 90 <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[brand_shortcode id="' . $product_id . '" ]');; ?></div> 91 <?php 90 92 } 91 92 93 94 93 } 95 94 … … 98 97 99 98 add_action('wcps_layout_element_css_perfect_brands', 'wcps_layout_element_css_perfect_brands', 10); 100 function wcps_layout_element_css_perfect_brands($args){ 99 function wcps_layout_element_css_perfect_brands($args) 100 { 101 101 102 102 … … 110 110 111 111 ?> 112 <style > 113 114 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 115 <?php if(!empty($margin)): ?> 116 margin: <?php echo esc_attr($margin); ?>; 117 <?php endif; ?> 118 112 <style> 113 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 114 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 115 <?php endif; ?> 119 116 } 120 121 117 </style> 122 <?php118 <?php 123 119 } 124 -
woocommerce-products-slider/trunk/includes/3rd-party/ti-woocommerce-wishlist.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_ti_wishlist'); 5 5 6 function wcps_layout_elements_ti_wishlist($layout_elements){ 6 function wcps_layout_elements_ti_wishlist($layout_elements) 7 { 7 8 8 9 9 $layout_elements['ti_wishlist'] = array('name' => __('TI Wishlist','woocommerce-products-slider'));10 $layout_elements['ti_wishlist'] = array('name' => __('TI Wishlist', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_ti_wishlist','wcps_layout_elements_option_ti_wishlist'); 19 function wcps_layout_elements_option_ti_wishlist($parameters){ 18 add_action('wcps_layout_elements_option_ti_wishlist', 'wcps_layout_elements_option_ti_wishlist'); 19 function wcps_layout_elements_option_ti_wishlist($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('TI Wishlist', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('TI Wishlist', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[ti_wishlist]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[ti_wishlist]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 60 61 </div> 61 62 </div> 62 <?php63 <?php 63 64 64 65 } … … 68 69 69 70 add_action('wcps_layout_element_ti_wishlist', 'wcps_layout_element_ti_wishlist', 10); 70 function wcps_layout_element_ti_wishlist($args){ 71 function wcps_layout_element_ti_wishlist($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-ti_wishlist element-' .$element_index : 'element-ti_wishlist';79 $element_class = !empty($element_index) ? 'element-ti_wishlist element-' . $element_index : 'element-ti_wishlist'; 78 80 79 81 80 82 81 ?>82 <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[ti_wishlists_addtowishlist id="'.$product_id.'"]'); ?></div>83 <?php83 ?> 84 <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[ti_wishlists_addtowishlist id="' . $product_id . '"]'); ?></div> 85 <?php 84 86 85 87 … … 91 93 92 94 add_action('wcps_layout_element_css_ti_wishlist', 'wcps_layout_element_css_ti_wishlist', 10); 93 function wcps_layout_element_css_ti_wishlist($args){ 95 function wcps_layout_element_css_ti_wishlist($args) 96 { 94 97 95 98 … … 102 105 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 103 106 104 ?> 105 <style > 106 107 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 108 <?php if(!empty($margin)): ?> 109 margin: <?php echo esc_attr($margin); ?>; 110 <?php endif; ?> 111 107 ?> 108 <style> 109 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 110 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 111 <?php endif; ?> 112 112 } 113 114 113 </style> 115 <?php114 <?php 116 115 } 117 -
woocommerce-products-slider/trunk/includes/3rd-party/wish-list-for-woocommerce.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_wishlist_for_wc'); 5 5 6 function wcps_layout_elements_wishlist_for_wc($layout_elements){ 6 function wcps_layout_elements_wishlist_for_wc($layout_elements) 7 { 7 8 8 9 9 $layout_elements['wishlist_for_wc'] = array('name' => __('WishList for WooCommerce','woocommerce-products-slider'));10 $layout_elements['wishlist_for_wc'] = array('name' => __('WishList for WooCommerce', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_wishlist_for_wc','wcps_layout_elements_option_wishlist_for_wc'); 19 function wcps_layout_elements_option_wishlist_for_wc($parameters){ 18 add_action('wcps_layout_elements_option_wishlist_for_wc', 'wcps_layout_elements_option_wishlist_for_wc'); 19 function wcps_layout_elements_option_wishlist_for_wc($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('WishList for WooCommerce', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('WishList for WooCommerce', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[wishlist_for_wc]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[wishlist_for_wc]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 68 69 69 70 add_action('wcps_layout_element_wishlist_for_wc', 'wcps_layout_element_wishlist_for_wc', 10); 70 function wcps_layout_element_wishlist_for_wc($args){ 71 function wcps_layout_element_wishlist_for_wc($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-wishlist_for_wc element-' .$element_index : 'element-wishlist_for_wc';79 $element_class = !empty($element_index) ? 'element-wishlist_for_wc element-' . $element_index : 'element-wishlist_for_wc'; 78 80 79 81 80 if ( class_exists( 'Alg_WC_Wish_List_Toggle_Btn' )) {82 if (class_exists('Alg_WC_Wish_List_Toggle_Btn')) { 81 83 $Alg_WC_Wish_List_Toggle_Btn = new Alg_WC_Wish_List_Toggle_Btn(); 82 84 83 ?>85 ?> 84 86 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post($Alg_WC_Wish_List_Toggle_Btn->show_default_btn()); ?></div> 85 <?php87 <?php 86 88 } 87 88 89 90 89 } 91 90 … … 94 93 95 94 add_action('wcps_layout_element_css_wishlist_for_wc', 'wcps_layout_element_css_wishlist_for_wc', 10); 96 function wcps_layout_element_css_wishlist_for_wc($args){ 95 function wcps_layout_element_css_wishlist_for_wc($args) 96 { 97 97 98 98 … … 106 106 107 107 ?> 108 <style > 109 110 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 111 <?php if(!empty($margin)): ?> 112 margin: <?php echo esc_attr($margin); ?>; 113 <?php endif; ?> 114 108 <style> 109 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 110 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 111 <?php endif; ?> 115 112 } 116 117 113 </style> 118 <?php114 <?php 119 115 } 120 -
woocommerce-products-slider/trunk/includes/3rd-party/wishlist.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_wishlist'); 5 5 6 function wcps_layout_elements_wishlist($layout_elements){ 7 8 9 $layout_elements['wishlist'] = array('name' =>__('Wishlist','woocommerce-products-slider')); 6 function wcps_layout_elements_wishlist($layout_elements) 7 { 8 9 10 $layout_elements['wishlist'] = array('name' => __('Wishlist', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_wishlist','wcps_layout_elements_option_wishlist'); 19 function wcps_layout_elements_option_wishlist($parameters){13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_wishlist', 'wcps_layout_elements_option_wishlist'); 19 function wcps_layout_elements_option_wishlist($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 35 36 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 36 37 37 ?>38 ?> 38 39 <div class="item"> 39 40 <div class="element-title header "> … … 41 42 <span class="sort"><i class="fas fa-sort"></i></span> 42 43 43 <span class="expand"><?php echo esc_html__('Wishlist', 'woocommerce-products-slider'); ?></span>44 <span class="expand"><?php echo esc_html__('Wishlist', 'woocommerce-products-slider'); ?></span> 44 45 </div> 45 46 <div class="element-options options"> … … 48 49 49 50 $args = array( 50 'id' => 'font_size',51 'css_id' => $element_index.'_font_size',52 'parent' => $input_name .'[wishlist]',53 'title' => __('Font size','woocommerce-products-slider'),54 'details' => __('Choose font size.','woocommerce-products-slider'),55 'type' => 'text',56 'value' => $font_size,57 'default' => '',58 'placeholder' => '16px',59 60 ); 61 62 $settings_tabs_field->generate_field($args); 63 64 65 $args = array( 66 'id' => 'font_family',67 'css_id' => $element_index.'_font_family',68 'parent' => $input_name .'[wishlist]',69 'title' => __('Font family','woocommerce-products-slider'),70 'details' => __('Set font family.','woocommerce-products-slider'),71 'type' => 'text',72 'value' => $font_family,73 'default' => '',74 'placeholder' => 'Open Sans',75 ); 76 77 $settings_tabs_field->generate_field($args); 78 79 80 $args = array( 81 'id' => 'color',82 'css_id' => $element_index.'_content_color',83 'parent' => $input_name .'[wishlist]',84 'title' => __('Color','woocommerce-products-slider'),85 'details' => __('Title text color.','woocommerce-products-slider'),86 'type' => 'colorpicker',87 'value' => $color,88 'default' => '',89 ); 90 91 $settings_tabs_field->generate_field($args); 92 93 $args = array( 94 'id' => 'background_color',95 'css_id' => $element_index.'_background_color',96 'parent' => $input_name .'[wishlist]',97 'title' => __('Background color','woocommerce-products-slider'),98 'details' => __('Choose background color.','woocommerce-products-slider'),99 'type' => 'colorpicker',100 'value' => $background_color,101 'default' => '',102 ); 103 104 $settings_tabs_field->generate_field($args); 105 106 107 $args = array( 108 'id' => 'margin',109 'css_id' => $element_index.'_margin',110 'parent' => $input_name .'[wishlist]',111 'title' => __('Margin','woocommerce-products-slider'),112 'details' => __('Set margin.','woocommerce-products-slider'),113 'type' => 'text',114 'value' => $margin,115 'default' => '',116 'placeholder' => '5px 0',117 ); 118 119 $settings_tabs_field->generate_field($args); 120 121 122 $args = array( 123 'id' => 'padding',124 'css_id' => $element_index.'_padding',125 'parent' => $input_name .'[wishlist]',126 'title' => __('Padding','woocommerce-products-slider'),127 'details' => __('Set padding.','woocommerce-products-slider'),128 'type' => 'text',129 'value' => $padding,130 'default' => '',131 'placeholder' => '5px 0',51 'id' => 'font_size', 52 'css_id' => $element_index . '_font_size', 53 'parent' => $input_name . '[wishlist]', 54 'title' => __('Font size', 'woocommerce-products-slider'), 55 'details' => __('Choose font size.', 'woocommerce-products-slider'), 56 'type' => 'text', 57 'value' => $font_size, 58 'default' => '', 59 'placeholder' => '16px', 60 61 ); 62 63 $settings_tabs_field->generate_field($args); 64 65 66 $args = array( 67 'id' => 'font_family', 68 'css_id' => $element_index . '_font_family', 69 'parent' => $input_name . '[wishlist]', 70 'title' => __('Font family', 'woocommerce-products-slider'), 71 'details' => __('Set font family.', 'woocommerce-products-slider'), 72 'type' => 'text', 73 'value' => $font_family, 74 'default' => '', 75 'placeholder' => 'Open Sans', 76 ); 77 78 $settings_tabs_field->generate_field($args); 79 80 81 $args = array( 82 'id' => 'color', 83 'css_id' => $element_index . '_content_color', 84 'parent' => $input_name . '[wishlist]', 85 'title' => __('Color', 'woocommerce-products-slider'), 86 'details' => __('Title text color.', 'woocommerce-products-slider'), 87 'type' => 'colorpicker', 88 'value' => $color, 89 'default' => '', 90 ); 91 92 $settings_tabs_field->generate_field($args); 93 94 $args = array( 95 'id' => 'background_color', 96 'css_id' => $element_index . '_background_color', 97 'parent' => $input_name . '[wishlist]', 98 'title' => __('Background color', 'woocommerce-products-slider'), 99 'details' => __('Choose background color.', 'woocommerce-products-slider'), 100 'type' => 'colorpicker', 101 'value' => $background_color, 102 'default' => '', 103 ); 104 105 $settings_tabs_field->generate_field($args); 106 107 108 $args = array( 109 'id' => 'margin', 110 'css_id' => $element_index . '_margin', 111 'parent' => $input_name . '[wishlist]', 112 'title' => __('Margin', 'woocommerce-products-slider'), 113 'details' => __('Set margin.', 'woocommerce-products-slider'), 114 'type' => 'text', 115 'value' => $margin, 116 'default' => '', 117 'placeholder' => '5px 0', 118 ); 119 120 $settings_tabs_field->generate_field($args); 121 122 123 $args = array( 124 'id' => 'padding', 125 'css_id' => $element_index . '_padding', 126 'parent' => $input_name . '[wishlist]', 127 'title' => __('Padding', 'woocommerce-products-slider'), 128 'details' => __('Set padding.', 'woocommerce-products-slider'), 129 'type' => 'text', 130 'value' => $padding, 131 'default' => '', 132 'placeholder' => '5px 0', 132 133 ); 133 134 … … 139 140 </div> 140 141 </div> 141 <?php142 <?php 142 143 143 144 } … … 147 148 148 149 add_action('wcps_layout_element_wishlist', 'wcps_layout_element_wishlist', 10); 149 function wcps_layout_element_wishlist($args){ 150 function wcps_layout_element_wishlist($args) 151 { 150 152 151 153 //echo '<pre>'.var_export($args, true).'</pre>'; … … 154 156 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 155 157 156 $element_class = !empty($element_index) ? 'element-wishlist element-' .$element_index : 'element-wishlist';157 158 ?>159 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wishlist_button id="' .$product_id.'" ]'));; ?></div>160 <?php158 $element_class = !empty($element_index) ? 'element-wishlist element-' . $element_index : 'element-wishlist'; 159 160 ?> 161 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wishlist_button id="' . $product_id . '" ]'));; ?></div> 162 <?php 161 163 162 164 } … … 166 168 167 169 add_action('wcps_layout_element_css_wishlist', 'wcps_layout_element_css_wishlist', 10); 168 function wcps_layout_element_css_wishlist($args){ 170 function wcps_layout_element_css_wishlist($args) 171 { 169 172 170 173 … … 185 188 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 186 189 187 ?> 188 <style > 189 190 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 191 <?php if(!empty($margin)): ?> 192 margin: <?php echo esc_attr($margin); ?>; 193 <?php endif; ?> 194 190 ?> 191 <style> 192 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 193 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 194 <?php endif; ?> 195 195 } 196 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?> a{ 197 <?php if(!empty($color)): ?> 198 color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?> 200 text-decoration: none; 201 <?php if(!empty($font_size)): ?> 202 font-size: <?php echo esc_attr($font_size); ?>; 203 <?php endif; ?> 204 <?php if(!empty($font_family)): ?> 205 font-family: <?php echo esc_attr($font_family); ?>; 206 <?php endif; ?> 207 <?php if(!empty($padding)): ?> 208 padding: <?php echo esc_attr($padding); ?>; 209 <?php endif; ?> 210 <?php if(!empty($background_color)): ?> 211 background-color: <?php echo esc_attr($background_color); ?>; 212 <?php endif; ?> 213 <?php if(!empty($text_align)): ?> 214 text-align: <?php echo esc_attr($text_align); ?>; 215 <?php endif; ?> 196 197 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 198 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?>text-decoration: none; 200 <?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; 201 <?php endif; ?><?php if (!empty($font_family)): ?>font-family: <?php echo esc_attr($font_family); ?>; 202 <?php endif; ?><?php if (!empty($padding)): ?>padding: <?php echo esc_attr($padding); ?>; 203 <?php endif; ?><?php if (!empty($background_color)): ?>background-color: <?php echo esc_attr($background_color); ?>; 204 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; 205 <?php endif; ?> 216 206 } 217 207 </style> 218 <?php 219 } 220 208 <?php 209 } -
woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-compare.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_compare'); 5 5 6 function wcps_layout_elements_woo_smart_compare($layout_elements){ 6 function wcps_layout_elements_woo_smart_compare($layout_elements) 7 { 7 8 8 9 9 $layout_elements['woo_smart_compare'] = array('name' => __('WPC Smart Compare','woocommerce-products-slider'));10 $layout_elements['woo_smart_compare'] = array('name' => __('WPC Smart Compare', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_woo_smart_compare','wcps_layout_elements_option_woo_smart_compare'); 19 function wcps_layout_elements_option_woo_smart_compare($parameters){ 18 add_action('wcps_layout_elements_option_woo_smart_compare', 'wcps_layout_elements_option_woo_smart_compare'); 19 function wcps_layout_elements_option_woo_smart_compare($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('WPC Smart Compare', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('WPC Smart Compare', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[woo_smart_compare]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[woo_smart_compare]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 60 61 </div> 61 62 </div> 62 <?php63 <?php 63 64 64 65 } … … 68 69 69 70 add_action('wcps_layout_element_woo_smart_compare', 'wcps_layout_element_woo_smart_compare', 10); 70 function wcps_layout_element_woo_smart_compare($args){ 71 function wcps_layout_element_woo_smart_compare($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-woo_smart_compare element-' .$element_index : 'element-woo_smart_compare';79 $element_class = !empty($element_index) ? 'element-woo_smart_compare element-' . $element_index : 'element-woo_smart_compare'; 78 80 79 ?>80 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wooscp id="' .$product_id.'" ]'));; ?></div>81 <?php81 ?> 82 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wooscp id="' . $product_id . '" ]'));; ?></div> 83 <?php 82 84 83 85 } … … 87 89 88 90 add_action('wcps_layout_element_css_woo_smart_compare', 'wcps_layout_element_css_woo_smart_compare', 10); 89 function wcps_layout_element_css_woo_smart_compare($args){ 91 function wcps_layout_element_css_woo_smart_compare($args) 92 { 90 93 91 94 … … 98 101 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 99 102 100 ?> 101 <style > 102 103 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 104 <?php if(!empty($margin)): ?> 105 margin: <?php echo esc_attr($margin); ?>; 106 <?php endif; ?> 107 103 ?> 104 <style> 105 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 106 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 107 <?php endif; ?> 108 108 } 109 110 109 </style> 111 <?php110 <?php 112 111 } 113 -
woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-quick-view.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_quick_view'); 5 5 6 function wcps_layout_elements_woo_smart_quick_view($layout_elements){ 6 function wcps_layout_elements_woo_smart_quick_view($layout_elements) 7 { 7 8 8 9 9 $layout_elements['woo_smart_quick_view'] = array('name' => __('WPClever quick view','woocommerce-products-slider'));10 $layout_elements['woo_smart_quick_view'] = array('name' => __('WPClever quick view', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_woo_smart_quick_view','wcps_layout_elements_option_woo_smart_quick_view'); 19 function wcps_layout_elements_option_woo_smart_quick_view($parameters){ 18 add_action('wcps_layout_elements_option_woo_smart_quick_view', 'wcps_layout_elements_option_woo_smart_quick_view'); 19 function wcps_layout_elements_option_woo_smart_quick_view($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('WPClever quick view', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('WPClever quick view', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[woo_smart_quick_view]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[woo_smart_quick_view]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 60 61 </div> 61 62 </div> 62 <?php63 <?php 63 64 64 65 } … … 68 69 69 70 add_action('wcps_layout_element_woo_smart_quick_view', 'wcps_layout_element_woo_smart_quick_view', 10); 70 function wcps_layout_element_woo_smart_quick_view($args){ 71 function wcps_layout_element_woo_smart_quick_view($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-woo_smart_quick_view element-' .$element_index : 'element-woo_smart_quick_view';79 $element_class = !empty($element_index) ? 'element-woo_smart_quick_view element-' . $element_index : 'element-woo_smart_quick_view'; 78 80 79 ?>80 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosq id="' .$product_id.'" ]'));; ?></div>81 <?php81 ?> 82 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosq id="' . $product_id . '" ]'));; ?></div> 83 <?php 82 84 83 85 } … … 87 89 88 90 add_action('wcps_layout_element_css_woo_smart_quick_view', 'wcps_layout_element_css_woo_smart_quick_view', 10); 89 function wcps_layout_element_css_woo_smart_quick_view($args){ 91 function wcps_layout_element_css_woo_smart_quick_view($args) 92 { 90 93 91 94 … … 98 101 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 99 102 100 ?> 101 <style > 102 103 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 104 <?php if(!empty($margin)): ?> 105 margin: <?php echo esc_attr($margin); ?>; 106 <?php endif; ?> 107 103 ?> 104 <style> 105 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 106 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 107 <?php endif; ?> 108 108 } 109 110 109 </style> 111 <?php110 <?php 112 111 } 113 -
woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-wishlist.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_wishlist'); 5 5 6 function wcps_layout_elements_woo_smart_wishlist($layout_elements){ 6 function wcps_layout_elements_woo_smart_wishlist($layout_elements) 7 { 7 8 8 9 9 $layout_elements['woo_smart_wishlist'] = array('name' => __('WPClever wishlist','woocommerce-products-slider'));10 $layout_elements['woo_smart_wishlist'] = array('name' => __('WPClever wishlist', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_woo_smart_wishlist','wcps_layout_elements_option_woo_smart_wishlist'); 19 function wcps_layout_elements_option_woo_smart_wishlist($parameters){ 18 add_action('wcps_layout_elements_option_woo_smart_wishlist', 'wcps_layout_elements_option_woo_smart_wishlist'); 19 function wcps_layout_elements_option_woo_smart_wishlist($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('WPClever wishlist', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('WPClever wishlist', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[woo_smart_wishlist]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[woo_smart_wishlist]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 60 61 </div> 61 62 </div> 62 <?php63 <?php 63 64 64 65 } … … 68 69 69 70 add_action('wcps_layout_element_woo_smart_wishlist', 'wcps_layout_element_woo_smart_wishlist', 10); 70 function wcps_layout_element_woo_smart_wishlist($args){ 71 function wcps_layout_element_woo_smart_wishlist($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-woo_smart_wishlist element-' .$element_index : 'element-woo_smart_wishlist';79 $element_class = !empty($element_index) ? 'element-woo_smart_wishlist element-' . $element_index : 'element-woo_smart_wishlist'; 78 80 79 ?>80 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosw id="' .$product_id.'" ]'));; ?></div>81 <?php81 ?> 82 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosw id="' . $product_id . '" ]'));; ?></div> 83 <?php 82 84 83 85 } … … 87 89 88 90 add_action('wcps_layout_element_css_woo_smart_wishlist', 'wcps_layout_element_css_woo_smart_wishlist', 10); 89 function wcps_layout_element_css_woo_smart_wishlist($args){ 91 function wcps_layout_element_css_woo_smart_wishlist($args) 92 { 90 93 91 94 … … 98 101 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 99 102 100 ?> 101 <style > 102 103 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 104 <?php if(!empty($margin)): ?> 105 margin: <?php echo esc_attr($margin); ?>; 106 <?php endif; ?> 107 103 ?> 104 <style> 105 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 106 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 107 <?php endif; ?> 108 108 } 109 110 109 </style> 111 <?php110 <?php 112 111 } 113 -
woocommerce-products-slider/trunk/includes/3rd-party/wpc-countdown-timer.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_wpc_countdown_timer'); 5 5 6 function wcps_layout_elements_wpc_countdown_timer($layout_elements){ 6 function wcps_layout_elements_wpc_countdown_timer($layout_elements) 7 { 7 8 8 9 9 $layout_elements['wpc_countdown_timer'] = array('name' => __('WPC countdown','woocommerce-products-slider'));10 $layout_elements['wpc_countdown_timer'] = array('name' => __('WPC countdown', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_wpc_countdown_timer','wcps_layout_elements_option_wpc_countdown_timer'); 19 function wcps_layout_elements_option_wpc_countdown_timer($parameters){ 18 add_action('wcps_layout_elements_option_wpc_countdown_timer', 'wcps_layout_elements_option_wpc_countdown_timer'); 19 function wcps_layout_elements_option_wpc_countdown_timer($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 29 30 $margin = isset($element_data['margin']) ? $element_data['margin'] : ''; 30 31 31 ?>32 ?> 32 33 <div class="item"> 33 34 <div class="element-title header "> … … 35 36 <span class="sort"><i class="fas fa-sort"></i></span> 36 37 37 <span class="expand"><?php echo esc_html__('WPC countdown', 'woocommerce-products-slider'); ?></span>38 <span class="expand"><?php echo esc_html__('WPC countdown', 'woocommerce-products-slider'); ?></span> 38 39 </div> 39 40 <div class="element-options options"> … … 42 43 43 44 $args = array( 44 'id' => 'margin',45 'css_id' => $element_index.'_margin',46 'parent' => $input_name .'[wpc_countdown_timer]',47 'title' => __('Margin','woocommerce-products-slider'),48 'details' => __('Set margin.','woocommerce-products-slider'),49 'type' => 'text',50 'value' => $margin,51 'default' => '',52 'placeholder' => '5px 0',45 'id' => 'margin', 46 'css_id' => $element_index . '_margin', 47 'parent' => $input_name . '[wpc_countdown_timer]', 48 'title' => __('Margin', 'woocommerce-products-slider'), 49 'details' => __('Set margin.', 'woocommerce-products-slider'), 50 'type' => 'text', 51 'value' => $margin, 52 'default' => '', 53 'placeholder' => '5px 0', 53 54 ); 54 55 … … 68 69 69 70 add_action('wcps_layout_element_wpc_countdown_timer', 'wcps_layout_element_wpc_countdown_timer', 10); 70 function wcps_layout_element_wpc_countdown_timer($args){ 71 function wcps_layout_element_wpc_countdown_timer($args) 72 { 71 73 72 74 //echo '<pre>'.var_export($args, true).'</pre>'; … … 75 77 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 76 78 77 $element_class = !empty($element_index) ? 'element-wpc_countdown_timer element-' .$element_index : 'element-wpc_countdown_timer';79 $element_class = !empty($element_index) ? 'element-wpc_countdown_timer element-' . $element_index : 'element-wpc_countdown_timer'; 78 80 79 if (class_exists( 'WPCleverWooct' )){81 if (class_exists('WPCleverWooct')) { 80 82 $WPCleverWooct = new WPCleverWooct(); 81 83 $wooct_action_show_countdown = $WPCleverWooct->wooct_action_show_countdown(); 82 84 83 85 84 ?>86 ?> 85 87 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post($wooct_action_show_countdown); ?></div> 86 <?php88 <?php 87 89 } 88 89 90 90 } 91 91 … … 94 94 95 95 add_action('wcps_layout_element_css_wpc_countdown_timer', 'wcps_layout_element_css_wpc_countdown_timer', 10); 96 function wcps_layout_element_css_wpc_countdown_timer($args){ 96 function wcps_layout_element_css_wpc_countdown_timer($args) 97 { 97 98 98 99 … … 106 107 107 108 ?> 108 <style > 109 110 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 111 <?php if(!empty($margin)): ?> 112 margin: <?php echo esc_attr($margin); ?>; 113 <?php endif; ?> 114 109 <style> 110 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 111 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 112 <?php endif; ?> 115 113 } 116 117 114 </style> 118 <?php115 <?php 119 116 } 120 -
woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-badges-management.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_badges'); 5 5 6 function wcps_layout_elements_yith_badges($layout_elements){ 6 function wcps_layout_elements_yith_badges($layout_elements) 7 { 7 8 8 9 9 $layout_elements['yith_badges'] = array('name' => __('YITH badges','woocommerce-products-slider'));10 $layout_elements['yith_badges'] = array('name' => __('YITH badges', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_yith_badges','wcps_layout_elements_option_yith_badges'); 19 function wcps_layout_elements_option_yith_badges($parameters){ 18 add_action('wcps_layout_elements_option_yith_badges', 'wcps_layout_elements_option_yith_badges'); 19 function wcps_layout_elements_option_yith_badges($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 32 33 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 33 34 34 ?>35 ?> 35 36 <div class="item"> 36 37 <div class="element-title header "> … … 38 39 <span class="sort"><i class="fas fa-sort"></i></span> 39 40 40 <span class="expand"><?php echo esc_html__('YITH badges', 'woocommerce-products-slider'); ?></span>41 <span class="expand"><?php echo esc_html__('YITH badges', 'woocommerce-products-slider'); ?></span> 41 42 </div> 42 43 <div class="element-options options"> … … 45 46 46 47 $args = array( 47 'id' => 'margin',48 'css_id' => $element_index.'_margin',49 'parent' => $input_name .'[yith_badges]',50 'title' => __('Margin','woocommerce-products-slider'),51 'details' => __('Set margin.','woocommerce-products-slider'),52 'type' => 'text',53 'value' => $margin,54 'default' => '',55 'placeholder' => '5px 0',48 'id' => 'margin', 49 'css_id' => $element_index . '_margin', 50 'parent' => $input_name . '[yith_badges]', 51 'title' => __('Margin', 'woocommerce-products-slider'), 52 'details' => __('Set margin.', 'woocommerce-products-slider'), 53 'type' => 'text', 54 'value' => $margin, 55 'default' => '', 56 'placeholder' => '5px 0', 56 57 ); 57 58 … … 66 67 </div> 67 68 </div> 68 <?php69 <?php 69 70 70 71 } … … 74 75 75 76 add_action('wcps_layout_element_yith_badges', 'wcps_layout_element_yith_badges', 10); 76 function wcps_layout_element_yith_badges($args){ 77 function wcps_layout_element_yith_badges($args) 78 { 77 79 78 80 //echo '<pre>'.var_export($args, true).'</pre>'; … … 81 83 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 82 84 83 $element_class = !empty($element_index) ? 'element-yith_badges element-' .$element_index : 'element-yith_badges';85 $element_class = !empty($element_index) ? 'element-yith_badges element-' . $element_index : 'element-yith_badges'; 84 86 85 wp_enqueue_script( 'yith_wccl_frontend' ); 86 wp_enqueue_style( 'yith_wccl_frontend' ); 87 88 89 87 wp_enqueue_script('yith_wccl_frontend'); 88 wp_enqueue_style('yith_wccl_frontend'); 90 89 } 91 90 92 remove_action( 'woocommerce_variable_add_to_cart', 'woocommerce_variable_add_to_cart', 30);93 add_action( 'woocommerce_variable_add_to_cart', array( $this, 'variable_add_to_cart' ), 30);91 remove_action('woocommerce_variable_add_to_cart', 'woocommerce_variable_add_to_cart', 30); 92 add_action('woocommerce_variable_add_to_cart', array($this, 'variable_add_to_cart'), 30); 94 93 95 94 96 95 add_action('wcps_layout_element_css_yith_badges', 'wcps_layout_element_css_yith_badges', 10); 97 function wcps_layout_element_css_yith_badges($args){ 96 function wcps_layout_element_css_yith_badges($args) 97 { 98 98 99 99 … … 107 107 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 108 108 109 ?> 110 <style > 111 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 112 <?php if(!empty($margin)): ?> 113 margin: <?php echo esc_attr($margin); ?>; 114 <?php endif; ?> 109 ?> 110 <style> 111 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 112 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 113 <?php endif; ?> 115 114 } 116 115 </style> 117 <?php116 <?php 118 117 } 119 -
woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-brands-add-on.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_brands'); 5 5 6 function wcps_layout_elements_yith_brands($layout_elements){ 7 8 9 $layout_elements['yith_brands'] = array('name' =>__('YITH brands','woocommerce-products-slider')); 6 function wcps_layout_elements_yith_brands($layout_elements) 7 { 8 9 10 $layout_elements['yith_brands'] = array('name' => __('YITH brands', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_brands','wcps_layout_elements_option_yith_brands'); 19 function wcps_layout_elements_option_yith_brands($parameters){13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_brands', 'wcps_layout_elements_option_yith_brands'); 19 function wcps_layout_elements_option_yith_brands($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 35 36 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 36 37 37 ?>38 ?> 38 39 <div class="item"> 39 40 <div class="element-title header "> … … 41 42 <span class="sort"><i class="fas fa-sort"></i></span> 42 43 43 <span class="expand"><?php echo esc_html__('YITH brands', 'woocommerce-products-slider'); ?></span>44 <span class="expand"><?php echo esc_html__('YITH brands', 'woocommerce-products-slider'); ?></span> 44 45 </div> 45 46 <div class="element-options options"> … … 48 49 49 50 $args = array( 50 'id' => 'font_size',51 'css_id' => $element_index.'_font_size',52 'parent' => $input_name .'[yith_brands]',53 'title' => __('Font size','woocommerce-products-slider'),54 'details' => __('Choose font size.','woocommerce-products-slider'),55 'type' => 'text',56 'value' => $font_size,57 'default' => '',58 'placeholder' => '16px',59 60 ); 61 62 $settings_tabs_field->generate_field($args); 63 64 65 $args = array( 66 'id' => 'font_family',67 'css_id' => $element_index.'_font_family',68 'parent' => $input_name .'[yith_brands]',69 'title' => __('Font family','woocommerce-products-slider'),70 'details' => __('Set font family.','woocommerce-products-slider'),71 'type' => 'text',72 'value' => $font_family,73 'default' => '',74 'placeholder' => 'Open Sans',75 ); 76 77 $settings_tabs_field->generate_field($args); 78 79 80 $args = array( 81 'id' => 'color',82 'css_id' => $element_index.'_content_color',83 'parent' => $input_name .'[yith_brands]',84 'title' => __('Color','woocommerce-products-slider'),85 'details' => __('Title text color.','woocommerce-products-slider'),86 'type' => 'colorpicker',87 'value' => $color,88 'default' => '',89 ); 90 91 $settings_tabs_field->generate_field($args); 92 93 $args = array( 94 'id' => 'background_color',95 'css_id' => $element_index.'_background_color',96 'parent' => $input_name .'[yith_brands]',97 'title' => __('Background color','woocommerce-products-slider'),98 'details' => __('Choose background color.','woocommerce-products-slider'),99 'type' => 'colorpicker',100 'value' => $background_color,101 'default' => '',102 ); 103 104 $settings_tabs_field->generate_field($args); 105 106 107 $args = array( 108 'id' => 'margin',109 'css_id' => $element_index.'_margin',110 'parent' => $input_name .'[yith_brands]',111 'title' => __('Margin','woocommerce-products-slider'),112 'details' => __('Set margin.','woocommerce-products-slider'),113 'type' => 'text',114 'value' => $margin,115 'default' => '',116 'placeholder' => '5px 0',117 ); 118 119 $settings_tabs_field->generate_field($args); 120 121 122 $args = array( 123 'id' => 'padding',124 'css_id' => $element_index.'_padding',125 'parent' => $input_name .'[yith_brands]',126 'title' => __('Padding','woocommerce-products-slider'),127 'details' => __('Set padding.','woocommerce-products-slider'),128 'type' => 'text',129 'value' => $padding,130 'default' => '',131 'placeholder' => '5px 0',51 'id' => 'font_size', 52 'css_id' => $element_index . '_font_size', 53 'parent' => $input_name . '[yith_brands]', 54 'title' => __('Font size', 'woocommerce-products-slider'), 55 'details' => __('Choose font size.', 'woocommerce-products-slider'), 56 'type' => 'text', 57 'value' => $font_size, 58 'default' => '', 59 'placeholder' => '16px', 60 61 ); 62 63 $settings_tabs_field->generate_field($args); 64 65 66 $args = array( 67 'id' => 'font_family', 68 'css_id' => $element_index . '_font_family', 69 'parent' => $input_name . '[yith_brands]', 70 'title' => __('Font family', 'woocommerce-products-slider'), 71 'details' => __('Set font family.', 'woocommerce-products-slider'), 72 'type' => 'text', 73 'value' => $font_family, 74 'default' => '', 75 'placeholder' => 'Open Sans', 76 ); 77 78 $settings_tabs_field->generate_field($args); 79 80 81 $args = array( 82 'id' => 'color', 83 'css_id' => $element_index . '_content_color', 84 'parent' => $input_name . '[yith_brands]', 85 'title' => __('Color', 'woocommerce-products-slider'), 86 'details' => __('Title text color.', 'woocommerce-products-slider'), 87 'type' => 'colorpicker', 88 'value' => $color, 89 'default' => '', 90 ); 91 92 $settings_tabs_field->generate_field($args); 93 94 $args = array( 95 'id' => 'background_color', 96 'css_id' => $element_index . '_background_color', 97 'parent' => $input_name . '[yith_brands]', 98 'title' => __('Background color', 'woocommerce-products-slider'), 99 'details' => __('Choose background color.', 'woocommerce-products-slider'), 100 'type' => 'colorpicker', 101 'value' => $background_color, 102 'default' => '', 103 ); 104 105 $settings_tabs_field->generate_field($args); 106 107 108 $args = array( 109 'id' => 'margin', 110 'css_id' => $element_index . '_margin', 111 'parent' => $input_name . '[yith_brands]', 112 'title' => __('Margin', 'woocommerce-products-slider'), 113 'details' => __('Set margin.', 'woocommerce-products-slider'), 114 'type' => 'text', 115 'value' => $margin, 116 'default' => '', 117 'placeholder' => '5px 0', 118 ); 119 120 $settings_tabs_field->generate_field($args); 121 122 123 $args = array( 124 'id' => 'padding', 125 'css_id' => $element_index . '_padding', 126 'parent' => $input_name . '[yith_brands]', 127 'title' => __('Padding', 'woocommerce-products-slider'), 128 'details' => __('Set padding.', 'woocommerce-products-slider'), 129 'type' => 'text', 130 'value' => $padding, 131 'default' => '', 132 'placeholder' => '5px 0', 132 133 ); 133 134 … … 139 140 </div> 140 141 </div> 141 <?php142 <?php 142 143 143 144 } … … 147 148 148 149 add_action('wcps_layout_element_yith_brands', 'wcps_layout_element_yith_brands', 10); 149 function wcps_layout_element_yith_brands($args){ 150 function wcps_layout_element_yith_brands($args) 151 { 150 152 151 153 //echo '<pre>'.var_export($args, true).'</pre>'; … … 154 156 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 155 157 156 $element_class = !empty($element_index) ? 'element-yith_brands element-' .$element_index : 'element-yith_brands';157 158 ?>159 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_wcbr_product_brand product_id="' .$product_id.'" ]'));; ?></div>160 <?php158 $element_class = !empty($element_index) ? 'element-yith_brands element-' . $element_index : 'element-yith_brands'; 159 160 ?> 161 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_wcbr_product_brand product_id="' . $product_id . '" ]'));; ?></div> 162 <?php 161 163 162 164 } … … 166 168 167 169 add_action('wcps_layout_element_css_yith_brands', 'wcps_layout_element_css_yith_brands', 10); 168 function wcps_layout_element_css_yith_brands($args){ 170 function wcps_layout_element_css_yith_brands($args) 171 { 169 172 170 173 … … 185 188 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 186 189 187 ?> 188 <style > 189 190 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 191 <?php if(!empty($margin)): ?> 192 margin: <?php echo esc_attr($margin); ?>; 193 <?php endif; ?> 194 190 ?> 191 <style> 192 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 193 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 194 <?php endif; ?> 195 195 } 196 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?> a{ 197 <?php if(!empty($color)): ?> 198 color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?> 200 text-decoration: none; 201 <?php if(!empty($font_size)): ?> 202 font-size: <?php echo esc_attr($font_size); ?>; 203 <?php endif; ?> 204 <?php if(!empty($font_family)): ?> 205 font-family: <?php echo esc_attr($font_family); ?>; 206 <?php endif; ?> 207 <?php if(!empty($padding)): ?> 208 padding: <?php echo esc_attr($padding); ?>; 209 <?php endif; ?> 210 <?php if(!empty($background_color)): ?> 211 background-color: <?php echo esc_attr($background_color); ?>; 212 <?php endif; ?> 213 <?php if(!empty($text_align)): ?> 214 text-align: <?php echo esc_attr($text_align); ?>; 215 <?php endif; ?> 196 197 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 198 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?>text-decoration: none; 200 <?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; 201 <?php endif; ?><?php if (!empty($font_family)): ?>font-family: <?php echo esc_attr($font_family); ?>; 202 <?php endif; ?><?php if (!empty($padding)): ?>padding: <?php echo esc_attr($padding); ?>; 203 <?php endif; ?><?php if (!empty($background_color)): ?>background-color: <?php echo esc_attr($background_color); ?>; 204 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; 205 <?php endif; ?> 216 206 } 217 207 </style> 218 <?php 219 } 220 208 <?php 209 } -
woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-compare.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_compare'); 5 5 6 function wcps_layout_elements_yith_compare($layout_elements){ 6 function wcps_layout_elements_yith_compare($layout_elements) 7 { 7 8 8 9 9 $layout_elements['yith_compare'] = array('name' => __('YITH compare','woocommerce-products-slider'));10 $layout_elements['yith_compare'] = array('name' => __('YITH compare', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 13 } 14 14 … … 16 16 17 17 18 add_action('wcps_layout_elements_option_yith_compare','wcps_layout_elements_option_yith_compare'); 19 function wcps_layout_elements_option_yith_compare($parameters){ 18 add_action('wcps_layout_elements_option_yith_compare', 'wcps_layout_elements_option_yith_compare'); 19 function wcps_layout_elements_option_yith_compare($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 32 33 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 33 34 34 ?>35 ?> 35 36 <div class="item"> 36 37 <div class="element-title header "> … … 38 39 <span class="sort"><i class="fas fa-sort"></i></span> 39 40 40 <span class="expand"><?php echo esc_html__('YITH compare', 'woocommerce-products-slider'); ?></span>41 <span class="expand"><?php echo esc_html__('YITH compare', 'woocommerce-products-slider'); ?></span> 41 42 </div> 42 43 <div class="element-options options"> … … 45 46 46 47 $args = array( 47 'id' => 'margin',48 'css_id' => $element_index.'_margin',49 'parent' => $input_name .'[yith_compare]',50 'title' => __('Margin','woocommerce-products-slider'),51 'details' => __('Set margin.','woocommerce-products-slider'),52 'type' => 'text',53 'value' => $margin,54 'default' => '',55 'placeholder' => '5px 0',48 'id' => 'margin', 49 'css_id' => $element_index . '_margin', 50 'parent' => $input_name . '[yith_compare]', 51 'title' => __('Margin', 'woocommerce-products-slider'), 52 'details' => __('Set margin.', 'woocommerce-products-slider'), 53 'type' => 'text', 54 'value' => $margin, 55 'default' => '', 56 'placeholder' => '5px 0', 56 57 ); 57 58 … … 66 67 </div> 67 68 </div> 68 <?php69 <?php 69 70 70 71 } … … 74 75 75 76 add_action('wcps_layout_element_yith_compare', 'wcps_layout_element_yith_compare', 10); 76 function wcps_layout_element_yith_compare($args){ 77 function wcps_layout_element_yith_compare($args) 78 { 77 79 78 80 //echo '<pre>'.var_export($args, true).'</pre>'; … … 81 83 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 82 84 83 $element_class = !empty($element_index) ? 'element-yith_compare element-' .$element_index : 'element-yith_compare';85 $element_class = !empty($element_index) ? 'element-yith_compare element-' . $element_index : 'element-yith_compare'; 84 86 85 ?>86 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_compare_button product_id="' .$product_id.'" ]'));; ?></div>87 <?php87 ?> 88 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_compare_button product_id="' . $product_id . '" ]'));; ?></div> 89 <?php 88 90 89 91 } … … 93 95 94 96 add_action('wcps_layout_element_css_yith_compare', 'wcps_layout_element_css_yith_compare', 10); 95 function wcps_layout_element_css_yith_compare($args){ 97 function wcps_layout_element_css_yith_compare($args) 98 { 96 99 97 100 … … 105 108 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 106 109 107 ?> 108 <style > 109 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 110 <?php if(!empty($margin)): ?> 111 margin: <?php echo esc_attr($margin); ?>; 112 <?php endif; ?> 110 ?> 111 <style> 112 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 113 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 114 <?php endif; ?> 113 115 } 114 116 </style> 115 <?php117 <?php 116 118 } 117 -
woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-quick-view.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_quick_view'); 5 5 6 function wcps_layout_elements_yith_quick_view($layout_elements){ 7 8 9 $layout_elements['yith_quick_view'] = array('name' =>__('YITH quick view','woocommerce-products-slider')); 6 function wcps_layout_elements_yith_quick_view($layout_elements) 7 { 8 9 10 $layout_elements['yith_quick_view'] = array('name' => __('YITH quick view', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_quick_view','wcps_layout_elements_option_yith_quick_view'); 19 function wcps_layout_elements_option_yith_quick_view($parameters){13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_quick_view', 'wcps_layout_elements_option_yith_quick_view'); 19 function wcps_layout_elements_option_yith_quick_view($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 35 36 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 36 37 37 ?>38 ?> 38 39 <div class="item"> 39 40 <div class="element-title header "> … … 41 42 <span class="sort"><i class="fas fa-sort"></i></span> 42 43 43 <span class="expand"><?php echo esc_html__('YITH quick view', 'woocommerce-products-slider'); ?></span>44 <span class="expand"><?php echo esc_html__('YITH quick view', 'woocommerce-products-slider'); ?></span> 44 45 </div> 45 46 <div class="element-options options"> … … 49 50 50 51 $args = array( 51 'id' => 'label_text',52 'css_id' => $element_index.'_font_size',53 'parent' => $input_name .'[yith_quick_view]',54 'title' => __('label text','woocommerce-products-slider'),55 'details' => __('Custom label text.','woocommerce-products-slider'),56 'type' => 'text',57 'value' => $label_text,58 'default' => '',59 'placeholder' => '',60 61 ); 62 63 $settings_tabs_field->generate_field($args); 64 65 66 $args = array( 67 'id' => 'font_size',68 'css_id' => $element_index.'_font_size',69 'parent' => $input_name .'[yith_quick_view]',70 'title' => __('Font size','woocommerce-products-slider'),71 'details' => __('Choose font size.','woocommerce-products-slider'),72 'type' => 'text',73 'value' => $font_size,74 'default' => '',75 'placeholder' => '16px',76 77 ); 78 79 $settings_tabs_field->generate_field($args); 80 81 82 $args = array( 83 'id' => 'font_family',84 'css_id' => $element_index.'_font_family',85 'parent' => $input_name .'[yith_quick_view]',86 'title' => __('Font family','woocommerce-products-slider'),87 'details' => __('Set font family.','woocommerce-products-slider'),88 'type' => 'text',89 'value' => $font_family,90 'default' => '',91 'placeholder' => 'Open Sans',92 ); 93 94 $settings_tabs_field->generate_field($args); 95 96 97 $args = array( 98 'id' => 'color',99 'css_id' => $element_index.'_content_color',100 'parent' => $input_name .'[yith_quick_view]',101 'title' => __('Color','woocommerce-products-slider'),102 'details' => __('Title text color.','woocommerce-products-slider'),103 'type' => 'colorpicker',104 'value' => $color,105 'default' => '',106 ); 107 108 $settings_tabs_field->generate_field($args); 109 110 $args = array( 111 'id' => 'background_color',112 'css_id' => $element_index.'_background_color',113 'parent' => $input_name .'[yith_quick_view]',114 'title' => __('Background color','woocommerce-products-slider'),115 'details' => __('Choose background color.','woocommerce-products-slider'),116 'type' => 'colorpicker',117 'value' => $background_color,118 'default' => '',119 ); 120 121 $settings_tabs_field->generate_field($args); 122 123 124 $args = array( 125 'id' => 'margin',126 'css_id' => $element_index.'_margin',127 'parent' => $input_name .'[yith_quick_view]',128 'title' => __('Margin','woocommerce-products-slider'),129 'details' => __('Set margin.','woocommerce-products-slider'),130 'type' => 'text',131 'value' => $margin,132 'default' => '',133 'placeholder' => '5px 0',134 ); 135 136 $settings_tabs_field->generate_field($args); 137 138 139 $args = array( 140 'id' => 'padding',141 'css_id' => $element_index.'_padding',142 'parent' => $input_name .'[yith_quick_view]',143 'title' => __('Padding','woocommerce-products-slider'),144 'details' => __('Set padding.','woocommerce-products-slider'),145 'type' => 'text',146 'value' => $padding,147 'default' => '',148 'placeholder' => '5px 0',52 'id' => 'label_text', 53 'css_id' => $element_index . '_font_size', 54 'parent' => $input_name . '[yith_quick_view]', 55 'title' => __('label text', 'woocommerce-products-slider'), 56 'details' => __('Custom label text.', 'woocommerce-products-slider'), 57 'type' => 'text', 58 'value' => $label_text, 59 'default' => '', 60 'placeholder' => '', 61 62 ); 63 64 $settings_tabs_field->generate_field($args); 65 66 67 $args = array( 68 'id' => 'font_size', 69 'css_id' => $element_index . '_font_size', 70 'parent' => $input_name . '[yith_quick_view]', 71 'title' => __('Font size', 'woocommerce-products-slider'), 72 'details' => __('Choose font size.', 'woocommerce-products-slider'), 73 'type' => 'text', 74 'value' => $font_size, 75 'default' => '', 76 'placeholder' => '16px', 77 78 ); 79 80 $settings_tabs_field->generate_field($args); 81 82 83 $args = array( 84 'id' => 'font_family', 85 'css_id' => $element_index . '_font_family', 86 'parent' => $input_name . '[yith_quick_view]', 87 'title' => __('Font family', 'woocommerce-products-slider'), 88 'details' => __('Set font family.', 'woocommerce-products-slider'), 89 'type' => 'text', 90 'value' => $font_family, 91 'default' => '', 92 'placeholder' => 'Open Sans', 93 ); 94 95 $settings_tabs_field->generate_field($args); 96 97 98 $args = array( 99 'id' => 'color', 100 'css_id' => $element_index . '_content_color', 101 'parent' => $input_name . '[yith_quick_view]', 102 'title' => __('Color', 'woocommerce-products-slider'), 103 'details' => __('Title text color.', 'woocommerce-products-slider'), 104 'type' => 'colorpicker', 105 'value' => $color, 106 'default' => '', 107 ); 108 109 $settings_tabs_field->generate_field($args); 110 111 $args = array( 112 'id' => 'background_color', 113 'css_id' => $element_index . '_background_color', 114 'parent' => $input_name . '[yith_quick_view]', 115 'title' => __('Background color', 'woocommerce-products-slider'), 116 'details' => __('Choose background color.', 'woocommerce-products-slider'), 117 'type' => 'colorpicker', 118 'value' => $background_color, 119 'default' => '', 120 ); 121 122 $settings_tabs_field->generate_field($args); 123 124 125 $args = array( 126 'id' => 'margin', 127 'css_id' => $element_index . '_margin', 128 'parent' => $input_name . '[yith_quick_view]', 129 'title' => __('Margin', 'woocommerce-products-slider'), 130 'details' => __('Set margin.', 'woocommerce-products-slider'), 131 'type' => 'text', 132 'value' => $margin, 133 'default' => '', 134 'placeholder' => '5px 0', 135 ); 136 137 $settings_tabs_field->generate_field($args); 138 139 140 $args = array( 141 'id' => 'padding', 142 'css_id' => $element_index . '_padding', 143 'parent' => $input_name . '[yith_quick_view]', 144 'title' => __('Padding', 'woocommerce-products-slider'), 145 'details' => __('Set padding.', 'woocommerce-products-slider'), 146 'type' => 'text', 147 'value' => $padding, 148 'default' => '', 149 'placeholder' => '5px 0', 149 150 ); 150 151 … … 156 157 </div> 157 158 </div> 158 <?php159 <?php 159 160 160 161 } … … 164 165 165 166 add_action('wcps_layout_element_yith_quick_view', 'wcps_layout_element_yith_quick_view', 10); 166 function wcps_layout_element_yith_quick_view($args){ 167 function wcps_layout_element_yith_quick_view($args) 168 { 167 169 168 170 //echo '<pre>'.var_export($args, true).'</pre>'; … … 171 173 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 172 174 173 $element_class = !empty($element_index) ? 'element-yith_quick_view element-' .$element_index : 'element-yith_quick_view';175 $element_class = !empty($element_index) ? 'element-yith_quick_view element-' . $element_index : 'element-yith_quick_view'; 174 176 175 177 $label_text = isset($elementData['label_text']) ? $elementData['label_text'] : ''; 176 178 177 179 178 ?>179 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_quick_view label="' .$label_text.'" product_id="'.$product_id.'" ]'));; ?></div>180 <?php180 ?> 181 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_quick_view label="' . $label_text . '" product_id="' . $product_id . '" ]'));; ?></div> 182 <?php 181 183 182 184 } … … 186 188 187 189 add_action('wcps_layout_element_css_yith_quick_view', 'wcps_layout_element_css_yith_quick_view', 10); 188 function wcps_layout_element_css_yith_quick_view($args){ 190 function wcps_layout_element_css_yith_quick_view($args) 191 { 189 192 190 193 … … 205 208 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 206 209 207 ?> 208 <style > 209 210 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 211 <?php if(!empty($margin)): ?> 212 margin: <?php echo esc_attr($margin); ?>; 213 <?php endif; ?> 210 ?> 211 <style> 212 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 213 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 214 <?php endif; ?> 214 215 } 215 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?> a{ 216 <?php if(!empty($color)): ?> 217 color: <?php echo esc_attr($color); ?>; 218 <?php endif; ?> 219 text-decoration: none; 220 <?php if(!empty($font_size)): ?> 221 font-size: <?php echo esc_attr($font_size); ?>; 222 <?php endif; ?> 223 <?php if(!empty($font_family)): ?> 224 font-family: <?php echo esc_attr($font_family); ?>; 225 <?php endif; ?> 226 <?php if(!empty($padding)): ?> 227 padding: <?php echo esc_attr($padding); ?>; 228 <?php endif; ?> 229 <?php if(!empty($background_color)): ?> 230 background-color: <?php echo esc_attr($background_color); ?>; 231 <?php endif; ?> 232 <?php if(!empty($text_align)): ?> 233 text-align: <?php echo esc_attr($text_align); ?>; 234 <?php endif; ?> 216 217 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 218 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 219 <?php endif; ?>text-decoration: none; 220 <?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; 221 <?php endif; ?><?php if (!empty($font_family)): ?>font-family: <?php echo esc_attr($font_family); ?>; 222 <?php endif; ?><?php if (!empty($padding)): ?>padding: <?php echo esc_attr($padding); ?>; 223 <?php endif; ?><?php if (!empty($background_color)): ?>background-color: <?php echo esc_attr($background_color); ?>; 224 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; 225 <?php endif; ?> 235 226 } 236 227 </style> 237 <?php 238 } 239 228 <?php 229 } -
woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-wishlist.php
r3422655 r3422759 1 1 <?php 2 if ( ! defined('ABSPATH')) exit; // if direct access2 if (! defined('ABSPATH')) exit; // if direct access 3 3 4 4 add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_wishlist'); 5 5 6 function wcps_layout_elements_yith_wishlist($layout_elements){ 7 8 9 $layout_elements['yith_wishlist'] = array('name' =>__('YITH wishlist','woocommerce-products-slider')); 6 function wcps_layout_elements_yith_wishlist($layout_elements) 7 { 8 9 10 $layout_elements['yith_wishlist'] = array('name' => __('YITH wishlist', 'woocommerce-products-slider')); 10 11 11 12 return $layout_elements; 12 13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_wishlist','wcps_layout_elements_option_yith_wishlist'); 19 function wcps_layout_elements_option_yith_wishlist($parameters){13 } 14 15 16 17 18 add_action('wcps_layout_elements_option_yith_wishlist', 'wcps_layout_elements_option_yith_wishlist'); 19 function wcps_layout_elements_option_yith_wishlist($parameters) 20 { 20 21 21 22 $settings_tabs_field = new settings_tabs_field(); … … 35 36 $padding = isset($element_data['padding']) ? $element_data['padding'] : ''; 36 37 37 ?>38 ?> 38 39 <div class="item"> 39 40 <div class="element-title header "> … … 41 42 <span class="sort"><i class="fas fa-sort"></i></span> 42 43 43 <span class="expand"><?php echo esc_html__('YITH wishlist', 'woocommerce-products-slider'); ?></span>44 <span class="expand"><?php echo esc_html__('YITH wishlist', 'woocommerce-products-slider'); ?></span> 44 45 </div> 45 46 <div class="element-options options"> … … 48 49 49 50 $args = array( 50 'id' => 'font_size',51 'css_id' => $element_index.'_font_size',52 'parent' => $input_name .'[yith_wishlist]',53 'title' => __('Font size','woocommerce-products-slider'),54 'details' => __('Choose font size.','woocommerce-products-slider'),55 'type' => 'text',56 'value' => $font_size,57 'default' => '',58 'placeholder' => '16px',59 60 ); 61 62 $settings_tabs_field->generate_field($args); 63 64 65 $args = array( 66 'id' => 'font_family',67 'css_id' => $element_index.'_font_family',68 'parent' => $input_name .'[yith_wishlist]',69 'title' => __('Font family','woocommerce-products-slider'),70 'details' => __('Set font family.','woocommerce-products-slider'),71 'type' => 'text',72 'value' => $font_family,73 'default' => '',74 'placeholder' => 'Open Sans',75 ); 76 77 $settings_tabs_field->generate_field($args); 78 79 80 $args = array( 81 'id' => 'color',82 'css_id' => $element_index.'_content_color',83 'parent' => $input_name .'[yith_wishlist]',84 'title' => __('Color','woocommerce-products-slider'),85 'details' => __('Title text color.','woocommerce-products-slider'),86 'type' => 'colorpicker',87 'value' => $color,88 'default' => '',89 ); 90 91 $settings_tabs_field->generate_field($args); 92 93 $args = array( 94 'id' => 'background_color',95 'css_id' => $element_index.'_background_color',96 'parent' => $input_name .'[yith_wishlist]',97 'title' => __('Background color','woocommerce-products-slider'),98 'details' => __('Choose background color.','woocommerce-products-slider'),99 'type' => 'colorpicker',100 'value' => $background_color,101 'default' => '',102 ); 103 104 $settings_tabs_field->generate_field($args); 105 106 107 $args = array( 108 'id' => 'margin',109 'css_id' => $element_index.'_margin',110 'parent' => $input_name .'[yith_wishlist]',111 'title' => __('Margin','woocommerce-products-slider'),112 'details' => __('Set margin.','woocommerce-products-slider'),113 'type' => 'text',114 'value' => $margin,115 'default' => '',116 'placeholder' => '5px 0',117 ); 118 119 $settings_tabs_field->generate_field($args); 120 121 122 $args = array( 123 'id' => 'padding',124 'css_id' => $element_index.'_padding',125 'parent' => $input_name .'[yith_wishlist]',126 'title' => __('Padding','woocommerce-products-slider'),127 'details' => __('Set padding.','woocommerce-products-slider'),128 'type' => 'text',129 'value' => $padding,130 'default' => '',131 'placeholder' => '5px 0',51 'id' => 'font_size', 52 'css_id' => $element_index . '_font_size', 53 'parent' => $input_name . '[yith_wishlist]', 54 'title' => __('Font size', 'woocommerce-products-slider'), 55 'details' => __('Choose font size.', 'woocommerce-products-slider'), 56 'type' => 'text', 57 'value' => $font_size, 58 'default' => '', 59 'placeholder' => '16px', 60 61 ); 62 63 $settings_tabs_field->generate_field($args); 64 65 66 $args = array( 67 'id' => 'font_family', 68 'css_id' => $element_index . '_font_family', 69 'parent' => $input_name . '[yith_wishlist]', 70 'title' => __('Font family', 'woocommerce-products-slider'), 71 'details' => __('Set font family.', 'woocommerce-products-slider'), 72 'type' => 'text', 73 'value' => $font_family, 74 'default' => '', 75 'placeholder' => 'Open Sans', 76 ); 77 78 $settings_tabs_field->generate_field($args); 79 80 81 $args = array( 82 'id' => 'color', 83 'css_id' => $element_index . '_content_color', 84 'parent' => $input_name . '[yith_wishlist]', 85 'title' => __('Color', 'woocommerce-products-slider'), 86 'details' => __('Title text color.', 'woocommerce-products-slider'), 87 'type' => 'colorpicker', 88 'value' => $color, 89 'default' => '', 90 ); 91 92 $settings_tabs_field->generate_field($args); 93 94 $args = array( 95 'id' => 'background_color', 96 'css_id' => $element_index . '_background_color', 97 'parent' => $input_name . '[yith_wishlist]', 98 'title' => __('Background color', 'woocommerce-products-slider'), 99 'details' => __('Choose background color.', 'woocommerce-products-slider'), 100 'type' => 'colorpicker', 101 'value' => $background_color, 102 'default' => '', 103 ); 104 105 $settings_tabs_field->generate_field($args); 106 107 108 $args = array( 109 'id' => 'margin', 110 'css_id' => $element_index . '_margin', 111 'parent' => $input_name . '[yith_wishlist]', 112 'title' => __('Margin', 'woocommerce-products-slider'), 113 'details' => __('Set margin.', 'woocommerce-products-slider'), 114 'type' => 'text', 115 'value' => $margin, 116 'default' => '', 117 'placeholder' => '5px 0', 118 ); 119 120 $settings_tabs_field->generate_field($args); 121 122 123 $args = array( 124 'id' => 'padding', 125 'css_id' => $element_index . '_padding', 126 'parent' => $input_name . '[yith_wishlist]', 127 'title' => __('Padding', 'woocommerce-products-slider'), 128 'details' => __('Set padding.', 'woocommerce-products-slider'), 129 'type' => 'text', 130 'value' => $padding, 131 'default' => '', 132 'placeholder' => '5px 0', 132 133 ); 133 134 … … 139 140 </div> 140 141 </div> 141 <?php142 <?php 142 143 143 144 } … … 147 148 148 149 add_action('wcps_layout_element_yith_wishlist', 'wcps_layout_element_yith_wishlist', 10); 149 function wcps_layout_element_yith_wishlist($args){ 150 function wcps_layout_element_yith_wishlist($args) 151 { 150 152 151 153 //echo '<pre>'.var_export($args, true).'</pre>'; … … 154 156 $element_index = isset($args['element_index']) ? $args['element_index'] : ''; 155 157 156 $element_class = !empty($element_index) ? 'element-yith_wishlist element-' .$element_index : 'element-yith_wishlist';157 158 ?>159 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_wcwl_add_to_wishlist product_id="' .$product_id.'" ]'));; ?></div>160 <?php158 $element_class = !empty($element_index) ? 'element-yith_wishlist element-' . $element_index : 'element-yith_wishlist'; 159 160 ?> 161 <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[yith_wcwl_add_to_wishlist product_id="' . $product_id . '" ]'));; ?></div> 162 <?php 161 163 162 164 } … … 166 168 167 169 add_action('wcps_layout_element_css_yith_wishlist', 'wcps_layout_element_css_yith_wishlist', 10); 168 function wcps_layout_element_css_yith_wishlist($args){ 170 function wcps_layout_element_css_yith_wishlist($args) 171 { 169 172 170 173 … … 185 188 //echo '<pre>'.var_export($layout_id, true).'</pre>'; 186 189 187 ?> 188 <style > 189 190 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?>{ 191 <?php if(!empty($margin)): ?> 192 margin: <?php echo esc_attr($margin); ?>; 193 <?php endif; ?> 194 190 ?> 191 <style> 192 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?> { 193 <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>; 194 <?php endif; ?> 195 195 } 196 .layout-<?php echo esc_attr($layout_id); ?> .element-<?php echo esc_attr($element_index); ?> a{ 197 <?php if(!empty($color)): ?> 198 color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?> 200 text-decoration: none; 201 <?php if(!empty($font_size)): ?> 202 font-size: <?php echo esc_attr($font_size); ?>; 203 <?php endif; ?> 204 <?php if(!empty($font_family)): ?> 205 font-family: <?php echo esc_attr($font_family); ?>; 206 <?php endif; ?> 207 <?php if(!empty($padding)): ?> 208 padding: <?php echo esc_attr($padding); ?>; 209 <?php endif; ?> 210 <?php if(!empty($background_color)): ?> 211 background-color: <?php echo esc_attr($background_color); ?>; 212 <?php endif; ?> 213 <?php if(!empty($text_align)): ?> 214 text-align: <?php echo esc_attr($text_align); ?>; 215 <?php endif; ?> 196 197 <?php echo esc_attr('.layout-' . $layout_id); ?><?php echo esc_attr(' .element-' . $element_index); ?>a { 198 <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>; 199 <?php endif; ?>text-decoration: none; 200 <?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>; 201 <?php endif; ?><?php if (!empty($font_family)): ?>font-family: <?php echo esc_attr($font_family); ?>; 202 <?php endif; ?><?php if (!empty($padding)): ?>padding: <?php echo esc_attr($padding); ?>; 203 <?php endif; ?><?php if (!empty($background_color)): ?>background-color: <?php echo esc_attr($background_color); ?>; 204 <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>; 205 <?php endif; ?> 216 206 } 217 207 </style> 218 <?php 219 } 220 208 <?php 209 } -
woocommerce-products-slider/trunk/includes/functions-builder.php
r3422655 r3422759 6 6 { 7 7 8 global $PostGridBuilderCss; 9 10 $PostGridBuilderCss = str_replace(""", '"', $PostGridBuilderCss); 11 $PostGridBuilderCss = str_replace(">", '>', $PostGridBuilderCss); 12 13 14 ?> 15 <style> 16 <?php echo wp_strip_all_tags($PostGridBuilderCss); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 17 </style> 18 19 20 <?php 21 8 global $WCPSBuilderCss; 9 10 $WCPSBuilderCss = str_replace(""", '"', $WCPSBuilderCss); 11 $WCPSBuilderCss = str_replace(">", '>', $WCPSBuilderCss); 12 13 14 15 wp_register_style('WCPSBuilderCss', false); 16 wp_enqueue_style('WCPSBuilderCss'); 17 18 19 wp_add_inline_style('WCPSBuilderCss', $WCPSBuilderCss); 22 20 } 23 21 … … 100 98 101 99 if ($type == 'content') { 102 ?>100 ?> 103 101 <div id="element-<?php echo esc_attr($element['id']); ?>"> 104 102 <?php echo wp_kses_post(wp_unslash(wp_specialchars_decode($content, ENT_QUOTES))); ?> -
woocommerce-products-slider/trunk/includes/functions-layout-hook.php
r3422655 r3422759 2144 2144 ob_start(); 2145 2145 ?> 2146 <textarea readonly type="text" onclick="this.select();"> .element-<?php echo esc_attr($element_index); ?>{}</textarea>2146 <textarea readonly type="text" onclick="this.select();"><?php echo esc_attr(' .element-' . $element_index); ?>{}</textarea> 2147 2147 <?php 2148 2148 -
woocommerce-products-slider/trunk/readme.txt
r3422655 r3422759 5 5 Requires at least: 3.8 6 6 Tested up to: 6.9 7 Stable tag: 1.13. 597 Stable tag: 1.13.60 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 141 141 142 142 == Changelog == 143 144 = 1.13.60 = 145 * 2025-12-18 fix - Broken Style issue fixed. 143 146 144 147 = 1.13.59 = -
woocommerce-products-slider/trunk/templates/view-filterable/index.php
r3422655 r3422759 7 7 { 8 8 9 global $ PostGridBuilderCss;9 global $WCPSBuilderCss; 10 10 11 11 -
woocommerce-products-slider/trunk/templates/view-grid/index.php
r3422655 r3422759 7 7 { 8 8 9 global $ PostGridBuilderCss;9 global $WCPSBuilderCss; 10 10 11 11 $globalOptions = isset($PostGridData["globalOptions"]) ? $PostGridData["globalOptions"] : []; … … 68 68 69 69 70 $ PostGridBuilderCss .= $reponsiveCss;70 $WCPSBuilderCss .= $reponsiveCss; 71 71 72 72 // var_dump($reponsiveCss); -
woocommerce-products-slider/trunk/templates/view-masonry/index.php
r3422655 r3422759 7 7 { 8 8 9 global $ PostGridBuilderCss;9 global $WCPSBuilderCss; 10 10 11 11 … … 68 68 //var_dump($reponsiveCss); 69 69 70 $ PostGridBuilderCss .= $reponsiveCss;70 $WCPSBuilderCss .= $reponsiveCss; 71 71 72 72 -
woocommerce-products-slider/trunk/templates/view-slider/index.php
r3422655 r3422759 7 7 { 8 8 9 global $ PostGridBuilderCss;9 global $WCPSBuilderCss; 10 10 11 11 … … 48 48 //var_dump($reponsiveCss); 49 49 50 $ PostGridBuilderCss .= $reponsiveCss;50 $WCPSBuilderCss .= $reponsiveCss; 51 51 52 52 -
woocommerce-products-slider/trunk/woocommerce-products-slider.php
r3422655 r3422759 4 4 Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/ 5 5 Description: Fully responsive and mobile ready Carousel Slider for your WooCommerce product. unlimited slider anywhere via short-codes and easy admin setting. 6 Version: 1.13. 596 Version: 1.13.60 7 7 Author: PickPlugins 8 8 Text Domain: woocommerce-products-slider
Note: See TracChangeset
for help on using the changeset viewer.