Plugin Directory

Changeset 3177635


Ignore:
Timestamp:
10/29/2024 04:30:50 AM (17 months ago)
Author:
celomitan
Message:

1.3.9

  • Bug fix: button with icon styles
Location:
gum-elementor-addon
Files:
48 added
11 edited

Legend:

Unmodified
Added
Removed
  • gum-elementor-addon/trunk/css/style.css

    r3051383 r3177635  
    322322.elementor-widget-gum_popover.elementor-absolute,.elementor-widget-gum_popover.elementor-fixed{ z-index: unset!important;}
    323323.popover-button-wrapper{ position: relative; display: inline-block;}
     324.elementor-align-justify .popover-button-wrapper { display: block;}
    324325.popover-box{visibility: hidden;opacity: 0;text-align: left;border: solid 1px #ccc;padding: 1rem;width: 100%;height: calc( 100vh - 100px );box-shadow: 0 0 10px #f4f4f4;border-radius: 3px;background: #fff;position: fixed;z-index: 100;left: 0;right: 0;top: 50%;    overflow-y: auto;-webkit-overflow-scrolling: touch;-webkit-transform: scale(0.7) translateY(-50%);-ms-transform: scale(0.7) translateY(-50%);-o-transform: scale(0.7) translateY(-50%);transform: scale(0.7) translateY(-50%);-webkit-transition: opacity 0.2s 0s, visibility 0.2s 0s, -webkit-transform 0.3s;-moz-transition: opacity 0.2s 0s, visibility 0.2s 0s, -moz-transform 0.3s;-o-transition: opacity 0.2s 0s, visibility 0.2s 0s, -moz-transform 0.3s;transition: opacity 0.2s 0s, visibility 0.2s 0s, transform 0.3s;}
    325326.popover-button-wrapper.pop-it .popover-box{visibility: visible;opacity: 1;-webkit-transform: scale(1) translateY(-50%);-ms-transform: scale(1) translateY(-50%);-o-transform: scale(1) translateY(-50%);transform: scale(1) translateY(-50%);}
     
    808809
    809810
     811[data-elementor-device-mode=mobile] .elementor-widget-image-box.elementor-position-left.elementor-keep-position-yes .elementor-image-box-wrapper{ flex-direction: row; text-align: start;}
     812[data-elementor-device-mode=mobile] .elementor-widget-image-box.elementor-position-right.elementor-keep-position-yes .elementor-image-box-wrapper{ flex-direction: row-reverse; text-align: end; }
     813[data-elementor-device-mode=mobile] .elementor-widget-image-box.elementor-vertical-align-bottom.elementor-keep-position-yes .elementor-image-box-wrapper{ align-items: flex-end;  }
     814[data-elementor-device-mode=mobile] .elementor-widget-image-box.elementor-vertical-align-middle.elementor-keep-position-yes .elementor-image-box-wrapper{ align-items: center;  }
     815
    810816section.e-transform{
    811817  -webkit-transform: perspective(var(--e-transform-rw-perspective, 0)) rotateZ(var(--e-transform-rw-rotateZ, 0)) rotateX(var(--e-transform-rw-rotateX, 0)) rotateY(var(--e-transform-rw-rotateY, 0)) translate(0, 0) translateX(var(--e-transform-rw-translateX, 0)) translateY(var(--e-transform-rw-translateY, 0)) scale(var(--e-transform-rw-scale, 1)) scaleX(var(--e-transform-rw-scaleX, 1)) scaleY(var(--e-transform-rw-scaleY, 1));
  • gum-elementor-addon/trunk/gum-elementor-addon.php

    r3152093 r3177635  
    55 * Plugin URI: http://themegum.com/
    66 * Description: Addon widget for Elementor. Slideshow, pricing table, icon list, recent post, blog term, post term, post share, post meta, post related, post adjacent, blog grid, post slider,navigation menu, image box, popover and to top button
    7  * Version: 1.3.8
     7 * Version: 1.3.9
    88 * Author: TemeGUM
    99 * Author URI: http://themegum.com
     
    1313 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1414 * Requires at least: 3.7
    15  * Tested up to: 6.6.1
    16  * Elementor tested up to: 3.23.4
     15 * Tested up to: 6.6.2
     16 * Elementor tested up to: 3.24.2
    1717 */
    1818
     
    5858      require_once( GUM_ELEMENTOR_DIR."widgets/section.php" );
    5959      require_once( GUM_ELEMENTOR_DIR."widgets/icon_list.php" );
     60      require_once( GUM_ELEMENTOR_DIR."widgets/image_box.php" );
    6061      require_once( GUM_ELEMENTOR_DIR."widgets/accordion.php" );
    6162      require_once( GUM_ELEMENTOR_DIR."widgets/counter.php" );
  • gum-elementor-addon/trunk/readme.txt

    r3152093 r3177635  
    44Tags: elementor, blog, slide, pricing, menu
    55Requires at least: 6.0
    6 Tested up to: 6.6.1
     6Tested up to: 6.6.2
    77Requires PHP: 7.0
    8 Stable tag: 1.3.8
     8Stable tag: 1.3.9
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7171== Changelog ==
    7272
     73= 1.3.9 =
     74* Bug fix: button with icon styles
     75
     76
    7377= 1.3.8 =
    7478* Security issue fixing
  • gum-elementor-addon/trunk/widgets/blog_grid.php

    r3152093 r3177635  
    352352      [
    353353        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    354         'type' => Controls_Manager::SELECT,
    355         'default' => 'left',
     354        'type' => Controls_Manager::CHOOSE,
    356355        'options' => [
    357           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    358           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     356          'row' => [
     357            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     358            'icon' => 'eicon-h-align-left',
     359          ],
     360          'row-reverse' => [
     361            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     362            'icon' => 'eicon-h-align-right',
     363          ],
    359364        ],
    360365        'condition' => [
     
    362367          'readmore_icon[value]!' => '',
    363368        ],
     369        'selectors' => [
     370            '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     371        ],
     372      ]
     373    );
     374
     375    $this->add_control(
     376      'readmore_icon_indent',
     377      [
     378        'label' => esc_html__( 'Icon Spacing', 'gum-elementor-addon' ),
     379        'type' => Controls_Manager::SLIDER,
     380        'range' => [
     381          'px' => [
     382            'max' => 100,
     383          ],
     384        ],
     385        'default' =>['value'=>5, 'unit'=>'px'],
     386        'selectors' => [
     387          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     388          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     389          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
     390        ],
     391        'condition' => ['show_readmore!' => '','readmore_label!' => '','readmore_icon[value]!' => ''],
    364392      ]
    365393    );
     
    33053333    );
    33063334
    3307     $this->add_control(
    3308       'readmore_icon_indent',
    3309       [
    3310         'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ),
    3311         'type' => Controls_Manager::SLIDER,
    3312         'range' => [
    3313           'px' => [
    3314             'max' => 100,
    3315           ],
    3316         ],
    3317         'default' =>['value'=>5, 'unit'=>'px'],
    3318         'selectors' => [
    3319           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    3320           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
    3321         ],
    3322         'condition' => ['show_readmore!' => '','readmore_label!' => '','readmore_icon[value]!' => ''],
    3323       ]
    3324     );
    33253335
    33263336
  • gum-elementor-addon/trunk/widgets/carousel_ibox.php

    r3152093 r3177635  
    174174      [
    175175        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    176         'type' => Controls_Manager::SELECT,
    177         'default' => 'left',
     176        'type' => Controls_Manager::CHOOSE,
    178177        'options' => [
    179           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    180           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
    181         ],
    182       ]
    183     );
    184 
     178          'row' => [
     179            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     180            'icon' => 'eicon-h-align-left',
     181          ],
     182          'row-reverse' => [
     183            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     184            'icon' => 'eicon-h-align-right',
     185          ],
     186        ],
     187       'condition' => [
     188          'selected_icon[value]!' => '',
     189        ],
     190        'selectors' => [
     191            '{{WRAPPER}} {{CURRENT_ITEM}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     192        ],
     193      ]
     194    );
    185195
    186196    $repeater->add_control(
     
    14061416    );
    14071417
     1418
    14081419    $this->add_control(
    14091420      'button_icon_indent',
     
    14181429        'default' =>['value'=>5, 'unit'=>'px'],
    14191430        'selectors' => [
    1420           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    1421           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
     1431          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     1432          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     1433          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
    14221434        ],
    14231435        'condition' => ['show_button!' => ''],
     
    19411953        $image_url = Group_Control_Image_Size::get_attachment_image_src( $thumb_id, 'thumbnail', $settings);
    19421954
    1943         echo '<div class="imb-box button-style'.sanitize_html_class($show_button).'">';
     1955        echo '<div class="elementor-repeater-item-'.esc_attr($slide['_id']).' imb-box button-style'.sanitize_html_class($show_button).'">';
    19441956
    19451957        if($show_content!=''){
     
    20362048
    20372049    $this->add_render_attribute( $index , 'class', 'elementor-button-text' );
     2050    $this->add_inline_editing_attributes( $index, 'none' );
    20382051
    20392052    ob_start();
     
    24272440      [
    24282441        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    2429         'type' => Controls_Manager::SELECT,
    2430         'default' => 'left',
     2442        'type' => Controls_Manager::CHOOSE,
    24312443        'options' => [
    2432           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    2433           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     2444          'row' => [
     2445            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     2446            'icon' => 'eicon-h-align-left',
     2447          ],
     2448          'row-reverse' => [
     2449            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     2450            'icon' => 'eicon-h-align-right',
     2451          ],
    24342452        ],
    24352453        'style_transfer' => true,
    24362454        'condition' => [
    2437           'show_button!' => '',
    2438         ],
    2439       ]
    2440     );
     2455          'selected_icon[value]!' => '',
     2456        ],
     2457        'selectors' => [
     2458            '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     2459        ],
     2460      ]
     2461    );
     2462
     2463
     2464    $this->add_control(
     2465      'button_icon_indent',
     2466      [
     2467        'label' => esc_html__( 'Icon Spacing', 'gum-elementor-addon' ),
     2468        'type' => Controls_Manager::SLIDER,
     2469        'range' => [
     2470          'px' => [
     2471            'max' => 100,
     2472          ],
     2473        ],
     2474        'default' =>['value'=>5, 'unit'=>'px'],
     2475        'selectors' => [
     2476          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     2477          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     2478          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
     2479        ],
     2480        'condition' => ['show_button!' => '','button_label!' => '','selected_icon[value]!'=>''],
     2481      ]
     2482    );
     2483
    24412484
    24422485    $this->end_controls_section();
     
    32043247    );
    32053248
    3206 
    3207     $this->add_control(
    3208       'button_icon_indent',
    3209       [
    3210         'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ),
    3211         'type' => Controls_Manager::SLIDER,
    3212         'range' => [
    3213           'px' => [
    3214             'max' => 100,
    3215           ],
    3216         ],
    3217         'default' =>['value'=>5, 'unit'=>'px'],
    3218         'selectors' => [
    3219           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    3220           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
    3221         ],
    3222         'condition' => ['show_button!' => '','button_label!' => '','selected_icon[value]!'=>''],
    3223       ]
    3224     );
    3225 
    32263249    $this->add_control(
    32273250      'button_icon_size',
  • gum-elementor-addon/trunk/widgets/icon_list.php

    r3152093 r3177635  
    1919      add_action( 'elementor/element/icon-list/section_icon_style/after_section_end', array( $this, 'register_section_icon_style_controls') , 999 );
    2020      add_action( 'elementor/element/icon-list/section_text_style/after_section_end', array( $this, 'register_section_text_style_controls') , 999 );
    21 
    22       add_action( 'elementor/element/icon-box/section_style_icon/after_section_end', array( $this, 'register_section_iconbox_style_controls') , 999 );
    23       add_action( 'elementor/element/icon-box/section_style_content/after_section_end', array( $this, 'register_section_style_content_controls') , 999 );
    24       add_action( 'elementor/element/image-box/section_style_content/after_section_end', array( $this, 'register_section_style_content_controls') , 999 );
    25 
    26       add_action( 'elementor/element/icon-box/section_icon/after_section_end', array( $this, 'register_section_strech_box_controls') , 999 );
    27       add_action( 'elementor/element/image-box/section_image/after_section_end', array( $this, 'register_section_strech_box_controls') , 999 );
    28 
     21     
    2922      add_action( 'elementor/element/before_section_start', [ $this, 'enqueue_script' ] );
    3023
     
    218211  }
    219212
    220   function register_section_style_content_controls( Controls_Stack $element ){
    221 
    222 
    223     $element->update_responsive_control(
    224       'title_bottom_space',
    225       [
    226         'label' => esc_html__( 'Spacing', 'elementor' ),
    227         'type' => Controls_Manager::SLIDER,
    228         'range' => [
    229           'px' => [
    230             'min' => 0,
    231             'max' => 100,
    232           ],
    233         ],
    234         'selectors' => [
    235           '{{WRAPPER}} .elementor-icon-box-title' => 'margin-bottom: {{SIZE}}{{UNIT}};margin-top: 0;',
    236           '{{WRAPPER}} .elementor-image-box-title' => 'margin-bottom: {{SIZE}}{{UNIT}};margin-top: 0;',
    237         ],
    238         'condition' => [
    239           'title_inline[value]!' => 'inline',
    240         ],
    241       ]
    242     );
    243 
    244     $element->start_injection( [
    245       'of' => 'title_bottom_space',
    246     ] );
    247 
    248     $element->add_responsive_control(
    249       'title_right_space',
    250       [
    251         'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ),
    252         'type' => Controls_Manager::SLIDER,
    253         'range' => [
    254           'px' => [
    255             'min' => 0,
    256             'max' => 100,
    257           ],
    258           'em' => [
    259             'min' => 0,
    260             'max' => 10,
    261           ],
    262         ],
    263         'selectors' => [
    264           '{{WRAPPER}} .elementor-icon-box-title' => 'margin-right: {{SIZE}}{{UNIT}};margin-top: 0;',
    265           '{{WRAPPER}} .elementor-image-box-title' => 'margin-right: {{SIZE}}{{UNIT}};margin-top: 0;',
    266         ],
    267         'size_units' => [ 'px' ,'em' ],
    268         'default'=>['size'=>'0.5','unit'=>'em'],
    269         'condition' => [
    270            'title_inline[value]' => 'inline',
    271         ],
    272       ]
    273     );
    274 
    275     $element->end_injection();
    276 
    277 
    278     $element->start_injection( [
    279       'of' => 'title_color',
    280     ] );
    281 
    282     $element->add_control(
    283       'title_hover_color',
    284       [
    285         'label' => esc_html__( 'Hover Color', 'gum-elementor-addon' ),
    286         'type' => Controls_Manager::COLOR,
    287         'default' => '',
    288         'selectors' => [
    289           '{{WRAPPER}} .elementor-icon-box-title:hover,{{WRAPPER}} .elementor-icon-box-title:hover a' => 'color: {{VALUE}}!important;',
    290           '{{WRAPPER}} .elementor-image-box-title:hover,{{WRAPPER}} .elementor-image-box-title:hover a' => 'color: {{VALUE}}!important;',
    291         ],
    292         'condition' => [
    293           'link[url]!' => '',
    294         ],
    295       ]
    296     );
    297 
    298     $element->add_control(
    299       'boxhover_title_color',
    300       [
    301         'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
    302         'type' => Controls_Manager::COLOR,
    303         'default' => '',
    304         'selectors' => [
    305           '{{WRAPPER}}:hover .elementor-icon-box-title' => 'color: {{VALUE}};',
    306           '{{WRAPPER}}:hover .elementor-image-box-title' => 'color: {{VALUE}};',
    307         ],
    308       ]
    309     );
    310 
    311     $element->end_injection();
    312 
    313     $element->start_injection( [
    314       'of' => 'description_color',
    315     ] );
    316 
    317 
    318     $element->add_control(
    319       'boxhover_description_color',
    320       [
    321         'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
    322         'type' => Controls_Manager::COLOR,
    323         'default' => '',
    324         'selectors' => [
    325           '{{WRAPPER}}:hover .elementor-icon-box-description' => 'color: {{VALUE}};',
    326           '{{WRAPPER}}:hover .elementor-image-box-description' => 'color: {{VALUE}};',
    327         ],
    328       ]
    329     );
    330 
    331     $element->end_injection();
    332 
    333 
    334   }
    335 
    336 
    337   function register_section_iconbox_style_controls( Controls_Stack $element ) {
    338 
    339 
    340     $element->update_control(
    341       'hover_primary_color',
    342       [
    343         'label' => esc_html__( 'Primary Color', 'elementor' ),
    344         'type' => Controls_Manager::COLOR,
    345         'default' => '',
    346         'selectors' => [
    347           '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon:hover' => 'background-color: {{VALUE}};',
    348           '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon:hover, {{WRAPPER}}.elementor-view-default:hover .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}}!important; border-color: {{VALUE}};',
    349         ],
    350       ]
    351     );
    352 
    353     $element->update_control(
    354       'hover_secondary_color',
    355       [
    356         'label' => esc_html__( 'Secondary Color', 'elementor' ),
    357         'type' => Controls_Manager::COLOR,
    358         'default' => '',
    359         'condition' => [
    360           'view!' => 'default',
    361         ],
    362         'selectors' => [
    363           '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon:hover' => 'background-color: {{VALUE}}',
    364           '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}}',
    365         ],
    366       ]
    367     );
    368 
    369 
    370     $element->start_injection( [
    371       'of' => 'icon_space',
    372     ] );
    373 
    374 
    375     /**
    376     * - Add icon vertical position
    377     *
    378     */
    379 
    380     $element->add_responsive_control(
    381       'icon_top_margin',
    382       [
    383         'label' => esc_html__( 'Top Offset', 'gum-elementor-addon' ),
    384         'type' => Controls_Manager::SLIDER,
    385         'default' => [
    386           'size' => '',
    387         ],
    388         'range' => [
    389           'px' => [
    390             'min' => 0,
    391             'max' => 100,
    392           ],
    393         ],
    394         'selectors' => [
    395           '{{WRAPPER}} .elementor-icon-box-icon' => 'margin-top: {{SIZE}}{{UNIT}}',
    396         ],
    397       ]
    398     );
    399 
    400     $element->end_injection();
    401 
    402 
    403     $element->start_injection( [
    404       'of' => 'border_radius',
    405     ] );
    406 
    407     $element->add_control(
    408       'boxheading_title',
    409       [
    410         'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
    411         'type' => Controls_Manager::HEADING,
    412         'separator' => 'before',
    413       ]
    414     );
    415 
    416     $element->add_control(
    417       'boxhover_icon_color',
    418       [
    419         'label' => esc_html__( 'Primary Color', 'elementor' ),
    420         'type' => Controls_Manager::COLOR,
    421         'default' => '',
    422         'selectors' => [
    423           '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon' => 'background-color: {{VALUE}};',
    424           '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon, {{WRAPPER}}.elementor-view-default:hover .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}}; border-color: {{VALUE}};',
    425         ],
    426       ]
    427     );
    428 
    429     $element->add_control(
    430       'boxhover_icon_secondcolor',
    431       [
    432         'label' => esc_html__( 'Secondary Color', 'elementor' ),
    433         'type' => Controls_Manager::COLOR,
    434         'default' => '',
    435         'condition' => [
    436           'view!' => 'default',
    437         ],
    438         'selectors' => [
    439           '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon' => 'background-color: {{VALUE}};',
    440           '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}};',
    441         ],
    442       ]
    443     );
    444 
    445     $element->end_injection();
    446 
    447   }
    448 
    449   function register_section_strech_box_controls( Controls_Stack $element ){
    450 
    451     $element->start_injection( [
    452       'of' => 'title_size',
    453     ] );
    454 
    455     $element->add_control(
    456       'title_inline',
    457       [
    458         'label' => esc_html__( 'Title Display', 'gum-elementor-addon' ),
    459         'type' => Controls_Manager::SELECT,
    460         'options' => [
    461           '' => esc_html__( 'Default', 'gum-elementor-addon' ),
    462           'inline' => esc_html__( 'Inline', 'gum-elementor-addon' ),
    463         ],
    464         'selectors' => [
    465           '{{WRAPPER}} .elementor-icon-box-title,{{WRAPPER}} .elementor-image-box-title' => 'display: {{VALUE}}',
    466           '{{WRAPPER}} .elementor-icon-box-description,{{WRAPPER}} .elementor-image-box-description' => 'display: {{VALUE}}',
    467         ],
    468       ]
    469     );
    470 
    471     $element->add_control(
    472       'box_strech',
    473       [
    474         'label' => esc_html__( 'Stretch Box', 'gum-elementor-addon' ),
    475         'type' => Controls_Manager::SWITCHER,
    476         'label_on' => esc_html__( 'Yes', 'gum-elementor-addon' ),
    477         'label_off' => esc_html__( 'No', 'gum-elementor-addon' ),
    478         'default' => '',
    479         'prefix_class' => 'elementor-boxstretch-',
    480       ]
    481     );
    482 
    483     $element->end_injection();
    484 
    485 
    486   }
    487 
    488213  public function enqueue_script( ) {
    489214
  • gum-elementor-addon/trunk/widgets/popover_btn.php

    r3152093 r3177635  
    155155        'options' => [
    156156          'left' => [
    157             'title' => esc_html__( 'Centered', 'gum-elementor-addon' ),
    158             'icon' => 'eicon-text-align-left',
     157            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     158            'icon' => 'eicon-h-align-left',
    159159          ],
    160160          'center' => [
    161161            'title' => esc_html__( 'Centered', 'gum-elementor-addon' ),
    162             'icon' => 'eicon-text-align-center',
     162            'icon' => 'eicon-h-align-center',
    163163          ],
    164164          'right' => [
    165             'title' => esc_html__( 'Centered', 'gum-elementor-addon' ),
    166             'icon' => 'eicon-text-align-right',
     165            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     166            'icon' => 'eicon-h-align-right',
    167167          ],
    168168          'justify' => [
    169169            'title' => esc_html__( 'Full Width', 'gum-elementor-addon' ),
    170             'icon' => 'eicon-text-align-justify',
     170            'icon' => 'eicon-h-align-stretch',
    171171          ],
    172172        ],
     
    200200      [
    201201        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    202         'type' => Controls_Manager::SELECT,
    203         'default' => 'left',
     202        'type' => Controls_Manager::CHOOSE,
    204203        'options' => [
    205           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    206           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     204          'row' => [
     205            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     206            'icon' => 'eicon-h-align-left',
     207          ],
     208          'row-reverse' => [
     209            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     210            'icon' => 'eicon-h-align-right',
     211          ],
    207212        ],
    208213        'condition' => [
    209214          'selected_icon[value]!' => '',
    210215        ],
    211       ]
    212     );
     216        'default' => 'row',
     217        'selectors' => [
     218            '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     219        ],
     220      ]
     221    );
     222
    213223
    214224    $this->add_control(
     
    224234        'default' =>['value'=>5, 'unit'=>'px'],
    225235        'selectors' => [
    226           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    227           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
     236          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     237          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     238          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
    228239        ],
    229240        'condition' => ['selected_icon[value]!' => ''],
     
    239250      ]
    240251    );
     252
     253
     254    $this->add_control(
     255      'pop_title',
     256      [
     257        'label' => esc_html__( 'Title', 'gum-elementor-addon' ),
     258        'type' => Controls_Manager::TEXT,
     259        'dynamic' => [
     260          'active' => true,
     261        ],
     262        'ai' => [
     263          'active' => false,
     264        ],
     265        'default' => '',
     266        'placeholder' => esc_html__( 'Enter your title', 'gum-elementor-addon' ),
     267        'label_block' => true,
     268      ]
     269    );
     270
     271    $this->add_control(
     272      'pop_text',
     273      [
     274        'label' => esc_html__( 'Text', 'gum-elementor-addon' ),
     275        'type' => Controls_Manager::TEXTAREA,
     276        'dynamic' => [
     277          'active' => true,
     278        ],
     279        'default' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'gum-elementor-addon' ),
     280        'placeholder' => esc_html__( 'Enter your description', 'gum-elementor-addon' ),
     281        'rows' => 10,
     282        'show_label' => false,
     283      ]
     284    );
     285
    241286
    242287    $this->add_control(
     
    266311      ]
    267312    );
    268 
    269     $this->add_control(
    270       'pop_title',
    271       [
    272         'label' => esc_html__( 'Title', 'gum-elementor-addon' ),
    273         'type' => Controls_Manager::TEXT,
    274         'dynamic' => [
    275           'active' => true,
    276         ],
    277         'ai' => [
    278           'active' => false,
    279         ],
    280         'default' => '',
    281         'placeholder' => esc_html__( 'Enter your title', 'gum-elementor-addon' ),
    282         'label_block' => true,
    283       ]
    284     );
    285 
    286     $this->add_control(
    287       'pop_text',
    288       [
    289         'label' => esc_html__( 'Text', 'gum-elementor-addon' ),
    290         'type' => Controls_Manager::TEXTAREA,
    291         'dynamic' => [
    292           'active' => true,
    293         ],
    294         'default' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'gum-elementor-addon' ),
    295         'placeholder' => esc_html__( 'Enter your description', 'gum-elementor-addon' ),
    296         'rows' => 10,
    297         'show_label' => false,
    298       ]
    299     );
    300 
    301     $this->end_controls_section();
    302 
    303 /*
    304  * style params
    305  */
    306 
    307     $this->start_controls_section(
    308       'button_styles',
    309       [
    310         'label' => esc_html__( 'Button', 'gum-elementor-addon' ),
    311         'tab'   => Controls_Manager::TAB_STYLE,
    312       ]
    313     );   
    314 
    315     $this->add_group_control(
    316       Group_Control_Typography::get_type(),
    317       [
    318         'name' => 'typography_title',
    319         'selector' => '{{WRAPPER}} .elementor-button',
    320       ]
    321     );
    322 
    323     $this->start_controls_tabs( 'tabs_button_style' );
    324 
    325     $this->start_controls_tab(
    326       'tab_button_normal',
    327       [
    328         'label' => esc_html__( 'Normal', 'gum-elementor-addon' ),
    329       ]
    330     );
    331 
    332     $this->add_control(
    333       'button_text_color',
    334       [
    335         'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
    336         'type' =>  Controls_Manager::COLOR,
    337         'default' => '',
    338         'selectors' => [
    339           '{{WRAPPER}} .elementor-button' => 'fill: {{VALUE}};color: {{VALUE}};',
    340         ]
    341       ]
    342     );
    343 
    344     $this->add_control(
    345       'button_background_color',
    346       [
    347         'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
    348         'type' =>  Controls_Manager::COLOR,
    349         'default' => '',
    350         'selectors' => [
    351           '{{WRAPPER}} .elementor-button' => 'background-color: {{VALUE}};',
    352         ],
    353       ]
    354     );
    355 
    356     $this->end_controls_tab();
    357     $this->start_controls_tab(
    358       'tab_button_hover',
    359       [
    360         'label' => esc_html__( 'Hover/Clicked', 'gum-elementor-addon' ),
    361       ]
    362     );
    363 
    364     $this->add_control(
    365       'button_hover_color',
    366       [
    367         'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
    368         'type' =>  Controls_Manager::COLOR,
    369         'default' => '',
    370         'selectors' => [
    371           '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'color: {{VALUE}}!important;',
    372           '{{WRAPPER}} .elementor-button:hover svg, {{WRAPPER}} .elementor-button:focus svg' => 'fill: {{VALUE}}!important;',
    373           '{{WRAPPER}} .pop-it .elementor-button' => 'color: {{VALUE}}!important;',
    374         ],
    375       ]
    376     );
    377 
    378     $this->add_control(
    379       'button_background_hover_color',
    380       [
    381         'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
    382         'type' =>  Controls_Manager::COLOR,
    383         'default' => '',
    384         'selectors' => [
    385           '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'background-color: {{VALUE}};',
    386           '{{WRAPPER}} .pop-it  .elementor-button' => 'background-color: {{VALUE}};',
    387         ],
    388       ]
    389     );
    390 
    391     $this->add_control(
    392       'button_hover_border_color',
    393       [
    394         'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
    395         'type' => Controls_Manager::COLOR,
    396         'condition' => [
    397           'btn_border_border!' => '',
    398         ],
    399         'selectors' => [
    400           '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'border-color: {{VALUE}};',
    401           '{{WRAPPER}} .pop-it  .elementor-button' => 'border-color: {{VALUE}};',
    402         ],
    403       ]
    404     );
    405 
    406     $this->add_responsive_control(
    407       'icon_rotate',
    408       [
    409         'label' => esc_html__( 'Icon Rotate', 'gum-elementor-addon' ),
    410         'type' => Controls_Manager::SLIDER,
    411         'size_units' => [ 'deg' ],
    412         'default' => [
    413           'size' => 0,
    414           'unit' => 'deg',
    415         ],
    416         'tablet_default' => [
    417           'unit' => 'deg',
    418         ],
    419         'mobile_default' => [
    420           'unit' => 'deg',
    421         ],
    422         'selectors' => [
    423           '{{WRAPPER}} .pop-it .elementor-button-icon i, {{WRAPPER}} .pop-it .elementor-button-icon svg' => 'transform: rotate({{SIZE}}{{UNIT}})',
    424         ],
    425       ]
    426     );
    427 
    428     $this->end_controls_tab();
    429     $this->end_controls_tabs();
    430 
    431     $this->add_group_control(
    432       Group_Control_Border::get_type(),
    433       [
    434         'name' => 'btn_border',
    435         'selector' => '{{WRAPPER}} .elementor-button',
    436         'separator' => 'before',
    437       ]
    438     );
    439 
    440     $this->add_control(
    441       'btn_border_radius',
    442       [
    443         'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
    444         'type' => Controls_Manager::DIMENSIONS,
    445         'size_units' => [ 'px', '%' ],
    446         'selectors' => [
    447           '{{WRAPPER}} .elementor-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    448         ]
    449       ]
    450     );
    451 
    452     $this->add_responsive_control(
    453       'btn_text_padding',
    454       [
    455         'label' => esc_html__( 'Padding', 'gum-elementor-addon' ),
    456         'type' => Controls_Manager::DIMENSIONS,
    457         'size_units' => [ 'px', 'em', '%' ],
    458         'selectors' => [
    459           '{{WRAPPER}} .elementor-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    460         ]
    461       ]
    462     );
    463 
    464     $this->add_group_control(
    465       Group_Control_Box_Shadow::get_type(),
    466       [
    467         'name' => 'button_box_shadow',
    468         'selector' => '{{WRAPPER}} .elementor-button',
    469       ]
    470     );
    471 
    472     $this->end_controls_section();
    473 
    474     $this->start_controls_section(
    475       'popup_styles',
    476       [
    477         'label' => esc_html__( 'Popup Content', 'gum-elementor-addon' ),
    478         'tab'   => Controls_Manager::TAB_STYLE,
    479       ]
    480     );   
    481313
    482314
     
    502334
    503335
     336    $this->end_controls_section();
     337
     338/*
     339 * style params
     340 */
     341
     342    $this->start_controls_section(
     343      'button_styles',
     344      [
     345        'label' => esc_html__( 'Button', 'gum-elementor-addon' ),
     346        'tab'   => Controls_Manager::TAB_STYLE,
     347      ]
     348    );   
     349
     350    $this->add_group_control(
     351      Group_Control_Typography::get_type(),
     352      [
     353        'name' => 'typography_title',
     354        'selector' => '{{WRAPPER}} .elementor-button',
     355      ]
     356    );
     357
     358    $this->start_controls_tabs( 'tabs_button_style' );
     359
     360    $this->start_controls_tab(
     361      'tab_button_normal',
     362      [
     363        'label' => esc_html__( 'Normal', 'gum-elementor-addon' ),
     364      ]
     365    );
     366
     367    $this->add_control(
     368      'button_text_color',
     369      [
     370        'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
     371        'type' =>  Controls_Manager::COLOR,
     372        'default' => '',
     373        'selectors' => [
     374          '{{WRAPPER}} .elementor-button' => 'fill: {{VALUE}};color: {{VALUE}};',
     375        ]
     376      ]
     377    );
     378
     379    $this->add_control(
     380      'button_background_color',
     381      [
     382        'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
     383        'type' =>  Controls_Manager::COLOR,
     384        'default' => '',
     385        'selectors' => [
     386          '{{WRAPPER}} .elementor-button' => 'background-color: {{VALUE}};',
     387        ],
     388      ]
     389    );
     390
     391    $this->end_controls_tab();
     392    $this->start_controls_tab(
     393      'tab_button_hover',
     394      [
     395        'label' => esc_html__( 'Hover/Clicked', 'gum-elementor-addon' ),
     396      ]
     397    );
     398
     399    $this->add_control(
     400      'button_hover_color',
     401      [
     402        'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
     403        'type' =>  Controls_Manager::COLOR,
     404        'default' => '',
     405        'selectors' => [
     406          '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'color: {{VALUE}}!important;',
     407          '{{WRAPPER}} .elementor-button:hover svg, {{WRAPPER}} .elementor-button:focus svg' => 'fill: {{VALUE}}!important;',
     408          '{{WRAPPER}} .pop-it .elementor-button' => 'color: {{VALUE}}!important;',
     409        ],
     410      ]
     411    );
     412
     413    $this->add_control(
     414      'button_background_hover_color',
     415      [
     416        'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
     417        'type' =>  Controls_Manager::COLOR,
     418        'default' => '',
     419        'selectors' => [
     420          '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'background-color: {{VALUE}};',
     421          '{{WRAPPER}} .pop-it  .elementor-button' => 'background-color: {{VALUE}};',
     422        ],
     423      ]
     424    );
     425
     426    $this->add_control(
     427      'button_hover_border_color',
     428      [
     429        'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
     430        'type' => Controls_Manager::COLOR,
     431        'condition' => [
     432          'btn_border_border!' => '',
     433        ],
     434        'selectors' => [
     435          '{{WRAPPER}} .elementor-button:hover, {{WRAPPER}} .elementor-button:focus' => 'border-color: {{VALUE}};',
     436          '{{WRAPPER}} .pop-it  .elementor-button' => 'border-color: {{VALUE}};',
     437        ],
     438      ]
     439    );
     440
     441    $this->add_responsive_control(
     442      'icon_rotate',
     443      [
     444        'label' => esc_html__( 'Icon Rotate', 'gum-elementor-addon' ),
     445        'type' => Controls_Manager::SLIDER,
     446        'size_units' => [ 'deg' ],
     447        'default' => [
     448          'size' => 0,
     449          'unit' => 'deg',
     450        ],
     451        'tablet_default' => [
     452          'unit' => 'deg',
     453        ],
     454        'mobile_default' => [
     455          'unit' => 'deg',
     456        ],
     457        'selectors' => [
     458          '{{WRAPPER}} .pop-it .elementor-button-icon i, {{WRAPPER}} .pop-it .elementor-button-icon svg' => 'transform: rotate({{SIZE}}{{UNIT}})',
     459        ],
     460      ]
     461    );
     462
     463    $this->end_controls_tab();
     464    $this->end_controls_tabs();
     465
     466    $this->add_group_control(
     467      Group_Control_Border::get_type(),
     468      [
     469        'name' => 'btn_border',
     470        'selector' => '{{WRAPPER}} .elementor-button',
     471        'separator' => 'before',
     472      ]
     473    );
     474
     475    $this->add_control(
     476      'btn_border_radius',
     477      [
     478        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     479        'type' => Controls_Manager::DIMENSIONS,
     480        'size_units' => [ 'px', '%' ],
     481        'selectors' => [
     482          '{{WRAPPER}} .elementor-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     483        ]
     484      ]
     485    );
     486
     487    $this->add_responsive_control(
     488      'btn_text_padding',
     489      [
     490        'label' => esc_html__( 'Padding', 'gum-elementor-addon' ),
     491        'type' => Controls_Manager::DIMENSIONS,
     492        'size_units' => [ 'px', 'em', '%' ],
     493        'selectors' => [
     494          '{{WRAPPER}} .elementor-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     495        ]
     496      ]
     497    );
     498
     499    $this->add_group_control(
     500      Group_Control_Box_Shadow::get_type(),
     501      [
     502        'name' => 'button_box_shadow',
     503        'selector' => '{{WRAPPER}} .elementor-button',
     504      ]
     505    );
     506
     507    $this->end_controls_section();
     508
     509    $this->start_controls_section(
     510      'popup_styles',
     511      [
     512        'label' => esc_html__( 'Popup Content', 'gum-elementor-addon' ),
     513        'tab'   => Controls_Manager::TAB_STYLE,
     514      ]
     515    );   
     516
     517
     518
    504519    $this->add_control(
    505520      'pop_bgcolor',
  • gum-elementor-addon/trunk/widgets/post_slider.php

    r3152093 r3177635  
    272272      [
    273273        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    274         'type' => Controls_Manager::SELECT,
    275         'default' => 'left',
     274        'type' => Controls_Manager::CHOOSE,
    276275        'options' => [
    277           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    278           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     276          'row' => [
     277            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     278            'icon' => 'eicon-h-align-left',
     279          ],
     280          'row-reverse' => [
     281            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     282            'icon' => 'eicon-h-align-right',
     283          ],
    279284        ],
    280285        'condition' => [
    281286          'show_readmore' => 'yes',
    282287          'readmore_icon[value]!' => '',
     288        ],
     289        'default' => 'row',
     290        'selectors' => [
     291            '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
    283292        ],
    284293      ]
     
    15971606    );
    15981607
     1608
    15991609    $this->add_control(
    16001610      'readmore_icon_indent',
     
    16091619        'default' =>['value'=>5, 'unit'=>'px'],
    16101620        'selectors' => [
    1611           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    1612           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
     1621          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     1622          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     1623          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
    16131624        ],
    16141625        'condition' => ['readmore_icon[value]!' => ''],
  • gum-elementor-addon/trunk/widgets/pricetable.php

    r3152093 r3177635  
    523523    );
    524524
     525
    525526    $this->add_control(
    526527      'icon_align',
    527528      [
    528529        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    529         'type' => Controls_Manager::SELECT,
    530         'default' => 'left',
     530        'type' => Controls_Manager::CHOOSE,
    531531        'options' => [
    532           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    533           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     532          'row' => [
     533            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     534            'icon' => 'eicon-h-align-left',
     535          ],
     536          'row-reverse' => [
     537            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     538            'icon' => 'eicon-h-align-right',
     539          ],
    534540        ],
    535541        'condition' => [
     
    537543          'show_button[value]' => 'yes'
    538544        ],
     545        'default' => 'row',
     546        'selectors' => [
     547            '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     548        ],
     549      ]
     550    );
     551
     552    $this->add_control(
     553      'icon_indent',
     554      [
     555        'label' => esc_html__( 'Icon Spacing', 'gum-elementor-addon' ),
     556        'type' => Controls_Manager::SLIDER,
     557        'range' => [
     558          'px' => [
     559            'max' => 100,
     560          ],
     561        ],
     562        'default' =>['value'=>5, 'unit'=>'px'],
     563        'selectors' => [
     564          '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};margin-right:0;',
     565          '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: 0;',
     566          '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'gap:{{SIZE}}{{UNIT}};'
     567        ],
     568        'condition' => ['selected_icon[value]!' => ''],
    539569      ]
    540570    );
     
    17311761    );
    17321762
    1733     $this->add_control(
    1734       'icon_indent',
    1735       [
    1736         'label' => esc_html__( 'Icon Spacing', 'gum-elementor-addon' ),
    1737         'type' => Controls_Manager::SLIDER,
    1738         'range' => [
    1739           'px' => [
    1740             'max' => 100,
    1741           ],
    1742         ],
    1743         'default' =>['value'=>5, 'unit'=>'px'],
    1744         'selectors' => [
    1745           '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
    1746           '{{WRAPPER}} .elementor-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
    1747         ],
    1748         'condition' => ['selected_icon[value]!' => ''],
    1749       ]
    1750     );
    17511763
    17521764    $this->add_group_control(
     
    20372049                'elementor-button-align-'.sanitize_html_class($button_align)
    20382050              ] );
    2039 
    20402051
    20412052              $this->add_render_attribute( 'button_text', 'class', 'elementor-button-text');
  • gum-elementor-addon/trunk/widgets/section.php

    r2977861 r3177635  
    18391839}
    18401840
    1841 
    1842 
    1843 
    18441841new \Elementor\Gum_Elementor_Section_Widget();
    18451842?>
  • gum-elementor-addon/trunk/widgets/slideshow.php

    r3152093 r3177635  
    209209      [
    210210        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    211         'type' => Controls_Manager::SELECT,
    212         'default' => 'left',
     211        'type' => Controls_Manager::CHOOSE,
    213212        'options' => [
    214           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    215           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     213          'row' => [
     214            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     215            'icon' => 'eicon-h-align-left',
     216          ],
     217          'row-reverse' => [
     218            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     219            'icon' => 'eicon-h-align-right',
     220          ],
    216221        ],
    217222        'condition' => [
    218223          'selected_icon[value]!' => '',
    219224        ],
    220       ]
    221     );
     225        'default' => 'row',
     226        'selectors' => [
     227            '{{WRAPPER}} {{CURRENT_ITEM}} .primary-button .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     228        ],
     229      ]
     230    );
     231
    222232
    223233    $repeater->add_control(
     
    269279      [
    270280        'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ),
    271         'type' => Controls_Manager::SELECT,
    272         'default' => 'left',
     281        'type' => Controls_Manager::CHOOSE,
    273282        'options' => [
    274           'left' => esc_html__( 'Before', 'gum-elementor-addon' ),
    275           'right' => esc_html__( 'After', 'gum-elementor-addon' ),
     283          'row' => [
     284            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     285            'icon' => 'eicon-h-align-left',
     286          ],
     287          'row-reverse' => [
     288            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     289            'icon' => 'eicon-h-align-right',
     290          ],
    276291        ],
    277292        'condition' => [
    278293          'selected_r_icon[value]!' => '',
    279294        ],
    280       ]
    281     );
     295        'default' => 'row',
     296        'selectors' => [
     297            '{{WRAPPER}} {{CURRENT_ITEM}} .secondary-button .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};'
     298        ],
     299      ]
     300    );
     301
    282302
    283303    $repeater->add_control(
     
    11271147          '{{WRAPPER}} .elementor-button.primary-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
    11281148          '{{WRAPPER}} .elementor-button.primary-button .elementor-button-text' => '-webkit-box-flex: 0;flex-grow: 0;',
     1149          '{{WRAPPER}} .elementor-button.primary-button .elementor-button-content-wrapper' => 'gap: {{SIZE}}{{UNIT}};',
    11291150        ],
    11301151      ]
     
    11911212          '{{WRAPPER}} .elementor-button.secondary-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
    11921213          '{{WRAPPER}} .elementor-button.secondary-button .elementor-button-text' => '-webkit-box-flex: 0;flex-grow: 0;',
     1214          '{{WRAPPER}} .elementor-button.secondary-button .elementor-button-content-wrapper' => 'gap: {{SIZE}}{{UNIT}};',
    11931215        ],
    11941216      ]
     
    18581880        $this->add_render_attribute( $slide_title_key , 'class', 'caption-heading' );
    18591881
    1860         $title = sprintf('<h2 %1$s>%2$s</h2>', $this->get_render_attribute_string( $slide_title_key ), esc_html($title));
     1882        $title = sprintf('<h2 %1$s>%2$s</h2>', $this->get_render_attribute_string( $slide_title_key ), esc_html($title) );
    18611883
    18621884      }
Note: See TracChangeset for help on using the changeset viewer.