Plugin Directory

Changeset 3422759


Ignore:
Timestamp:
12/18/2025 11:13:05 AM (4 weeks ago)
Author:
pickplugins
Message:

version update

Location:
woocommerce-products-slider/trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-products-slider/trunk/assets/settings-tabs/settings-tabs.js

    r3422655 r3422759  
    2424        })
    2525
    26         console.log($('.code-editor'));
    2726
    2827        if ($('.code-editor').length) {
  • woocommerce-products-slider/trunk/includes/3rd-party/advanced-product-labels-for-woocommerce.php

    r3422655 r3422759  
    103103?>
    104104    <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); ?> {
    106106            <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>;
    107107            <?php endif; ?>
  • woocommerce-products-slider/trunk/includes/3rd-party/dokan-lite/functions-layout-element.php

    r3422655 r3422759  
    238238?>
    239239    <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); ?> {
    241241            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    242242            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    267267?>
    268268    <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); ?> {
    270270            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    271271            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    298298?>
    299299    <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); ?> {
    301301            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    302302            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    330330?>
    331331    <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); ?> {
    333333            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    334334            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    360360?>
    361361    <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); ?> {
    363363            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    364364            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    389389?>
    390390    <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); ?> {
    392392            <?php if (!empty($width)): ?>width: <?php echo esc_attr($width); ?>;
    393393            <?php endif; ?><?php if (!empty($height)): ?>height: <?php echo esc_attr($height); ?>;
     
    415415?>
    416416    <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); ?> {
    418418            <?php if (!empty($width)): ?>width: <?php echo esc_attr($width); ?>;
    419419            <?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  
    251251?>
    252252    <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); ?> {
    254254            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    255255            <?php endif; ?><?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>;
     
    261261        }
    262262
    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 {
    264264            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    265265            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    290290?>
    291291    <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); ?> {
    293293            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    294294            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    320320?>
    321321    <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); ?> {
    323323            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    324324            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    329329        }
    330330
    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 {
    332332            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    333333            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    360360?>
    361361    <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); ?> {
    363363            <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>;
    364364            <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>;
     
    366366        }
    367367
    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 {
    369369            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    370370            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    396396?>
    397397    <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); ?> {
    399399            <?php if (!empty($margin)): ?>margin: <?php echo esc_attr($margin); ?>;
    400400            <?php endif; ?><?php if (!empty($text_align)): ?>text-align: <?php echo esc_attr($text_align); ?>;
     
    402402        }
    403403
    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 {
    405405            <?php if (!empty($color)): ?>color: <?php echo esc_attr($color); ?>;
    406406            <?php endif; ?><?php if (!empty($font_size)): ?>font-size: <?php echo esc_attr($font_size); ?>;
     
    554554            ob_start();
    555555            ?>
    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>
    557557            <?php
    558558
     
    711711            ob_start();
    712712            ?>
    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>
    714714            <?php
    715715
     
    867867            ob_start();
    868868            ?>
    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>
    870870            <?php
    871871
     
    10241024            ob_start();
    10251025            ?>
    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>
    10271027            <?php
    10281028
     
    11631163            ob_start();
    11641164            ?>
    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>
    11661166            <?php
    11671167
     
    13191319            ob_start();
    13201320            ?>
    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>
    13221322            <?php
    13231323
     
    14751475            ob_start();
    14761476            ?>
    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>
    14781478            <?php
    14791479
  • woocommerce-products-slider/trunk/includes/3rd-party/perfect-woocommerce-brands.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_perfect_brands');
    55
    6 function wcps_layout_elements_perfect_brands($layout_elements){
     6function wcps_layout_elements_perfect_brands($layout_elements)
     7{
    78
    89
    9     $layout_elements['perfect_brands'] = array('name' =>__('Perfect brands','woocommerce-products-slider'));
     10    $layout_elements['perfect_brands'] = array('name' => __('Perfect brands', 'woocommerce-products-slider'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    18 add_action('wcps_layout_elements_option_perfect_brands','wcps_layout_elements_option_perfect_brands');
    19 function wcps_layout_elements_option_perfect_brands($parameters){
     18add_action('wcps_layout_elements_option_perfect_brands', 'wcps_layout_elements_option_perfect_brands');
     19function wcps_layout_elements_option_perfect_brands($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6869
    6970add_action('wcps_layout_element_perfect_brands', 'wcps_layout_element_perfect_brands', 10);
    70 function wcps_layout_element_perfect_brands($args){
     71function wcps_layout_element_perfect_brands($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    7981    //require PWB_PLUGIN_DIR.'classes/class-perfect-woocommerce-brands.php';
    8082
    81     if(class_exists('Perfect_Woocommerce_Brands')){
     83    if (class_exists('Perfect_Woocommerce_Brands')) {
    8284        $Perfect_Woocommerce_Brands =     new Perfect_Woocommerce_Brands();
    8385
     
    8587        echo wp_kses_post($Perfect_Woocommerce_Brands->show_brands_in_loop());
    8688
    87         ?>
    88         <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[brand_shortcode id="'.$product_id.'" ]');; ?></div>
    89         <?php
     89    ?>
     90        <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[brand_shortcode id="' . $product_id . '" ]');; ?></div>
     91    <?php
    9092    }
    91 
    92 
    93 
    9493}
    9594
     
    9897
    9998add_action('wcps_layout_element_css_perfect_brands', 'wcps_layout_element_css_perfect_brands', 10);
    100 function wcps_layout_element_css_perfect_brands($args){
     99function wcps_layout_element_css_perfect_brands($args)
     100{
    101101
    102102
     
    110110
    111111    ?>
    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; ?>
    119116        }
    120 
    121117    </style>
    122     <?php
     118<?php
    123119}
    124 
  • woocommerce-products-slider/trunk/includes/3rd-party/ti-woocommerce-wishlist.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_ti_wishlist');
    55
    6 function wcps_layout_elements_ti_wishlist($layout_elements){
     6function wcps_layout_elements_ti_wishlist($layout_elements)
     7{
    78
    89
    9     $layout_elements['ti_wishlist'] = array('name' =>__('TI Wishlist','woocommerce-products-slider'));
     10    $layout_elements['ti_wishlist'] = array('name' => __('TI Wishlist', 'woocommerce-products-slider'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    18 add_action('wcps_layout_elements_option_ti_wishlist','wcps_layout_elements_option_ti_wishlist');
    19 function wcps_layout_elements_option_ti_wishlist($parameters){
     18add_action('wcps_layout_elements_option_ti_wishlist', 'wcps_layout_elements_option_ti_wishlist');
     19function wcps_layout_elements_option_ti_wishlist($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6061        </div>
    6162    </div>
    62     <?php
     63<?php
    6364
    6465}
     
    6869
    6970add_action('wcps_layout_element_ti_wishlist', 'wcps_layout_element_ti_wishlist', 10);
    70 function wcps_layout_element_ti_wishlist($args){
     71function wcps_layout_element_ti_wishlist($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    7981
    8082
    81         ?>
    82         <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[ti_wishlists_addtowishlist id="'.$product_id.'"]'); ?></div>
    83         <?php
     83?>
     84    <div class="<?php echo esc_attr($element_class); ?>"><?php echo do_shortcode('[ti_wishlists_addtowishlist id="' . $product_id . '"]'); ?></div>
     85<?php
    8486
    8587
     
    9193
    9294add_action('wcps_layout_element_css_ti_wishlist', 'wcps_layout_element_css_ti_wishlist', 10);
    93 function wcps_layout_element_css_ti_wishlist($args){
     95function wcps_layout_element_css_ti_wishlist($args)
     96{
    9497
    9598
     
    102105    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    103106
    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; ?>
    112112        }
    113 
    114113    </style>
    115     <?php
     114<?php
    116115}
    117 
  • woocommerce-products-slider/trunk/includes/3rd-party/wish-list-for-woocommerce.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_wishlist_for_wc');
    55
    6 function wcps_layout_elements_wishlist_for_wc($layout_elements){
     6function wcps_layout_elements_wishlist_for_wc($layout_elements)
     7{
    78
    89
    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'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    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){
     18add_action('wcps_layout_elements_option_wishlist_for_wc', 'wcps_layout_elements_option_wishlist_for_wc');
     19function wcps_layout_elements_option_wishlist_for_wc($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6869
    6970add_action('wcps_layout_element_wishlist_for_wc', 'wcps_layout_element_wishlist_for_wc', 10);
    70 function wcps_layout_element_wishlist_for_wc($args){
     71function wcps_layout_element_wishlist_for_wc($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    7981
    80     if ( class_exists( 'Alg_WC_Wish_List_Toggle_Btn' ) ) {
     82    if (class_exists('Alg_WC_Wish_List_Toggle_Btn')) {
    8183        $Alg_WC_Wish_List_Toggle_Btn = new Alg_WC_Wish_List_Toggle_Btn();
    8284
    83         ?>
     85    ?>
    8486        <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post($Alg_WC_Wish_List_Toggle_Btn->show_default_btn()); ?></div>
    85         <?php
     87    <?php
    8688    }
    87 
    88 
    89 
    9089}
    9190
     
    9493
    9594add_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){
     95function wcps_layout_element_css_wishlist_for_wc($args)
     96{
    9797
    9898
     
    106106
    107107    ?>
    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; ?>
    115112        }
    116 
    117113    </style>
    118     <?php
     114<?php
    119115}
    120 
  • woocommerce-products-slider/trunk/includes/3rd-party/wishlist.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_wishlist');
    55
    6 function wcps_layout_elements_wishlist($layout_elements){
    7 
    8 
    9     $layout_elements['wishlist'] = array('name' =>__('Wishlist','woocommerce-products-slider'));
     6function wcps_layout_elements_wishlist($layout_elements)
     7{
     8
     9
     10    $layout_elements['wishlist'] = array('name' => __('Wishlist', 'woocommerce-products-slider'));
    1011
    1112    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
     18add_action('wcps_layout_elements_option_wishlist', 'wcps_layout_elements_option_wishlist');
     19function wcps_layout_elements_option_wishlist($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3536    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3637
    37     ?>
     38?>
    3839    <div class="item">
    3940        <div class="element-title header ">
     
    4142            <span class="sort"><i class="fas fa-sort"></i></span>
    4243
    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>
    4445        </div>
    4546        <div class="element-options options">
     
    4849
    4950            $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',
    132133            );
    133134
     
    139140        </div>
    140141    </div>
    141     <?php
     142<?php
    142143
    143144}
     
    147148
    148149add_action('wcps_layout_element_wishlist', 'wcps_layout_element_wishlist', 10);
    149 function wcps_layout_element_wishlist($args){
     150function wcps_layout_element_wishlist($args)
     151{
    150152
    151153    //echo '<pre>'.var_export($args, true).'</pre>';
     
    154156    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    155157
    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     <?php
     158    $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
    161163
    162164}
     
    166168
    167169add_action('wcps_layout_element_css_wishlist', 'wcps_layout_element_css_wishlist', 10);
    168 function wcps_layout_element_css_wishlist($args){
     170function wcps_layout_element_css_wishlist($args)
     171{
    169172
    170173
     
    185188    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    186189
    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; ?>
    195195        }
    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; ?>
    216206        }
    217207    </style>
    218     <?php
    219 }
    220 
     208<?php
     209}
  • woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-compare.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_compare');
    55
    6 function wcps_layout_elements_woo_smart_compare($layout_elements){
     6function wcps_layout_elements_woo_smart_compare($layout_elements)
     7{
    78
    89
    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'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    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){
     18add_action('wcps_layout_elements_option_woo_smart_compare', 'wcps_layout_elements_option_woo_smart_compare');
     19function wcps_layout_elements_option_woo_smart_compare($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6061        </div>
    6162    </div>
    62     <?php
     63<?php
    6364
    6465}
     
    6869
    6970add_action('wcps_layout_element_woo_smart_compare', 'wcps_layout_element_woo_smart_compare', 10);
    70 function wcps_layout_element_woo_smart_compare($args){
     71function wcps_layout_element_woo_smart_compare($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    79     ?>
    80     <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wooscp id="'.$product_id.'" ]'));; ?></div>
    81     <?php
     81?>
     82    <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[wooscp id="' . $product_id . '" ]'));; ?></div>
     83<?php
    8284
    8385}
     
    8789
    8890add_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){
     91function wcps_layout_element_css_woo_smart_compare($args)
     92{
    9093
    9194
     
    98101    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    99102
    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; ?>
    108108        }
    109 
    110109    </style>
    111     <?php
     110<?php
    112111}
    113 
  • woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-quick-view.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_quick_view');
    55
    6 function wcps_layout_elements_woo_smart_quick_view($layout_elements){
     6function wcps_layout_elements_woo_smart_quick_view($layout_elements)
     7{
    78
    89
    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'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    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){
     18add_action('wcps_layout_elements_option_woo_smart_quick_view', 'wcps_layout_elements_option_woo_smart_quick_view');
     19function wcps_layout_elements_option_woo_smart_quick_view($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6061        </div>
    6162    </div>
    62     <?php
     63<?php
    6364
    6465}
     
    6869
    6970add_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){
     71function wcps_layout_element_woo_smart_quick_view($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    79     ?>
    80     <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosq id="'.$product_id.'" ]'));; ?></div>
    81     <?php
     81?>
     82    <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosq id="' . $product_id . '" ]'));; ?></div>
     83<?php
    8284
    8385}
     
    8789
    8890add_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){
     91function wcps_layout_element_css_woo_smart_quick_view($args)
     92{
    9093
    9194
     
    98101    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    99102
    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; ?>
    108108        }
    109 
    110109    </style>
    111     <?php
     110<?php
    112111}
    113 
  • woocommerce-products-slider/trunk/includes/3rd-party/woo-smart-wishlist.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_woo_smart_wishlist');
    55
    6 function wcps_layout_elements_woo_smart_wishlist($layout_elements){
     6function wcps_layout_elements_woo_smart_wishlist($layout_elements)
     7{
    78
    89
    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'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    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){
     18add_action('wcps_layout_elements_option_woo_smart_wishlist', 'wcps_layout_elements_option_woo_smart_wishlist');
     19function wcps_layout_elements_option_woo_smart_wishlist($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6061        </div>
    6162    </div>
    62     <?php
     63<?php
    6364
    6465}
     
    6869
    6970add_action('wcps_layout_element_woo_smart_wishlist', 'wcps_layout_element_woo_smart_wishlist', 10);
    70 function wcps_layout_element_woo_smart_wishlist($args){
     71function wcps_layout_element_woo_smart_wishlist($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    79     ?>
    80     <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosw id="'.$product_id.'" ]'));; ?></div>
    81     <?php
     81?>
     82    <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post(do_shortcode('[woosw id="' . $product_id . '" ]'));; ?></div>
     83<?php
    8284
    8385}
     
    8789
    8890add_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){
     91function wcps_layout_element_css_woo_smart_wishlist($args)
     92{
    9093
    9194
     
    98101    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    99102
    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; ?>
    108108        }
    109 
    110109    </style>
    111     <?php
     110<?php
    112111}
    113 
  • woocommerce-products-slider/trunk/includes/3rd-party/wpc-countdown-timer.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_wpc_countdown_timer');
    55
    6 function wcps_layout_elements_wpc_countdown_timer($layout_elements){
     6function wcps_layout_elements_wpc_countdown_timer($layout_elements)
     7{
    78
    89
    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'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    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){
     18add_action('wcps_layout_elements_option_wpc_countdown_timer', 'wcps_layout_elements_option_wpc_countdown_timer');
     19function wcps_layout_elements_option_wpc_countdown_timer($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    2930    $margin = isset($element_data['margin']) ? $element_data['margin'] : '';
    3031
    31     ?>
     32?>
    3233    <div class="item">
    3334        <div class="element-title header ">
     
    3536            <span class="sort"><i class="fas fa-sort"></i></span>
    3637
    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>
    3839        </div>
    3940        <div class="element-options options">
     
    4243
    4344            $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',
    5354            );
    5455
     
    6869
    6970add_action('wcps_layout_element_wpc_countdown_timer', 'wcps_layout_element_wpc_countdown_timer', 10);
    70 function wcps_layout_element_wpc_countdown_timer($args){
     71function wcps_layout_element_wpc_countdown_timer($args)
     72{
    7173
    7274    //echo '<pre>'.var_export($args, true).'</pre>';
     
    7577    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    7678
    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';
    7880
    79     if(class_exists( 'WPCleverWooct' )){
     81    if (class_exists('WPCleverWooct')) {
    8082        $WPCleverWooct = new WPCleverWooct();
    8183        $wooct_action_show_countdown = $WPCleverWooct->wooct_action_show_countdown();
    8284
    8385
    84         ?>
     86    ?>
    8587        <div class="<?php echo esc_attr($element_class); ?>"><?php echo wp_kses_post($wooct_action_show_countdown); ?></div>
    86         <?php
     88    <?php
    8789    }
    88 
    89 
    9090}
    9191
     
    9494
    9595add_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){
     96function wcps_layout_element_css_wpc_countdown_timer($args)
     97{
    9798
    9899
     
    106107
    107108    ?>
    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; ?>
    115113        }
    116 
    117114    </style>
    118     <?php
     115<?php
    119116}
    120 
  • woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-badges-management.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_badges');
    55
    6 function wcps_layout_elements_yith_badges($layout_elements){
     6function wcps_layout_elements_yith_badges($layout_elements)
     7{
    78
    89
    9     $layout_elements['yith_badges'] = array('name' =>__('YITH badges','woocommerce-products-slider'));
     10    $layout_elements['yith_badges'] = array('name' => __('YITH badges', 'woocommerce-products-slider'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    18 add_action('wcps_layout_elements_option_yith_badges','wcps_layout_elements_option_yith_badges');
    19 function wcps_layout_elements_option_yith_badges($parameters){
     18add_action('wcps_layout_elements_option_yith_badges', 'wcps_layout_elements_option_yith_badges');
     19function wcps_layout_elements_option_yith_badges($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3233    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3334
    34     ?>
     35?>
    3536    <div class="item">
    3637        <div class="element-title header ">
     
    3839            <span class="sort"><i class="fas fa-sort"></i></span>
    3940
    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>
    4142        </div>
    4243        <div class="element-options options">
     
    4546
    4647            $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',
    5657            );
    5758
     
    6667        </div>
    6768    </div>
    68     <?php
     69<?php
    6970
    7071}
     
    7475
    7576add_action('wcps_layout_element_yith_badges', 'wcps_layout_element_yith_badges', 10);
    76 function wcps_layout_element_yith_badges($args){
     77function wcps_layout_element_yith_badges($args)
     78{
    7779
    7880    //echo '<pre>'.var_export($args, true).'</pre>';
     
    8183    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    8284
    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';
    8486
    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');
    9089}
    9190
    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 );
     91remove_action('woocommerce_variable_add_to_cart', 'woocommerce_variable_add_to_cart', 30);
     92add_action('woocommerce_variable_add_to_cart', array($this, 'variable_add_to_cart'), 30);
    9493
    9594
    9695add_action('wcps_layout_element_css_yith_badges', 'wcps_layout_element_css_yith_badges', 10);
    97 function wcps_layout_element_css_yith_badges($args){
     96function wcps_layout_element_css_yith_badges($args)
     97{
    9898
    9999
     
    107107    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    108108
    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; ?>
    115114        }
    116115    </style>
    117     <?php
     116<?php
    118117}
    119 
  • woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-brands-add-on.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_brands');
    55
    6 function wcps_layout_elements_yith_brands($layout_elements){
    7 
    8 
    9     $layout_elements['yith_brands'] = array('name' =>__('YITH brands','woocommerce-products-slider'));
     6function wcps_layout_elements_yith_brands($layout_elements)
     7{
     8
     9
     10    $layout_elements['yith_brands'] = array('name' => __('YITH brands', 'woocommerce-products-slider'));
    1011
    1112    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
     18add_action('wcps_layout_elements_option_yith_brands', 'wcps_layout_elements_option_yith_brands');
     19function wcps_layout_elements_option_yith_brands($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3536    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3637
    37     ?>
     38?>
    3839    <div class="item">
    3940        <div class="element-title header ">
     
    4142            <span class="sort"><i class="fas fa-sort"></i></span>
    4243
    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>
    4445        </div>
    4546        <div class="element-options options">
     
    4849
    4950            $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',
    132133            );
    133134
     
    139140        </div>
    140141    </div>
    141     <?php
     142<?php
    142143
    143144}
     
    147148
    148149add_action('wcps_layout_element_yith_brands', 'wcps_layout_element_yith_brands', 10);
    149 function wcps_layout_element_yith_brands($args){
     150function wcps_layout_element_yith_brands($args)
     151{
    150152
    151153    //echo '<pre>'.var_export($args, true).'</pre>';
     
    154156    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    155157
    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     <?php
     158    $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
    161163
    162164}
     
    166168
    167169add_action('wcps_layout_element_css_yith_brands', 'wcps_layout_element_css_yith_brands', 10);
    168 function wcps_layout_element_css_yith_brands($args){
     170function wcps_layout_element_css_yith_brands($args)
     171{
    169172
    170173
     
    185188    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    186189
    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; ?>
    195195        }
    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; ?>
    216206        }
    217207    </style>
    218     <?php
    219 }
    220 
     208<?php
     209}
  • woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-compare.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_compare');
    55
    6 function wcps_layout_elements_yith_compare($layout_elements){
     6function wcps_layout_elements_yith_compare($layout_elements)
     7{
    78
    89
    9     $layout_elements['yith_compare'] = array('name' =>__('YITH compare','woocommerce-products-slider'));
     10    $layout_elements['yith_compare'] = array('name' => __('YITH compare', 'woocommerce-products-slider'));
    1011
    1112    return $layout_elements;
    12 
    1313}
    1414
     
    1616
    1717
    18 add_action('wcps_layout_elements_option_yith_compare','wcps_layout_elements_option_yith_compare');
    19 function wcps_layout_elements_option_yith_compare($parameters){
     18add_action('wcps_layout_elements_option_yith_compare', 'wcps_layout_elements_option_yith_compare');
     19function wcps_layout_elements_option_yith_compare($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3233    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3334
    34     ?>
     35?>
    3536    <div class="item">
    3637        <div class="element-title header ">
     
    3839            <span class="sort"><i class="fas fa-sort"></i></span>
    3940
    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>
    4142        </div>
    4243        <div class="element-options options">
     
    4546
    4647            $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',
    5657            );
    5758
     
    6667        </div>
    6768    </div>
    68     <?php
     69<?php
    6970
    7071}
     
    7475
    7576add_action('wcps_layout_element_yith_compare', 'wcps_layout_element_yith_compare', 10);
    76 function wcps_layout_element_yith_compare($args){
     77function wcps_layout_element_yith_compare($args)
     78{
    7779
    7880    //echo '<pre>'.var_export($args, true).'</pre>';
     
    8183    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    8284
    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';
    8486
    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     <?php
     87?>
     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
    8890
    8991}
     
    9395
    9496add_action('wcps_layout_element_css_yith_compare', 'wcps_layout_element_css_yith_compare', 10);
    95 function wcps_layout_element_css_yith_compare($args){
     97function wcps_layout_element_css_yith_compare($args)
     98{
    9699
    97100
     
    105108    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    106109
    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; ?>
    113115        }
    114116    </style>
    115     <?php
     117<?php
    116118}
    117 
  • woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-quick-view.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_quick_view');
    55
    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'));
     6function 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'));
    1011
    1112    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
     18add_action('wcps_layout_elements_option_yith_quick_view', 'wcps_layout_elements_option_yith_quick_view');
     19function wcps_layout_elements_option_yith_quick_view($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3536    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3637
    37     ?>
     38?>
    3839    <div class="item">
    3940        <div class="element-title header ">
     
    4142            <span class="sort"><i class="fas fa-sort"></i></span>
    4243
    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>
    4445        </div>
    4546        <div class="element-options options">
     
    4950
    5051            $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',
    149150            );
    150151
     
    156157        </div>
    157158    </div>
    158     <?php
     159<?php
    159160
    160161}
     
    164165
    165166add_action('wcps_layout_element_yith_quick_view', 'wcps_layout_element_yith_quick_view', 10);
    166 function wcps_layout_element_yith_quick_view($args){
     167function wcps_layout_element_yith_quick_view($args)
     168{
    167169
    168170    //echo '<pre>'.var_export($args, true).'</pre>';
     
    171173    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    172174
    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';
    174176
    175177    $label_text = isset($elementData['label_text']) ? $elementData['label_text'] : '';
    176178
    177179
    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     <?php
     180?>
     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
    181183
    182184}
     
    186188
    187189add_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){
     190function wcps_layout_element_css_yith_quick_view($args)
     191{
    189192
    190193
     
    205208    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    206209
    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; ?>
    214215        }
    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; ?>
    235226        }
    236227    </style>
    237     <?php
    238 }
    239 
     228<?php
     229}
  • woocommerce-products-slider/trunk/includes/3rd-party/yith-woocommerce-wishlist.php

    r3422655 r3422759  
    11<?php
    2 if ( ! defined('ABSPATH')) exit;  // if direct access
     2if (! defined('ABSPATH')) exit;  // if direct access
    33
    44add_filter('wcps_layout_elements', 'wcps_layout_elements_yith_wishlist');
    55
    6 function wcps_layout_elements_yith_wishlist($layout_elements){
    7 
    8 
    9     $layout_elements['yith_wishlist'] = array('name' =>__('YITH wishlist','woocommerce-products-slider'));
     6function wcps_layout_elements_yith_wishlist($layout_elements)
     7{
     8
     9
     10    $layout_elements['yith_wishlist'] = array('name' => __('YITH wishlist', 'woocommerce-products-slider'));
    1011
    1112    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
     18add_action('wcps_layout_elements_option_yith_wishlist', 'wcps_layout_elements_option_yith_wishlist');
     19function wcps_layout_elements_option_yith_wishlist($parameters)
     20{
    2021
    2122    $settings_tabs_field = new settings_tabs_field();
     
    3536    $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
    3637
    37     ?>
     38?>
    3839    <div class="item">
    3940        <div class="element-title header ">
     
    4142            <span class="sort"><i class="fas fa-sort"></i></span>
    4243
    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>
    4445        </div>
    4546        <div class="element-options options">
     
    4849
    4950            $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',
    132133            );
    133134
     
    139140        </div>
    140141    </div>
    141     <?php
     142<?php
    142143
    143144}
     
    147148
    148149add_action('wcps_layout_element_yith_wishlist', 'wcps_layout_element_yith_wishlist', 10);
    149 function wcps_layout_element_yith_wishlist($args){
     150function wcps_layout_element_yith_wishlist($args)
     151{
    150152
    151153    //echo '<pre>'.var_export($args, true).'</pre>';
     
    154156    $element_index = isset($args['element_index']) ? $args['element_index'] : '';
    155157
    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     <?php
     158    $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
    161163
    162164}
     
    166168
    167169add_action('wcps_layout_element_css_yith_wishlist', 'wcps_layout_element_css_yith_wishlist', 10);
    168 function wcps_layout_element_css_yith_wishlist($args){
     170function wcps_layout_element_css_yith_wishlist($args)
     171{
    169172
    170173
     
    185188    //echo '<pre>'.var_export($layout_id, true).'</pre>';
    186189
    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; ?>
    195195        }
    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; ?>
    216206        }
    217207    </style>
    218     <?php
    219 }
    220 
     208<?php
     209}
  • woocommerce-products-slider/trunk/includes/functions-builder.php

    r3422655 r3422759  
    66{
    77
    8     global $PostGridBuilderCss;
    9 
    10     $PostGridBuilderCss = str_replace("&quot;", '"', $PostGridBuilderCss);
    11     $PostGridBuilderCss = str_replace("&gt;", '>', $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("&quot;", '"', $WCPSBuilderCss);
     11    $WCPSBuilderCss = str_replace("&gt;", '>', $WCPSBuilderCss);
     12
     13
     14
     15    wp_register_style('WCPSBuilderCss', false);
     16    wp_enqueue_style('WCPSBuilderCss');
     17
     18
     19    wp_add_inline_style('WCPSBuilderCss', $WCPSBuilderCss);
    2220}
    2321
     
    10098
    10199    if ($type == 'content') {
    102     ?>
     100?>
    103101        <div id="element-<?php echo esc_attr($element['id']); ?>">
    104102            <?php echo wp_kses_post(wp_unslash(wp_specialchars_decode($content, ENT_QUOTES))); ?>
  • woocommerce-products-slider/trunk/includes/functions-layout-hook.php

    r3422655 r3422759  
    21442144            ob_start();
    21452145            ?>
    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>
    21472147            <?php
    21482148
  • woocommerce-products-slider/trunk/readme.txt

    r3422655 r3422759  
    55    Requires at least: 3.8
    66    Tested up to: 6.9
    7     Stable tag: 1.13.59
     7    Stable tag: 1.13.60
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141
    142142== Changelog ==
     143
     144    = 1.13.60 =
     145    * 2025-12-18 fix -  Broken Style issue fixed.
    143146
    144147    = 1.13.59 =
  • woocommerce-products-slider/trunk/templates/view-filterable/index.php

    r3422655 r3422759  
    77{
    88
    9     global $PostGridBuilderCss;
     9    global $WCPSBuilderCss;
    1010
    1111
  • woocommerce-products-slider/trunk/templates/view-grid/index.php

    r3422655 r3422759  
    77{
    88
    9     global $PostGridBuilderCss;
     9    global $WCPSBuilderCss;
    1010
    1111    $globalOptions = isset($PostGridData["globalOptions"]) ? $PostGridData["globalOptions"] : [];
     
    6868
    6969
    70     $PostGridBuilderCss .= $reponsiveCss;
     70    $WCPSBuilderCss .= $reponsiveCss;
    7171
    7272    // var_dump($reponsiveCss);
  • woocommerce-products-slider/trunk/templates/view-masonry/index.php

    r3422655 r3422759  
    77{
    88
    9     global $PostGridBuilderCss;
     9    global $WCPSBuilderCss;
    1010
    1111
     
    6868    //var_dump($reponsiveCss);
    6969
    70     $PostGridBuilderCss .= $reponsiveCss;
     70    $WCPSBuilderCss .= $reponsiveCss;
    7171
    7272
  • woocommerce-products-slider/trunk/templates/view-slider/index.php

    r3422655 r3422759  
    77{
    88
    9     global $PostGridBuilderCss;
     9    global $WCPSBuilderCss;
    1010
    1111
     
    4848    //var_dump($reponsiveCss);
    4949
    50     $PostGridBuilderCss .= $reponsiveCss;
     50    $WCPSBuilderCss .= $reponsiveCss;
    5151
    5252
  • woocommerce-products-slider/trunk/woocommerce-products-slider.php

    r3422655 r3422759  
    44Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
    55Description: 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.59
     6Version: 1.13.60
    77Author: PickPlugins
    88Text Domain: woocommerce-products-slider
Note: See TracChangeset for help on using the changeset viewer.