Changeset 3255643
- Timestamp:
- 03/14/2025 12:10:45 AM (13 months ago)
- Location:
- gum-elementor-addon
- Files:
-
- 49 added
- 8 edited
-
tags/1.3.11 (added)
-
tags/1.3.11/css (added)
-
tags/1.3.11/css/index.html (added)
-
tags/1.3.11/css/owl.carousel.css (added)
-
tags/1.3.11/css/placeholder.jpg (added)
-
tags/1.3.11/css/style.css (added)
-
tags/1.3.11/gum-elementor-addon.php (added)
-
tags/1.3.11/helper.php (added)
-
tags/1.3.11/index.html (added)
-
tags/1.3.11/js (added)
-
tags/1.3.11/js/allscripts.js (added)
-
tags/1.3.11/js/index.html (added)
-
tags/1.3.11/js/jquery.easing.1.3.js (added)
-
tags/1.3.11/js/jquery.superslides.js (added)
-
tags/1.3.11/js/owl.carousel.min.js (added)
-
tags/1.3.11/js/price-table.js (added)
-
tags/1.3.11/languages (added)
-
tags/1.3.11/languages/gum-elementor-addon.pot (added)
-
tags/1.3.11/languages/index.html (added)
-
tags/1.3.11/readme.txt (added)
-
tags/1.3.11/widgets (added)
-
tags/1.3.11/widgets/accordion.php (added)
-
tags/1.3.11/widgets/blog_grid.php (added)
-
tags/1.3.11/widgets/blog_image.php (added)
-
tags/1.3.11/widgets/blog_lists.php (added)
-
tags/1.3.11/widgets/blog_pagination.php (added)
-
tags/1.3.11/widgets/blog_post_adjacent.php (added)
-
tags/1.3.11/widgets/blog_post_meta.php (added)
-
tags/1.3.11/widgets/blog_post_related.php (added)
-
tags/1.3.11/widgets/blog_post_share.php (added)
-
tags/1.3.11/widgets/blog_term.php (added)
-
tags/1.3.11/widgets/button.php (added)
-
tags/1.3.11/widgets/carousel_ibox.php (added)
-
tags/1.3.11/widgets/circle_bar.php (added)
-
tags/1.3.11/widgets/counter.php (added)
-
tags/1.3.11/widgets/heading.php (added)
-
tags/1.3.11/widgets/icon_list.php (added)
-
tags/1.3.11/widgets/image_box.php (added)
-
tags/1.3.11/widgets/index.html (added)
-
tags/1.3.11/widgets/popover_btn.php (added)
-
tags/1.3.11/widgets/post_slider.php (added)
-
tags/1.3.11/widgets/pricetable.php (added)
-
tags/1.3.11/widgets/progress.php (added)
-
tags/1.3.11/widgets/section.php (added)
-
tags/1.3.11/widgets/site_navigation.php (added)
-
tags/1.3.11/widgets/slideshow.php (added)
-
tags/1.3.11/widgets/toggle_period.php (added)
-
tags/1.3.11/widgets/totop_btn.php (added)
-
trunk/css/style.css (modified) (1 diff)
-
trunk/gum-elementor-addon.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets/accordion.php (modified) (6 diffs)
-
trunk/widgets/carousel_ibox.php (modified) (5 diffs)
-
trunk/widgets/circle_bar.php (added)
-
trunk/widgets/popover_btn.php (modified) (2 diffs)
-
trunk/widgets/post_slider.php (modified) (1 diff)
-
trunk/widgets/progress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gum-elementor-addon/trunk/css/style.css
r3233621 r3255643 929 929 order: 1; 930 930 } 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 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.1 07 * Version: 1.3.11 8 8 * Author: TemeGUM 9 9 * Author URI: http://themegum.com … … 14 14 * Requires at least: 3.7 15 15 * Tested up to: 6.6.2 16 * Elementor tested up to: 3.2 6.516 * Elementor tested up to: 3.27.6 17 17 */ 18 18 -
gum-elementor-addon/trunk/readme.txt
r3233632 r3255643 6 6 Tested up to: 6.6.2 7 7 Requires PHP: 7.0 8 Stable tag: 1.3.1 08 Stable tag: 1.3.11 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.11 = 74 * Security issue fixing 75 73 76 = 1.3.10 = 74 77 * Bug fix: counter text shadow backward compatibility -
gum-elementor-addon/trunk/widgets/accordion.php
r3233621 r3255643 19 19 add_action( 'elementor/element/accordion/section_title/after_section_end', array( $this, 'register_tabtitle_icon_style_controls') , 999 ); 20 20 add_action( 'elementor/element/before_section_start', array( $this, 'enqueue_script' ) ); 21 21 22 add_action( 'elementor/element/accordion/section_toggle_style_icon/after_section_end', array( $this, 'register_toggle_style_icon_controls') , 999 ); 22 23 add_action( 'elementor/element/accordion/section_toggle_style_title/after_section_end', array( $this, 'register_toggle_style_title_controls') , 999 ); … … 294 295 ); 295 296 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 296 311 $element->end_injection(); 297 312 … … 314 329 'selectors' => [ 315 330 '{{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;', 316 355 ], 317 356 ] … … 346 385 'range' => [ 347 386 'px' => [ 348 'min' => - 100,349 'max' => 100,387 'min' => -200, 388 'max' => 200, 350 389 ], 351 390 ], 352 391 'selectors' => [ 353 392 '{{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}};', 354 411 ], 355 412 ] … … 363 420 ] 364 421 ); 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 ); 365 436 366 437 … … 498 569 </span> 499 570 <?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()); 501 574 502 575 $iconHTML = ''; -
gum-elementor-addon/trunk/widgets/carousel_ibox.php
r3177635 r3255643 1644 1644 1645 1645 $this->add_responsive_control( 1646 'pagination_item_ width',1647 [ 1648 'label' => esc_html__( 'S ize Width', 'gum-elementor-addon' ),1646 'pagination_item_spacing', 1647 [ 1648 'label' => esc_html__( 'Spacing', 'gum-elementor-addon' ), 1649 1649 'type' => Controls_Manager::SLIDER, 1650 1650 'range' => [ … … 1656 1656 ], 1657 1657 'default' => [ 1658 'size' => '12',1658 'size' => 7, 1659 1659 'unit' => 'px' 1660 1660 ], 1661 1661 '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);', 1663 1665 ], 1664 1666 'condition' => [ 1665 1667 '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]' => ''] 1667 1679 ] 1668 1680 ); 1669 1681 1670 1682 $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' ), 1674 1795 'type' => Controls_Manager::SLIDER, 1675 1796 'range' => [ … … 1685 1806 ], 1686 1807 '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 ], 1692 1813 ] 1693 1814 ); 1694 1815 1695 1816 $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' ), 1699 1820 'type' => Controls_Manager::SLIDER, 1700 1821 'range' => [ … … 1706 1827 ], 1707 1828 'default' => [ 1708 'size' => 7,1829 'size' => '12', 1709 1830 'unit' => 'px' 1710 1831 ], 1711 1832 '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' 1718 1837 ] 1719 1838 ] 1720 1839 ); 1721 1840 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 1730 1876 1731 1877 $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' ), 1735 1881 'type' => Controls_Manager::SLIDER, 1736 1882 'range' => [ 1737 1883 'px' => [ 1738 1884 'min' => 0, 1739 'max' => 1000,1885 'max' => 200, 1740 1886 'step'=> 1 1741 1887 ], 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' => [ 1743 1910 'min' => 0, 1744 'max' => 100,1911 'max' => 200, 1745 1912 'step'=> 1 1746 1913 ], 1747 1914 ], 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' 1791 1924 ] 1792 1925 ] 1793 1926 ); 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 );1872 1927 1873 1928 $this->end_controls_tab(); … … 3565 3620 \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Gum_Elementor_Widget_imagebox() ); 3566 3621 3622 3623 class 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 4052 new \Elementor\Gum_Elementor_Widget_Image_Carousel(); 3567 4053 ?> -
gum-elementor-addon/trunk/widgets/popover_btn.php
r3177635 r3255643 737 737 $button_html .= '<span '.$this->get_render_attribute_string( 'button_text' ).'>'.esc_html($button_text).'</span>'; 738 738 739 $pop_title = $this->sanitize_output($pop_title); 740 $pop_text = $this->sanitize_output($pop_text); 741 739 742 ?> 740 743 <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> … … 744 747 } 745 748 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 746 758 public function enqueue_script( ) { 747 759 -
gum-elementor-addon/trunk/widgets/post_slider.php
r3177635 r3255643 91 91 */ 92 92 public function get_icon() { 93 return 'fas fa- xs fa-newspaper';93 return 'fas fa-newspaper eicon-post-slider'; 94 94 } 95 95 -
gum-elementor-addon/trunk/widgets/progress.php
r3233621 r3255643 18 18 19 19 add_action( 'elementor/element/progress/section_progress_style/after_section_end', array( $this, 'register_section_progress_style_controls') , 999 ); 20 21 20 add_action( 'elementor/element/progress/section_title/after_section_end', array( $this, 'register_section_title_controls') , 999 ); 22 23 21 add_action( 'elementor/element/before_section_start', [ $this, 'enqueue_script' ] ); 24 22 }
Note: See TracChangeset
for help on using the changeset viewer.