Plugin Directory

Changeset 2800703


Ignore:
Timestamp:
10/18/2022 03:25:34 PM (3 years ago)
Author:
celomitan
Message:

1.2.17

  • Improvement: Adding box stretch option ( native icon box widget, native image box widget )
  • Improvement: Adding color style on box hover ( native icon box widget, native image box widget )
  • Added: post title word length option( blog grid widget )
Location:
gum-elementor-addon
Files:
45 added
6 edited

Legend:

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

    r2776619 r2800703  
    528528  .grid-imboxs .grid-box.grid-col-3,.grid-posts .grid-post.grid-col-3{ width:  33.33%;}
    529529  .grid-imboxs .grid-box.grid-col-2,.grid-posts .grid-post.grid-col-2{ width:  50%;}
     530
     531  [data-elementor-device-mode=tablet] .post-grid-col-tablet-3 .grid-posts .grid-post{ width:  33.33%; }
     532  [data-elementor-device-mode=tablet] .post-grid-col-tablet-2 .grid-posts .grid-post{ width:  50%; }
     533  [data-elementor-device-mode=tablet] .post-grid-col-tablet-1 .grid-posts .grid-post{ width:  100%; }
    530534}
    531535
     
    746750
    747751.elementor-widget-heading .elementor-heading-title[class*=elementor-size-] > a{ letter-spacing: inherit; font-weight: inherit; font-family: inherit;font-style: inherit; }
     752
     753/* native icon box widget, native image box widget */
     754
     755.elementor-widget-image-box.elementor-boxstretch-yes,
     756.elementor-widget-image-box.elementor-boxstretch-yes .elementor-widget-container,
     757.elementor-widget-image-box.elementor-boxstretch-yes .elementor-image-box-wrapper,
     758.elementor-widget-icon-box.elementor-boxstretch-yes,
     759.elementor-widget-icon-box.elementor-boxstretch-yes .elementor-widget-container,
     760.elementor-widget-icon-box.elementor-boxstretch-yes .elementor-icon-box-wrapper{ height: 100%;}
  • gum-elementor-addon/trunk/gum-elementor-addon.php

    r2779708 r2800703  
    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.2.16
     7 * Version: 1.2.17
    88 * Author: TemeGUM
    99 * Author URI: http://themegum.com
  • gum-elementor-addon/trunk/readme.txt

    r2779705 r2800703  
    70705. Three colors heading
    7171
     72
    7273== Changelog ==
     74= 1.2.17 =
     75* Improvement: Adding box stretch option ( native icon box widget, native image box widget )
     76* Improvement: Adding color style on box hover ( native icon box widget, native image box widget )
     77* Added: post title word length option( blog grid widget )
     78
     79= 1.2.16 =
     80* Improvement: Adding icon offset position ( native icon box widget )
     81
    7382= 1.2.15 =
    7483* Improvement: Adding suffix title ( gum heading widget )
  • gum-elementor-addon/trunk/widgets/blog_grid.php

    r2767140 r2800703  
    123123    );
    124124
    125     $this->add_control(
     125    $this->add_responsive_control(
    126126      'grid_layout',
    127127      [
     
    134134          '4' => esc_html__( 'Four Column', 'gum-elementor-addon' ),
    135135        ],
    136         'default' => '3'
     136        'default' => '3',
     137        'mobile_default' => '1',
     138        'prefix_class' => 'post-grid-col%s-',
    137139      ]
    138140    );
     
    237239    ]
    238240  );
     241
     242
     243 $this->add_control(
     244    'post_title_word',
     245    [
     246      'label'     => esc_html__( 'Word Count', 'gum-elementor-addon' ),
     247      'type'      => Controls_Manager::NUMBER,
     248      'default'   => '',
     249    ]
     250  );
     251
     252 $this->add_control(
     253    'post_title_sufix',
     254    [
     255      'label'     => esc_html__( 'Suffix', 'gum-elementor-addon' ),
     256      'type'      => Controls_Manager::TEXT,
     257      'default'   => '',
     258      'condition' => [
     259        'post_title_word!' => ''
     260      ],
     261    ]
     262  );   
    239263
    240264  $this->add_control(
     
    26392663    }
    26402664
     2665    if($post_title_word !='' && $post_title_word > 0 ){
     2666        $post_title = wp_trim_words($post_title ,  absint($post_title_word) , $post_title_sufix );
     2667    }
     2668
    26412669    $this->add_toprevious_blog( $post_id );
    26422670    $post_url = get_the_permalink();
  • gum-elementor-addon/trunk/widgets/icon_list.php

    r2737486 r2800703  
    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 );
    2123      add_action( 'elementor/element/icon-box/section_style_content/after_section_end', array( $this, 'register_section_style_content_controls') , 999 );
    2224      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 );
    2328
    2429      add_action( 'elementor/element/before_section_start', [ $this, 'enqueue_script' ] );
     
    129134
    130135
     136    $element->start_injection( [
     137      'of' => 'title_color',
     138    ] );
     139
     140
     141    $element->add_control(
     142      'boxhover_title_color',
     143      [
     144        'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
     145        'type' => Controls_Manager::COLOR,
     146        'default' => '',
     147        'selectors' => [
     148          '{{WRAPPER}}:hover .elementor-icon-box-title' => 'color: {{VALUE}};',
     149          '{{WRAPPER}}:hover .elementor-image-box-title' => 'color: {{VALUE}};',
     150        ],
     151      ]
     152    );
     153
     154    $element->end_injection();
     155
     156    $element->start_injection( [
     157      'of' => 'description_color',
     158    ] );
     159
     160
     161    $element->add_control(
     162      'boxhover_description_color',
     163      [
     164        'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
     165        'type' => Controls_Manager::COLOR,
     166        'default' => '',
     167        'selectors' => [
     168          '{{WRAPPER}}:hover .elementor-icon-box-description' => 'color: {{VALUE}};',
     169          '{{WRAPPER}}:hover .elementor-image-box-description' => 'color: {{VALUE}};',
     170        ],
     171      ]
     172    );
     173
     174    $element->end_injection();
     175
     176
     177  }
     178
     179
     180  function register_section_iconbox_style_controls( Controls_Stack $element ) {
     181
     182
     183    $element->update_control(
     184      'hover_primary_color',
     185      [
     186        'label' => esc_html__( 'Primary Color', 'elementor' ),
     187        'type' => Controls_Manager::COLOR,
     188        'default' => '',
     189        'selectors' => [
     190          '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon:hover' => 'background-color: {{VALUE}};',
     191          '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon:hover, {{WRAPPER}}.elementor-view-default:hover .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}}!important; border-color: {{VALUE}};',
     192        ],
     193      ]
     194    );
     195
     196    $element->update_control(
     197      'hover_secondary_color',
     198      [
     199        'label' => esc_html__( 'Secondary Color', 'elementor' ),
     200        'type' => Controls_Manager::COLOR,
     201        'default' => '',
     202        'condition' => [
     203          'view!' => 'default',
     204        ],
     205        'selectors' => [
     206          '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon:hover' => 'background-color: {{VALUE}}',
     207          '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon:hover' => 'fill: {{VALUE}}; color: {{VALUE}}',
     208        ],
     209      ]
     210    );
     211
     212
     213    $element->start_injection( [
     214      'of' => 'icon_space',
     215    ] );
     216
     217
     218    /**
     219    * - Add icon vertical position
     220    *
     221    */
     222
     223    $element->add_responsive_control(
     224      'icon_top_margin',
     225      [
     226        'label' => esc_html__( 'Top Offset', 'gum-elementor-addon' ),
     227        'type' => Controls_Manager::SLIDER,
     228        'default' => [
     229          'size' => '',
     230        ],
     231        'range' => [
     232          'px' => [
     233            'min' => 0,
     234            'max' => 100,
     235          ],
     236        ],
     237        'selectors' => [
     238          '{{WRAPPER}} .elementor-icon-box-icon' => 'margin-top: {{SIZE}}{{UNIT}}',
     239        ],
     240      ]
     241    );
     242
     243    $element->end_injection();
     244
     245
     246    $element->start_injection( [
     247      'of' => 'border_radius',
     248    ] );
     249
     250    $element->add_control(
     251      'boxheading_title',
     252      [
     253        'label' => esc_html__( 'On Box Hover', 'gum-elementor-addon' ),
     254        'type' => Controls_Manager::HEADING,
     255        'separator' => 'before',
     256      ]
     257    );
     258
     259    $element->add_control(
     260      'boxhover_icon_color',
     261      [
     262        'label' => esc_html__( 'Primary Color', 'elementor' ),
     263        'type' => Controls_Manager::COLOR,
     264        'default' => '',
     265        'selectors' => [
     266          '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon' => 'background-color: {{VALUE}};',
     267          '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon, {{WRAPPER}}.elementor-view-default:hover .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}}; border-color: {{VALUE}};',
     268        ],
     269      ]
     270    );
     271
     272    $element->add_control(
     273      'boxhover_icon_secondcolor',
     274      [
     275        'label' => esc_html__( 'Secondary Color', 'elementor' ),
     276        'type' => Controls_Manager::COLOR,
     277        'default' => '',
     278        'condition' => [
     279          'view!' => 'default',
     280        ],
     281        'selectors' => [
     282          '{{WRAPPER}}.elementor-view-framed:hover .elementor-icon' => 'background-color: {{VALUE}};',
     283          '{{WRAPPER}}.elementor-view-stacked:hover .elementor-icon' => 'fill: {{VALUE}}; color: {{VALUE}};',
     284        ],
     285      ]
     286    );
     287
     288    $element->end_injection();
     289
     290  }
     291
     292  function register_section_strech_box_controls( Controls_Stack $element ){
     293
     294    $element->start_injection( [
     295      'of' => 'title_size',
     296    ] );
     297
     298    $element->add_control(
     299      'box_strech',
     300      [
     301        'label' => esc_html__( 'Stretch Box', 'gum-elementor-addon' ),
     302        'type' => Controls_Manager::SWITCHER,
     303        'label_on' => esc_html__( 'No', 'gum-elementor-addon' ),
     304        'label_off' => esc_html__( 'Yes', 'gum-elementor-addon' ),
     305        'default' => '',
     306        'prefix_class' => 'elementor-boxstretch-',
     307      ]
     308    );
     309
     310    $element->end_injection();
     311
     312
    131313  }
    132314
  • gum-elementor-addon/trunk/widgets/pricetable.php

    r2767140 r2800703  
    184184              '2' => esc_html__( 'Outside', 'gum-elementor-addon' ),
    185185        ],
    186         'default' => '1'
     186        'default' => '1',
     187        'style_transfer' => true,
    187188      ]
    188189    );
     
    332333        'default' => 'before',
    333334        'separator' => 'before',
     335        'style_transfer' => true,
    334336      ]
    335337    );
     
    410412        'label_on' => esc_html__( 'Show', 'gum-elementor-addon' ),
    411413        'default' => 'yes',
     414        'style_transfer' => true,
    412415      ]
    413416    );
     
    422425        'default' => 'yes',
    423426        'condition' => ['show_footer[value]' => 'yes'],
     427        'style_transfer' => true,
    424428      ]
    425429    );
Note: See TracChangeset for help on using the changeset viewer.