Plugin Directory

Changeset 3255643


Ignore:
Timestamp:
03/14/2025 12:10:45 AM (13 months ago)
Author:
celomitan
Message:

1.3.11

  • Security issue fixing
Location:
gum-elementor-addon
Files:
49 added
8 edited

Legend:

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

    r3233621 r3255643  
    929929          order: 1;
    930930}
     931
     932.elementor-widget-image-carousel.elementor-arrows-valign-top .elementor-swiper-button{ top: 0!important; }
     933.elementor-widget-image-carousel.elementor-arrows-valign-bottom .elementor-swiper-button{ bottom: 0; top: auto !important; }
  • gum-elementor-addon/trunk/gum-elementor-addon.php

    r3233621 r3255643  
    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.10
     7 * Version: 1.3.11
    88 * Author: TemeGUM
    99 * Author URI: http://themegum.com
     
    1414 * Requires at least: 3.7
    1515 * Tested up to: 6.6.2
    16  * Elementor tested up to: 3.26.5
     16 * Elementor tested up to: 3.27.6
    1717 */
    1818
  • gum-elementor-addon/trunk/readme.txt

    r3233632 r3255643  
    66Tested up to: 6.6.2
    77Requires PHP: 7.0
    8 Stable tag: 1.3.10
     8Stable tag: 1.3.11
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7171== Changelog ==
    7272
     73= 1.3.11 =
     74* Security issue fixing
     75
    7376= 1.3.10 =
    7477* Bug fix: counter text shadow backward compatibility
  • gum-elementor-addon/trunk/widgets/accordion.php

    r3233621 r3255643  
    1919        add_action( 'elementor/element/accordion/section_title/after_section_end', array( $this, 'register_tabtitle_icon_style_controls') , 999 );
    2020        add_action( 'elementor/element/before_section_start', array( $this, 'enqueue_script' ) );
     21
    2122        add_action( 'elementor/element/accordion/section_toggle_style_icon/after_section_end', array( $this, 'register_toggle_style_icon_controls') , 999 );
    2223        add_action( 'elementor/element/accordion/section_toggle_style_title/after_section_end', array( $this, 'register_toggle_style_title_controls') , 999 );
     
    294295    );
    295296
     297
     298    $element->add_control(
     299      'toggle_title_active_bdcolor',
     300      [
     301        'label' => esc_html__( 'Active Border Color', 'gum-elementor-addon' ),
     302        'type' => Controls_Manager::COLOR,
     303        'default' => '',
     304        'selectors' => [
     305          '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title.elementor-active' => 'border-color: {{VALUE}}!important;',
     306        ],
     307        'condition' => ['toggle_title_border_border!' => '']
     308      ]
     309    );   
     310
    296311    $element->end_injection();
    297312
     
    314329        'selectors' => [
    315330          '{{WRAPPER}} .elementor-tab-title:hover .elementor-accordion-icon i:before,{{WRAPPER}} .elementor-tab-title:hover .elementor-accordion-icon svg' => 'color: {{VALUE}}!important;fill: {{VALUE}}!important;',
     331        ],
     332      ]
     333    );
     334
     335
     336    $element->add_control(
     337      'icon_bgcolor',
     338      [
     339        'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
     340        'type' => Controls_Manager::COLOR,
     341        'selectors' => [
     342          '{{WRAPPER}} .elementor-tab-title .elementor-accordion-icon i,{{WRAPPER}} .elementor-tab-title .elementor-accordion-icon svg' => 'background: {{VALUE}}!important;',
     343        ],
     344      ]
     345    );
     346
     347
     348    $element->add_control(
     349      'icon_active_bgcolor',
     350      [
     351        'label' => esc_html__( 'Active Background', 'gum-elementor-addon' ),
     352        'type' => Controls_Manager::COLOR,
     353        'selectors' => [
     354          '{{WRAPPER}} .elementor-tab-title.elementor-active .elementor-accordion-icon i,{{WRAPPER}} .elementor-tab-title.elementor-active .elementor-accordion-icon svg' => 'background: {{VALUE}}!important;',
    316355        ],
    317356      ]
     
    346385        'range' => [
    347386          'px' => [
    348             'min' => -100,
    349             'max' => 100,
     387            'min' => -200,
     388            'max' => 200,
    350389          ],
    351390        ],
    352391        'selectors' => [
    353392          '{{WRAPPER}} .elementor-accordion-icon span' => 'margin-top: {{SIZE}}{{UNIT}};',
     393        ],
     394      ]
     395    );
     396
     397    $element->add_responsive_control(
     398      'icon_h_offset',
     399      [
     400        'label' => esc_html__( 'Horizontal Offset', 'gum-elementor-addon' ),
     401        'type' => Controls_Manager::SLIDER,
     402        'range' => [
     403          'px' => [
     404            'min' => -200,
     405            'max' => 200,
     406          ],
     407        ],
     408        'selectors' => [
     409          '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-left' => 'margin-left: {{SIZE}}{{UNIT}};',
     410          '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-right' => 'margin-right: {{SIZE}}{{UNIT}};',
    354411        ],
    355412      ]
     
    363420      ]
    364421    );
     422
     423
     424    $element->add_control(
     425      'toggle_icon_active_bdcolor',
     426      [
     427        'label' => esc_html__( 'Active Border Color', 'gum-elementor-addon' ),
     428        'type' => Controls_Manager::COLOR,
     429        'default' => '',
     430        'selectors' => [
     431          '{{WRAPPER}} .elementor-tab-title.elementor-active .elementor-accordion-icon span i' => 'border-color: {{VALUE}}!important;',
     432        ],
     433        'condition' => ['toggle_icon_border_border!' => '']
     434      ]
     435    );   
    365436
    366437
     
    498569              </span>
    499570            <?php endif; ?>
    500             <a class="elementor-accordion-title" href=""><?php esc_html_e($item['tab_title']);
     571            <a class="elementor-accordion-title" tabindex="0"><?php
     572
     573            print wp_kses_split($item['tab_title'],array('b'=>array(),'strong'=>array()), array());
    501574
    502575            $iconHTML = '';
  • gum-elementor-addon/trunk/widgets/carousel_ibox.php

    r3177635 r3255643  
    16441644
    16451645    $this->add_responsive_control(
    1646       'pagination_item_width',
    1647       [
    1648         'label' => esc_html__( 'Size Width', 'gum-elementor-addon' ),
     1646      'pagination_item_spacing',
     1647      [
     1648        'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ),
    16491649        'type' => Controls_Manager::SLIDER,
    16501650        'range' => [
     
    16561656        ],
    16571657        'default' => [
    1658           'size' => '12',
     1658          'size' => 7,
    16591659          'unit' => 'px'
    16601660        ],
    16611661        'selectors' => [
    1662           '{{WRAPPER}} .owl-dots .owl-dot span' => 'width: {{SIZE}}{{UNIT}};',
     1662          '{{WRAPPER}} .owl-dots .owl-dot span' => 'margin-left: calc({{SIZE}}{{UNIT}}/2);margin-right: calc({{SIZE}}{{UNIT}}/2);',
     1663          '{{WRAPPER}} .owl-custom-pagination .btn-owl.prev' => 'margin-right: calc({{SIZE}}{{UNIT}}/2);',
     1664          '{{WRAPPER}} .owl-custom-pagination .btn-owl.next' => 'margin-left: calc({{SIZE}}{{UNIT}}/2);',
    16631665        ],
    16641666        'condition' => [
    16651667          'pagination_align!' => 'stretch',
    1666         ],
     1668        ]
     1669      ]
     1670    );
     1671
     1672
     1673    $this->add_group_control(
     1674      Group_Control_Typography::get_type(),
     1675      [
     1676        'name' => 'typography_pagination',
     1677        'selector' => '{{WRAPPER}} .owl-custom-pagination .btn-owl',
     1678        'condition' => ['slide_navigation' => 'arrow','left_icon[value]' => '']
    16671679      ]
    16681680    );
    16691681
    16701682    $this->add_responsive_control(
    1671       'pagination_item_height',
    1672       [
    1673         'label' => esc_html__( 'Size Height', 'gum-elementor-addon' ),
     1683      'pagination_item_size',
     1684      [
     1685        'label' => esc_html__( 'Size', 'gum-elementor-addon' ),
     1686        'type' => Controls_Manager::SLIDER,
     1687        'range' => [
     1688          'px' => [
     1689            'min' => 0,
     1690            'max' => 1000,
     1691            'step'=> 1
     1692          ],
     1693          'em' => [
     1694            'min' => 0,
     1695            'max' => 100,
     1696            'step'=> 1
     1697          ],
     1698        ],
     1699        'default' => [ 'size' => '1.2','unit' => 'em'],
     1700        'size_units' => [ 'px' ,'em' ],
     1701        'selectors' => [
     1702          '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'font-size: {{SIZE}}{{UNIT}};',
     1703        ],
     1704        'condition' => ['slide_navigation' => 'arrow','left_icon[value]!' => '','right_icon[value]!' => '']
     1705      ]
     1706    );
     1707
     1708    $this->add_responsive_control(
     1709      'pagination_margin',
     1710      [
     1711          'label' => esc_html__( 'Margin', 'gum-elementor-addon' ),
     1712          'type' => Controls_Manager::DIMENSIONS,
     1713          'size_units' => [ 'px', 'em' ],
     1714          'selectors' => [
     1715              '{{WRAPPER}} .owl-custom-pagination,{{WRAPPER}} .owl-carousel .owl-dots' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1716          ],
     1717          'separator' =>'before',
     1718      ]
     1719    );
     1720
     1721    $this->add_responsive_control(
     1722      'pagination_padding',
     1723      [
     1724        'label' => esc_html__( 'Padding', 'gum-elementor-addon' ),
     1725        'type' => Controls_Manager::DIMENSIONS,
     1726        'size_units' => [ 'px', 'em', '%' ],
     1727        'selectors' => [
     1728          '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1729        ],
     1730        'condition' => ['slide_navigation' => 'arrow']
     1731      ]
     1732    );
     1733
     1734    $this->add_control(
     1735      'pagination_radius',
     1736      [
     1737        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     1738        'type' => Controls_Manager::DIMENSIONS,
     1739        'size_units' => [ 'px', '%' ],
     1740        'selectors' => [
     1741          '{{WRAPPER}} .owl-dots .owl-dot span,{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1742        ]
     1743      ]
     1744    );
     1745
     1746    $this->add_group_control(
     1747      Group_Control_Border::get_type(),
     1748      [
     1749        'name' => 'pagination_border',
     1750        'selector' => '{{WRAPPER}} .owl-dots .owl-dot span,{{WRAPPER}} .owl-custom-pagination .btn-owl',
     1751      ]
     1752    );
     1753
     1754
     1755    $this->start_controls_tabs( 'tabs_pagination_style' );
     1756
     1757    $this->start_controls_tab(
     1758      'tab_pagination_normal',
     1759      [
     1760        'label' => esc_html__( 'Normal', 'gum-elementor-addon' ),
     1761      ]
     1762    );
     1763
     1764    $this->add_control(
     1765      'pagination_item_color',
     1766      [
     1767        'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
     1768        'type' => Controls_Manager::COLOR,
     1769        'default' => '',
     1770        'selectors' => [
     1771          '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'color: {{VALUE}};',
     1772          '{{WRAPPER}} .owl-dots .owl-dot span' => 'background-color: {{VALUE}};',
     1773        ],
     1774      ]
     1775    );
     1776
     1777    $this->add_control(
     1778      'pagination_item_bgcolor',
     1779      [
     1780        'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
     1781        'type' => Controls_Manager::COLOR,
     1782        'default' => '',
     1783        'selectors' => [
     1784          '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'background-color: {{VALUE}};',
     1785        ],
     1786        'condition' => ['slide_navigation' => 'arrow']
     1787      ]
     1788    );
     1789
     1790
     1791    $this->add_responsive_control(
     1792      'pagination_item_width',
     1793      [
     1794        'label' => esc_html__( 'Width', 'gum-elementor-addon' ),
    16741795        'type' => Controls_Manager::SLIDER,
    16751796        'range' => [
     
    16851806        ],
    16861807        'selectors' => [
    1687           '{{WRAPPER}} .owl-dots .owl-dot span' => 'height: {{SIZE}}{{UNIT}};',
    1688         ],
    1689         'condition' => [
    1690           'pagination_align!' => 'stretch',
    1691         ]
     1808          '{{WRAPPER}} .owl-dots .owl-dot span' => 'width: {{SIZE}}{{UNIT}};',
     1809        ],
     1810        'condition' => [
     1811          'slide_navigation' => 'dot'
     1812        ],
    16921813      ]
    16931814    );
    16941815
    16951816    $this->add_responsive_control(
    1696       'pagination_item_spacing',
    1697       [
    1698         'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ),
     1817      'pagination_item_height',
     1818      [
     1819        'label' => esc_html__( 'Height', 'gum-elementor-addon' ),
    16991820        'type' => Controls_Manager::SLIDER,
    17001821        'range' => [
     
    17061827        ],
    17071828        'default' => [
    1708           'size' => 7,
     1829          'size' => '12',
    17091830          'unit' => 'px'
    17101831        ],
    17111832        'selectors' => [
    1712           '{{WRAPPER}} .owl-dots .owl-dot span' => 'margin-left: calc({{SIZE}}{{UNIT}}/2);margin-right: calc({{SIZE}}{{UNIT}}/2);',
    1713           '{{WRAPPER}} .owl-custom-pagination .btn-owl.prev' => 'margin-right: calc({{SIZE}}{{UNIT}}/2);',
    1714           '{{WRAPPER}} .owl-custom-pagination .btn-owl.next' => 'margin-left: calc({{SIZE}}{{UNIT}}/2);',
    1715         ],
    1716         'condition' => [
    1717           'pagination_align!' => 'stretch',
     1833          '{{WRAPPER}} .owl-dots .owl-dot span' => 'height: {{SIZE}}{{UNIT}};',
     1834        ],
     1835        'condition' => [
     1836          'slide_navigation' => 'dot'
    17181837        ]
    17191838      ]
    17201839    );
    17211840
    1722     $this->add_group_control(
    1723       Group_Control_Typography::get_type(),
    1724       [
    1725         'name' => 'typography_pagination',
    1726         'selector' => '{{WRAPPER}} .owl-custom-pagination .btn-owl',
    1727         'condition' => ['slide_navigation' => 'arrow','left_icon[value]' => '']
    1728       ]
    1729     );
     1841
     1842    $this->end_controls_tab();
     1843    $this->start_controls_tab(
     1844      'tab_pagination_current',
     1845      [
     1846        'label' => esc_html__( 'Current', 'gum-elementor-addon' ),
     1847        'condition' => ['slide_navigation' => 'dot']
     1848      ]
     1849    );
     1850
     1851    $this->add_control(
     1852      'pagination_curitem_color',
     1853      [
     1854        'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
     1855        'type' => Controls_Manager::COLOR,
     1856        'default' => '',
     1857        'selectors' => [
     1858          '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'background-color: {{VALUE}};',
     1859        ],
     1860      ]
     1861    );   
     1862
     1863    $this->add_control(
     1864      'pagination_curitem_bdcolor',
     1865      [
     1866        'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
     1867        'type' => Controls_Manager::COLOR,
     1868        'default' => '',
     1869        'selectors' => [
     1870          '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'border-color: {{VALUE}};',
     1871        ],
     1872        'condition' => ['pagination_border_border!' => '']
     1873      ]
     1874    );   
     1875
    17301876
    17311877    $this->add_responsive_control(
    1732       'pagination_item_size',
    1733       [
    1734         'label' => esc_html__( 'Size', 'gum-elementor-addon' ),
     1878      'pagination_curite_width',
     1879      [
     1880        'label' => esc_html__( 'Width', 'gum-elementor-addon' ),
    17351881        'type' => Controls_Manager::SLIDER,
    17361882        'range' => [
    17371883          'px' => [
    17381884            'min' => 0,
    1739             'max' => 1000,
     1885            'max' => 200,
    17401886            'step'=> 1
    17411887          ],
    1742           'em' => [
     1888        ],
     1889        'default' => [
     1890          'size' => '',
     1891          'unit' => 'px'
     1892        ],
     1893        'selectors' => [
     1894          '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'width: {{SIZE}}{{UNIT}};',
     1895        ],
     1896        'condition' => [
     1897          'slide_navigation' => 'dot'
     1898        ]
     1899      ]
     1900    );
     1901   
     1902
     1903    $this->add_responsive_control(
     1904      'pagination_curitem_height',
     1905      [
     1906        'label' => esc_html__( 'Height', 'gum-elementor-addon' ),
     1907        'type' => Controls_Manager::SLIDER,
     1908        'range' => [
     1909          'px' => [
    17431910            'min' => 0,
    1744             'max' => 100,
     1911            'max' => 200,
    17451912            'step'=> 1
    17461913          ],
    17471914        ],
    1748         'default' => [ 'size' => '1.2','unit' => 'em'],
    1749         'size_units' => [ 'px' ,'em' ],
    1750         'selectors' => [
    1751           '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'font-size: {{SIZE}}{{UNIT}};',
    1752         ],
    1753         'condition' => ['slide_navigation' => 'arrow','left_icon[value]!' => '','right_icon[value]!' => '']
    1754       ]
    1755     );
    1756 
    1757     $this->add_responsive_control(
    1758       'pagination_margin',
    1759       [
    1760           'label' => esc_html__( 'Margin', 'gum-elementor-addon' ),
    1761           'type' => Controls_Manager::DIMENSIONS,
    1762           'size_units' => [ 'px', 'em' ],
    1763           'selectors' => [
    1764               '{{WRAPPER}} .owl-custom-pagination,{{WRAPPER}} .owl-carousel .owl-dots' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    1765           ],
    1766           'separator' =>'before',
    1767       ]
    1768     );
    1769 
    1770     $this->add_responsive_control(
    1771       'pagination_padding',
    1772       [
    1773         'label' => esc_html__( 'Padding', 'gum-elementor-addon' ),
    1774         'type' => Controls_Manager::DIMENSIONS,
    1775         'size_units' => [ 'px', 'em', '%' ],
    1776         'selectors' => [
    1777           '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    1778         ],
    1779         'condition' => ['slide_navigation' => 'arrow']
    1780       ]
    1781     );
    1782 
    1783     $this->add_control(
    1784       'pagination_radius',
    1785       [
    1786         'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
    1787         'type' => Controls_Manager::DIMENSIONS,
    1788         'size_units' => [ 'px', '%' ],
    1789         'selectors' => [
    1790           '{{WRAPPER}} .owl-dots .owl-dot span,{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1915        'default' => [
     1916          'size' => '',
     1917          'unit' => 'px'
     1918        ],
     1919        'selectors' => [
     1920          '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'height: {{SIZE}}{{UNIT}};',
     1921        ],
     1922        'condition' => [
     1923          'slide_navigation' => 'dot'
    17911924        ]
    17921925      ]
    17931926    );
    1794 
    1795     $this->add_group_control(
    1796       Group_Control_Border::get_type(),
    1797       [
    1798         'name' => 'pagination_border',
    1799         'selector' => '{{WRAPPER}} .owl-dots .owl-dot span,{{WRAPPER}} .owl-custom-pagination .btn-owl',
    1800       ]
    1801     );
    1802 
    1803 
    1804     $this->start_controls_tabs( 'tabs_pagination_style' );
    1805 
    1806     $this->start_controls_tab(
    1807       'tab_pagination_normal',
    1808       [
    1809         'label' => esc_html__( 'Normal', 'gum-elementor-addon' ),
    1810       ]
    1811     );
    1812 
    1813     $this->add_control(
    1814       'pagination_item_color',
    1815       [
    1816         'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
    1817         'type' => Controls_Manager::COLOR,
    1818         'default' => '',
    1819         'selectors' => [
    1820           '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'color: {{VALUE}};',
    1821           '{{WRAPPER}} .owl-dots .owl-dot span' => 'background-color: {{VALUE}};',
    1822         ],
    1823       ]
    1824     );
    1825 
    1826     $this->add_control(
    1827       'pagination_item_bgcolor',
    1828       [
    1829         'label' => esc_html__( 'Background', 'gum-elementor-addon' ),
    1830         'type' => Controls_Manager::COLOR,
    1831         'default' => '',
    1832         'selectors' => [
    1833           '{{WRAPPER}} .owl-custom-pagination .btn-owl' => 'background-color: {{VALUE}};',
    1834         ],
    1835         'condition' => ['slide_navigation' => 'arrow']
    1836       ]
    1837     );
    1838 
    1839     $this->end_controls_tab();
    1840     $this->start_controls_tab(
    1841       'tab_pagination_current',
    1842       [
    1843         'label' => esc_html__( 'Current', 'gum-elementor-addon' ),
    1844         'condition' => ['slide_navigation' => 'dot']
    1845       ]
    1846     );
    1847 
    1848     $this->add_control(
    1849       'pagination_curitem_color',
    1850       [
    1851         'label' => esc_html__( 'Color', 'gum-elementor-addon' ),
    1852         'type' => Controls_Manager::COLOR,
    1853         'default' => '',
    1854         'selectors' => [
    1855           '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'background-color: {{VALUE}};',
    1856         ],
    1857       ]
    1858     );   
    1859 
    1860     $this->add_control(
    1861       'pagination_curitem_bdcolor',
    1862       [
    1863         'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
    1864         'type' => Controls_Manager::COLOR,
    1865         'default' => '',
    1866         'selectors' => [
    1867           '{{WRAPPER}} .owl-dots .owl-dot.active span' => 'border-color: {{VALUE}};',
    1868         ],
    1869         'condition' => ['pagination_border_border!' => '']
    1870       ]
    1871     );   
    18721927
    18731928    $this->end_controls_tab();
     
    35653620\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Gum_Elementor_Widget_imagebox() );
    35663621
     3622
     3623class Gum_Elementor_Widget_Image_Carousel{
     3624
     3625
     3626  public function __construct( $data = [], $args = null ) {
     3627
     3628      add_action( 'elementor/element/image-carousel/section_style_navigation/after_section_end', array( $this, 'register_section_heading_style_dots_controls') , 999 );
     3629
     3630  }
     3631
     3632  public function register_section_heading_style_dots_controls( Controls_Stack $element ) {
     3633
     3634    $element->remove_control('dots_color');
     3635
     3636    $element->start_injection( [
     3637      'of' => 'arrows_position',
     3638    ] );
     3639
     3640    $element->add_control(
     3641      'arrows_valign',
     3642      [
     3643        'label' => esc_html__( 'Position', 'elementor' ),
     3644        'type' => Controls_Manager::CHOOSE,
     3645        'options' => [
     3646          'top' => [
     3647            'title' => esc_html__( 'Start', 'elementor' ),
     3648            'icon' => 'eicon-v-align-top',
     3649          ],
     3650          'center' => [
     3651            'title' => esc_html__( 'Center', 'elementor' ),
     3652            'icon' => 'eicon-v-align-middle',
     3653          ],
     3654          'bottom' => [
     3655            'title' => esc_html__( 'End', 'elementor' ),
     3656            'icon' => 'eicon-v-align-bottom',
     3657          ],
     3658        ],
     3659        'condition' => [
     3660          'navigation' => [ 'arrows', 'both' ],
     3661        ],
     3662        'prefix_class' => 'elementor-arrows-valign-',
     3663      ]
     3664    );
     3665
     3666
     3667    $element->add_responsive_control(
     3668      'arrows_offset',
     3669      [
     3670        'label' => esc_html__( 'Location', 'elementor' ),
     3671        'type' => Controls_Manager::SLIDER,
     3672        'size_units' => [ 'px', 'em', '%' ],
     3673        'range' => [
     3674          'px' => [
     3675            'max' => 600,
     3676          ],
     3677        ],
     3678        'selectors' => [
     3679          '{{WRAPPER}} .elementor-swiper-button.elementor-swiper-button-prev'=> 'left:{{SIZE}}{{UNIT}};',
     3680          '{{WRAPPER}} .elementor-swiper-button.elementor-swiper-button-next' => 'right: {{SIZE}}{{UNIT}};',
     3681        ],
     3682        'condition' => [
     3683          'navigation' => [ 'arrows', 'both' ],
     3684        ],
     3685      ]
     3686    );
     3687
     3688
     3689    $element->end_injection();
     3690
     3691
     3692    $element->start_injection( [
     3693      'of' => 'arrows_color',
     3694    ] );
     3695
     3696
     3697    $element->add_control(
     3698      'arrows_hcolor',
     3699      [
     3700        'label' => esc_html__( 'Color Hover', 'elementor' ),
     3701        'type' => Controls_Manager::COLOR,
     3702        'selectors' => [
     3703          '{{WRAPPER}} .elementor-swiper-button:hover' => 'color: {{VALUE}};',
     3704          '{{WRAPPER}} .elementor-swiper-button:hover svg' => 'fill: {{VALUE}};',
     3705        ],
     3706        'condition' => [
     3707          'navigation' => [ 'arrows', 'both' ],
     3708        ],
     3709      ]
     3710    );
     3711
     3712
     3713    $element->add_control(
     3714      'arrows_bgcolor',
     3715      [
     3716        'label' => esc_html__( 'Background', 'elementor' ),
     3717        'type' => Controls_Manager::COLOR,
     3718        'selectors' => [
     3719          '{{WRAPPER}} .elementor-swiper-button' => 'background: {{VALUE}};'
     3720        ],
     3721        'condition' => [
     3722          'navigation' => [ 'arrows', 'both' ],
     3723        ],
     3724      ]
     3725    );
     3726
     3727    $element->add_control(
     3728      'arrows_hover_bgcolor',
     3729      [
     3730        'label' => esc_html__( 'Background Hover', 'elementor' ),
     3731        'type' => Controls_Manager::COLOR,
     3732        'selectors' => [
     3733          '{{WRAPPER}} .elementor-swiper-button:hover' => 'background: {{VALUE}};'
     3734        ],
     3735        'condition' => [
     3736          'navigation' => [ 'arrows', 'both' ],
     3737        ],
     3738      ]
     3739    );
     3740
     3741    $element->add_group_control(
     3742      Group_Control_Border::get_type(),
     3743      [
     3744        'name' => 'arrows_border',
     3745        'selector' => '{{WRAPPER}} .elementor-swiper-button',
     3746        'condition' => [
     3747          'navigation' => array('arrows', 'both'),
     3748        ],
     3749      ]
     3750    );
     3751
     3752    $element->add_control(
     3753      'arrows_curitem_bdcolor',
     3754      [
     3755        'label' => esc_html__( 'Border Color Hover', 'gum-elementor-addon' ),
     3756        'type' => Controls_Manager::COLOR,
     3757        'default' => '',
     3758        'selectors' => [
     3759          '{{WRAPPER}} .elementor-swiper-button:hover' => 'border-color: {{VALUE}};',
     3760        ],
     3761        'condition' => ['navigation' => array('arrows', 'both'),'arrows_border_border!' => '']
     3762      ]
     3763    );   
     3764
     3765    $element->add_control(
     3766      'arrows_radius',
     3767      [
     3768        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     3769        'type' => Controls_Manager::DIMENSIONS,
     3770        'size_units' => [ 'px', '%' ],
     3771        'selectors' => [
     3772          '{{WRAPPER}} .elementor-swiper-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     3773        ],
     3774        'condition' => [
     3775          'navigation' => array('arrows', 'both'),
     3776        ],
     3777
     3778      ]
     3779    );
     3780
     3781
     3782    $element->add_responsive_control(
     3783      'arrows_padding',
     3784      [
     3785          'label' => esc_html__( 'Padding', 'gum-elementor-addon' ),
     3786          'type' => Controls_Manager::DIMENSIONS,
     3787          'size_units' => [ 'px', '%', 'em' ],
     3788          'selectors' => [
     3789              '{{WRAPPER}} .elementor-swiper-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     3790          ],
     3791      ]
     3792    );
     3793
     3794
     3795    $element->end_injection();
     3796
     3797
     3798    $element->start_injection( [
     3799      'of' => 'dots_position',
     3800    ] );
     3801
     3802    $element->add_responsive_control(
     3803      'dots_align',
     3804      [
     3805        'label' => esc_html__( 'Align', 'gum-elementor-addon' ),
     3806        'type' => Controls_Manager::CHOOSE,
     3807        'options' => [
     3808          'left' => [
     3809            'title' => esc_html__( 'Left', 'gum-elementor-addon' ),
     3810            'icon' => 'eicon-h-align-left',
     3811          ],
     3812          'center' => [
     3813            'title' => esc_html__( 'Center', 'gum-elementor-addon' ),
     3814            'icon' => 'eicon-h-align-center',
     3815          ],
     3816          'right' => [
     3817            'title' => esc_html__( 'Right', 'gum-elementor-addon' ),
     3818            'icon' => 'eicon-h-align-right',
     3819          ],
     3820        ],
     3821        'default' => '',
     3822        'selectors' => [
     3823            '{{WRAPPER}} .swiper-pagination' => 'text-align: {{VALUE}};',
     3824        ],
     3825        'condition' => ['navigation' => array('dots', 'both')]
     3826      ]
     3827    );
     3828
     3829
     3830    $element->end_injection();
     3831
     3832    $element->start_injection( [
     3833      'of' => 'dots_gap',
     3834        'condition' => [
     3835          'navigation' => array('dots', 'both'),
     3836        ],
     3837    ] );
     3838
     3839
     3840    $element->add_group_control(
     3841      Group_Control_Border::get_type(),
     3842      [
     3843        'name' => 'dots_border',
     3844        'selector' => '{{WRAPPER}} .swiper-pagination-bullet',
     3845        'condition' => [
     3846          'navigation' => array('dots', 'both'),
     3847        ],
     3848      ]
     3849    );
     3850
     3851
     3852    $element->add_control(
     3853      'dots_radius',
     3854      [
     3855        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     3856        'type' => Controls_Manager::DIMENSIONS,
     3857        'size_units' => [ 'px', '%' ],
     3858        'selectors' => [
     3859          '{{WRAPPER}} .swiper-pagination-bullet' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     3860        ],
     3861        'condition' => [
     3862          'navigation' => array('dots', 'both'),
     3863        ],
     3864
     3865      ]
     3866    );
     3867
     3868    $element->add_responsive_control(
     3869      'dots_hight',
     3870      [
     3871        'label' => esc_html__( 'Height', 'elementor' ),
     3872        'type' => Controls_Manager::SLIDER,
     3873        'size_units' => [ 'px', 'em', 'rem', 'custom' ],
     3874        'range' => [
     3875          'px' => [
     3876            'max' => 200,
     3877          ],
     3878        ],
     3879        'selectors' => [
     3880          '{{WRAPPER}} .swiper-pagination-bullet' => 'height: {{SIZE}}{{UNIT}};',
     3881        ],
     3882        'condition' => [
     3883          'navigation' => array('dots', 'both'),
     3884        ],
     3885      ]
     3886    );
     3887
     3888    $element->end_injection();
     3889
     3890
     3891    $element->update_responsive_control(
     3892      'dots_size',
     3893      [
     3894        'label' => esc_html__( 'Width', 'elementor' ),
     3895        'type' => Controls_Manager::SLIDER,
     3896        'size_units' => [ 'px', 'em', 'rem', 'custom' ],
     3897        'range' => [
     3898          'px' => [
     3899            'max' => 200,
     3900          ],
     3901        ],
     3902        'selectors' => [
     3903          '{{WRAPPER}} .swiper-pagination-bullet' => 'width: {{SIZE}}{{UNIT}};',
     3904        ],
     3905        'condition' => [
     3906          'navigation' => array('dots', 'both'),
     3907        ],
     3908      ]
     3909    );
     3910
     3911
     3912    $element->start_injection( [
     3913      'of' => 'dots_inactive_color',
     3914    ] );
     3915
     3916
     3917    $element->start_controls_tabs( 'tabs_pagination_style' );
     3918
     3919    $element->start_controls_tab(
     3920      'tab_dots_active',
     3921      [
     3922        'label' => esc_html__( 'Active', 'gum-elementor-addon' ),
     3923      ]
     3924    );
     3925
     3926
     3927    $element->add_responsive_control(
     3928      'dots_active_hight',
     3929      [
     3930        'label' => esc_html__( 'Height', 'elementor' ),
     3931        'type' => Controls_Manager::SLIDER,
     3932        'size_units' => [ 'px', 'em', 'rem', 'custom' ],
     3933        'range' => [
     3934          'px' => [
     3935            'max' => 200,
     3936          ],
     3937        ],
     3938        'selectors' => [
     3939          '{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active' => 'height: {{SIZE}}{{UNIT}};',
     3940        ],
     3941        'condition' => [
     3942          'navigation' => array('dots', 'both'),
     3943        ],
     3944      ]
     3945    );
     3946
     3947
     3948    $element->add_responsive_control(
     3949      'dots_active_size',
     3950      [
     3951        'label' => esc_html__( 'Width', 'elementor' ),
     3952        'type' => Controls_Manager::SLIDER,
     3953        'size_units' => [ 'px', 'em', 'rem', 'custom' ],
     3954        'range' => [
     3955          'px' => [
     3956            'max' => 200,
     3957          ],
     3958        ],
     3959        'selectors' => [
     3960          '{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active' => 'width: {{SIZE}}{{UNIT}};',
     3961        ],
     3962        'condition' => [
     3963          'navigation' => array('dots', 'both'),
     3964        ],
     3965      ]
     3966    );
     3967
     3968
     3969    $element->add_control(
     3970      'dots_active_color',
     3971      [
     3972        'label' => esc_html__( 'Color', 'elementor' ),
     3973        'type' => Controls_Manager::COLOR,
     3974        'selectors' => [
     3975          '{{WRAPPER}} .swiper-pagination-bullet' => 'background: {{VALUE}}; opacity: 1',
     3976        ],
     3977        'condition' => [
     3978          'navigation' => [ 'dots', 'both' ],
     3979        ],
     3980      ]
     3981    );
     3982
     3983
     3984    $element->add_control(
     3985      'dots_curitem_bdcolor',
     3986      [
     3987        'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
     3988        'type' => Controls_Manager::COLOR,
     3989        'default' => '',
     3990        'selectors' => [
     3991          '{{WRAPPER}} .swiper-pagination-bullet.swiper-pagination-bullet-active' => 'border-color: {{VALUE}};',
     3992        ],
     3993        'condition' => ['navigation' => array('dots', 'both'),'dots_border_border!' => '']
     3994      ]
     3995    );   
     3996
     3997    $element->end_controls_tab();
     3998
     3999    $element->start_controls_tab(
     4000      'tab_dots_hover',
     4001      [
     4002        'label' => esc_html__( 'Hover', 'gum-elementor-addon' ),
     4003      ]
     4004    );
     4005
     4006
     4007    $element->add_control(
     4008      'dots_hover_color',
     4009      [
     4010        'label' => esc_html__( 'Color', 'elementor' ),
     4011        'type' => Controls_Manager::COLOR,
     4012        'selectors' => [
     4013          '{{WRAPPER}} .swiper-pagination-bullet:hover' => 'background: {{VALUE}}; opacity: 1',
     4014        ],
     4015        'condition' => [
     4016          'navigation' => [ 'dots', 'both' ],
     4017        ],
     4018      ]
     4019    );
     4020
     4021
     4022    $element->add_control(
     4023      'dots_hover_bdcolor',
     4024      [
     4025        'label' => esc_html__( 'Border Color', 'gum-elementor-addon' ),
     4026        'type' => Controls_Manager::COLOR,
     4027        'default' => '',
     4028        'selectors' => [
     4029          '{{WRAPPER}} .swiper-pagination-bullet:hover' => 'border-color: {{VALUE}};',
     4030        ],
     4031        'condition' => ['navigation' => array('dots', 'both'),'dots_border_border!' => '']
     4032      ]
     4033    );   
     4034
     4035    $element->end_controls_tab();
     4036    $element->end_controls_tabs();
     4037
     4038    $element->end_injection();
     4039
     4040
     4041  }
     4042
     4043
     4044  public function enqueue_script( ) {
     4045
     4046    wp_enqueue_style( 'gum-elementor-addon',GUM_ELEMENTOR_URL."css/style.css",array());
     4047
     4048  }
     4049
     4050}
     4051
     4052new \Elementor\Gum_Elementor_Widget_Image_Carousel();
    35674053?>
  • gum-elementor-addon/trunk/widgets/popover_btn.php

    r3177635 r3255643  
    737737    $button_html .= '<span '.$this->get_render_attribute_string( 'button_text' ).'>'.esc_html($button_text).'</span>';
    738738
     739    $pop_title = $this->sanitize_output($pop_title);
     740    $pop_text = $this->sanitize_output($pop_text);
     741
    739742    ?>
    740743    <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>><a <?php echo $this->get_render_attribute_string( 'button' ); ?> data-pop="<?php esc_attr_e($pop_title);?>" data-pop-text="<?php esc_attr_e($pop_text);?>" data-pop-align="<?php esc_attr_e($pop_align);?>"><span class="elementor-button-content-wrapper"><?php print $button_icon.$button_html; ?></span></a>
     
    744747  }
    745748
     749  protected function sanitize_output($content) {
     750
     751
     752    $allowed_html = array('b'=>array(),'strong'=>array());
     753    $allowed_protocols = array();
     754
     755    return wp_kses_split($content,$allowed_html, $allowed_protocols);
     756  }
     757
    746758  public function enqueue_script( ) {
    747759
  • gum-elementor-addon/trunk/widgets/post_slider.php

    r3177635 r3255643  
    9191   */
    9292  public function get_icon() {
    93     return 'fas fa-xs fa-newspaper';
     93    return 'fas fa-newspaper eicon-post-slider';
    9494  }
    9595
  • gum-elementor-addon/trunk/widgets/progress.php

    r3233621 r3255643  
    1818
    1919        add_action( 'elementor/element/progress/section_progress_style/after_section_end', array( $this, 'register_section_progress_style_controls') , 999 );
    20 
    2120        add_action( 'elementor/element/progress/section_title/after_section_end', array( $this, 'register_section_title_controls') , 999 );
    22 
    2321        add_action( 'elementor/element/before_section_start', [ $this, 'enqueue_script' ] );
    2422  }
Note: See TracChangeset for help on using the changeset viewer.