Changeset 3177635
- Timestamp:
- 10/29/2024 04:30:50 AM (17 months ago)
- Location:
- gum-elementor-addon
- Files:
-
- 48 added
- 11 edited
-
tags/1.3.9 (added)
-
tags/1.3.9/css (added)
-
tags/1.3.9/css/index.html (added)
-
tags/1.3.9/css/owl.carousel.css (added)
-
tags/1.3.9/css/placeholder.jpg (added)
-
tags/1.3.9/css/style.css (added)
-
tags/1.3.9/gum-elementor-addon.php (added)
-
tags/1.3.9/helper.php (added)
-
tags/1.3.9/index.html (added)
-
tags/1.3.9/js (added)
-
tags/1.3.9/js/allscripts.js (added)
-
tags/1.3.9/js/index.html (added)
-
tags/1.3.9/js/jquery.easing.1.3.js (added)
-
tags/1.3.9/js/jquery.superslides.js (added)
-
tags/1.3.9/js/owl.carousel.min.js (added)
-
tags/1.3.9/js/price-table.js (added)
-
tags/1.3.9/languages (added)
-
tags/1.3.9/languages/gum-elementor-addon.pot (added)
-
tags/1.3.9/languages/index.html (added)
-
tags/1.3.9/readme.txt (added)
-
tags/1.3.9/widgets (added)
-
tags/1.3.9/widgets/accordion.php (added)
-
tags/1.3.9/widgets/blog_grid.php (added)
-
tags/1.3.9/widgets/blog_image.php (added)
-
tags/1.3.9/widgets/blog_lists.php (added)
-
tags/1.3.9/widgets/blog_pagination.php (added)
-
tags/1.3.9/widgets/blog_post_adjacent.php (added)
-
tags/1.3.9/widgets/blog_post_meta.php (added)
-
tags/1.3.9/widgets/blog_post_related.php (added)
-
tags/1.3.9/widgets/blog_post_share.php (added)
-
tags/1.3.9/widgets/blog_term.php (added)
-
tags/1.3.9/widgets/button.php (added)
-
tags/1.3.9/widgets/carousel_ibox.php (added)
-
tags/1.3.9/widgets/counter.php (added)
-
tags/1.3.9/widgets/heading.php (added)
-
tags/1.3.9/widgets/icon_list.php (added)
-
tags/1.3.9/widgets/image_box.php (added)
-
tags/1.3.9/widgets/index.html (added)
-
tags/1.3.9/widgets/popover_btn.php (added)
-
tags/1.3.9/widgets/post_slider.php (added)
-
tags/1.3.9/widgets/pricetable.php (added)
-
tags/1.3.9/widgets/progress.php (added)
-
tags/1.3.9/widgets/section.php (added)
-
tags/1.3.9/widgets/site_navigation.php (added)
-
tags/1.3.9/widgets/slideshow.php (added)
-
tags/1.3.9/widgets/toggle_period.php (added)
-
tags/1.3.9/widgets/totop_btn.php (added)
-
trunk/css/style.css (modified) (2 diffs)
-
trunk/gum-elementor-addon.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets/blog_grid.php (modified) (3 diffs)
-
trunk/widgets/carousel_ibox.php (modified) (7 diffs)
-
trunk/widgets/icon_list.php (modified) (2 diffs)
-
trunk/widgets/image_box.php (added)
-
trunk/widgets/popover_btn.php (modified) (6 diffs)
-
trunk/widgets/post_slider.php (modified) (3 diffs)
-
trunk/widgets/pricetable.php (modified) (4 diffs)
-
trunk/widgets/section.php (modified) (1 diff)
-
trunk/widgets/slideshow.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gum-elementor-addon/trunk/css/style.css
r3051383 r3177635 322 322 .elementor-widget-gum_popover.elementor-absolute,.elementor-widget-gum_popover.elementor-fixed{ z-index: unset!important;} 323 323 .popover-button-wrapper{ position: relative; display: inline-block;} 324 .elementor-align-justify .popover-button-wrapper { display: block;} 324 325 .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;} 325 326 .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%);} … … 808 809 809 810 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 810 816 section.e-transform{ 811 817 -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 5 5 * Plugin URI: http://themegum.com/ 6 6 * 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. 87 * Version: 1.3.9 8 8 * Author: TemeGUM 9 9 * Author URI: http://themegum.com … … 13 13 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 14 14 * Requires at least: 3.7 15 * Tested up to: 6.6. 116 * Elementor tested up to: 3.2 3.415 * Tested up to: 6.6.2 16 * Elementor tested up to: 3.24.2 17 17 */ 18 18 … … 58 58 require_once( GUM_ELEMENTOR_DIR."widgets/section.php" ); 59 59 require_once( GUM_ELEMENTOR_DIR."widgets/icon_list.php" ); 60 require_once( GUM_ELEMENTOR_DIR."widgets/image_box.php" ); 60 61 require_once( GUM_ELEMENTOR_DIR."widgets/accordion.php" ); 61 62 require_once( GUM_ELEMENTOR_DIR."widgets/counter.php" ); -
gum-elementor-addon/trunk/readme.txt
r3152093 r3177635 4 4 Tags: elementor, blog, slide, pricing, menu 5 5 Requires at least: 6.0 6 Tested up to: 6.6. 16 Tested up to: 6.6.2 7 7 Requires PHP: 7.0 8 Stable tag: 1.3. 88 Stable tag: 1.3.9 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 71 71 == Changelog == 72 72 73 = 1.3.9 = 74 * Bug fix: button with icon styles 75 76 73 77 = 1.3.8 = 74 78 * Security issue fixing -
gum-elementor-addon/trunk/widgets/blog_grid.php
r3152093 r3177635 352 352 [ 353 353 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 354 'type' => Controls_Manager::SELECT, 355 'default' => 'left', 354 'type' => Controls_Manager::CHOOSE, 356 355 '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 ], 359 364 ], 360 365 'condition' => [ … … 362 367 'readmore_icon[value]!' => '', 363 368 ], 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]!' => ''], 364 392 ] 365 393 ); … … 3305 3333 ); 3306 3334 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 );3325 3335 3326 3336 -
gum-elementor-addon/trunk/widgets/carousel_ibox.php
r3152093 r3177635 174 174 [ 175 175 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 176 'type' => Controls_Manager::SELECT, 177 'default' => 'left', 176 'type' => Controls_Manager::CHOOSE, 178 177 '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 ); 185 195 186 196 $repeater->add_control( … … 1406 1416 ); 1407 1417 1418 1408 1419 $this->add_control( 1409 1420 'button_icon_indent', … … 1418 1429 'default' =>['value'=>5, 'unit'=>'px'], 1419 1430 '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}};' 1422 1434 ], 1423 1435 'condition' => ['show_button!' => ''], … … 1941 1953 $image_url = Group_Control_Image_Size::get_attachment_image_src( $thumb_id, 'thumbnail', $settings); 1942 1954 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).'">'; 1944 1956 1945 1957 if($show_content!=''){ … … 2036 2048 2037 2049 $this->add_render_attribute( $index , 'class', 'elementor-button-text' ); 2050 $this->add_inline_editing_attributes( $index, 'none' ); 2038 2051 2039 2052 ob_start(); … … 2427 2440 [ 2428 2441 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 2429 'type' => Controls_Manager::SELECT, 2430 'default' => 'left', 2442 'type' => Controls_Manager::CHOOSE, 2431 2443 '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 ], 2434 2452 ], 2435 2453 'style_transfer' => true, 2436 2454 '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 2441 2484 2442 2485 $this->end_controls_section(); … … 3204 3247 ); 3205 3248 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 3226 3249 $this->add_control( 3227 3250 'button_icon_size', -
gum-elementor-addon/trunk/widgets/icon_list.php
r3152093 r3177635 19 19 add_action( 'elementor/element/icon-list/section_icon_style/after_section_end', array( $this, 'register_section_icon_style_controls') , 999 ); 20 20 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 29 22 add_action( 'elementor/element/before_section_start', [ $this, 'enqueue_script' ] ); 30 23 … … 218 211 } 219 212 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 position377 *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 488 213 public function enqueue_script( ) { 489 214 -
gum-elementor-addon/trunk/widgets/popover_btn.php
r3152093 r3177635 155 155 'options' => [ 156 156 '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', 159 159 ], 160 160 'center' => [ 161 161 'title' => esc_html__( 'Centered', 'gum-elementor-addon' ), 162 'icon' => 'eicon- text-align-center',162 'icon' => 'eicon-h-align-center', 163 163 ], 164 164 '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', 167 167 ], 168 168 'justify' => [ 169 169 'title' => esc_html__( 'Full Width', 'gum-elementor-addon' ), 170 'icon' => 'eicon- text-align-justify',170 'icon' => 'eicon-h-align-stretch', 171 171 ], 172 172 ], … … 200 200 [ 201 201 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 202 'type' => Controls_Manager::SELECT, 203 'default' => 'left', 202 'type' => Controls_Manager::CHOOSE, 204 203 '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 ], 207 212 ], 208 213 'condition' => [ 209 214 'selected_icon[value]!' => '', 210 215 ], 211 ] 212 ); 216 'default' => 'row', 217 'selectors' => [ 218 '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};' 219 ], 220 ] 221 ); 222 213 223 214 224 $this->add_control( … … 224 234 'default' =>['value'=>5, 'unit'=>'px'], 225 235 '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}};' 228 239 ], 229 240 'condition' => ['selected_icon[value]!' => ''], … … 239 250 ] 240 251 ); 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 241 286 242 287 $this->add_control( … … 266 311 ] 267 312 ); 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 params305 */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 );481 313 482 314 … … 502 334 503 335 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 504 519 $this->add_control( 505 520 'pop_bgcolor', -
gum-elementor-addon/trunk/widgets/post_slider.php
r3152093 r3177635 272 272 [ 273 273 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 274 'type' => Controls_Manager::SELECT, 275 'default' => 'left', 274 'type' => Controls_Manager::CHOOSE, 276 275 '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 ], 279 284 ], 280 285 'condition' => [ 281 286 'show_readmore' => 'yes', 282 287 'readmore_icon[value]!' => '', 288 ], 289 'default' => 'row', 290 'selectors' => [ 291 '{{WRAPPER}} .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};' 283 292 ], 284 293 ] … … 1597 1606 ); 1598 1607 1608 1599 1609 $this->add_control( 1600 1610 'readmore_icon_indent', … … 1609 1619 'default' =>['value'=>5, 'unit'=>'px'], 1610 1620 '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}};' 1613 1624 ], 1614 1625 'condition' => ['readmore_icon[value]!' => ''], -
gum-elementor-addon/trunk/widgets/pricetable.php
r3152093 r3177635 523 523 ); 524 524 525 525 526 $this->add_control( 526 527 'icon_align', 527 528 [ 528 529 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 529 'type' => Controls_Manager::SELECT, 530 'default' => 'left', 530 'type' => Controls_Manager::CHOOSE, 531 531 '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 ], 534 540 ], 535 541 'condition' => [ … … 537 543 'show_button[value]' => 'yes' 538 544 ], 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]!' => ''], 539 569 ] 540 570 ); … … 1731 1761 ); 1732 1762 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 );1751 1763 1752 1764 $this->add_group_control( … … 2037 2049 'elementor-button-align-'.sanitize_html_class($button_align) 2038 2050 ] ); 2039 2040 2051 2041 2052 $this->add_render_attribute( 'button_text', 'class', 'elementor-button-text'); -
gum-elementor-addon/trunk/widgets/section.php
r2977861 r3177635 1839 1839 } 1840 1840 1841 1842 1843 1844 1841 new \Elementor\Gum_Elementor_Section_Widget(); 1845 1842 ?> -
gum-elementor-addon/trunk/widgets/slideshow.php
r3152093 r3177635 209 209 [ 210 210 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 211 'type' => Controls_Manager::SELECT, 212 'default' => 'left', 211 'type' => Controls_Manager::CHOOSE, 213 212 '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 ], 216 221 ], 217 222 'condition' => [ 218 223 'selected_icon[value]!' => '', 219 224 ], 220 ] 221 ); 225 'default' => 'row', 226 'selectors' => [ 227 '{{WRAPPER}} {{CURRENT_ITEM}} .primary-button .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};' 228 ], 229 ] 230 ); 231 222 232 223 233 $repeater->add_control( … … 269 279 [ 270 280 'label' => esc_html__( 'Icon Position', 'gum-elementor-addon' ), 271 'type' => Controls_Manager::SELECT, 272 'default' => 'left', 281 'type' => Controls_Manager::CHOOSE, 273 282 '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 ], 276 291 ], 277 292 'condition' => [ 278 293 'selected_r_icon[value]!' => '', 279 294 ], 280 ] 281 ); 295 'default' => 'row', 296 'selectors' => [ 297 '{{WRAPPER}} {{CURRENT_ITEM}} .secondary-button .elementor-button-content-wrapper' => 'flex-direction: {{VALUE}};' 298 ], 299 ] 300 ); 301 282 302 283 303 $repeater->add_control( … … 1127 1147 '{{WRAPPER}} .elementor-button.primary-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};', 1128 1148 '{{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}};', 1129 1150 ], 1130 1151 ] … … 1191 1212 '{{WRAPPER}} .elementor-button.secondary-button .elementor-align-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};', 1192 1213 '{{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}};', 1193 1215 ], 1194 1216 ] … … 1858 1880 $this->add_render_attribute( $slide_title_key , 'class', 'caption-heading' ); 1859 1881 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) ); 1861 1883 1862 1884 }
Note: See TracChangeset
for help on using the changeset viewer.