Version Description
- (Make sure to clear cache nad hrad refresh the page after update)
- Tooltip option added to Pricing Table widget
- Testimonial element improved with more layout options
- Flip Box element improved with more options
- Countdown element improved
- Post queries optimized for all post elements
- Few minor bugfix and improvements
Download this release
Release Info
Developer | re_enter_rupok |
Plugin | Elementor Essential Addons |
Version | 2.7.6 |
Comparing to | |
See all releases |
Code changes from version 2.7.5 to 2.7.6
- assets/css/essential-addons-elementor.css +476 -237
- assets/css/tooltipster.bundle.min.css +20 -0
- assets/js/eael-scripts.js +62 -35
- assets/js/load-more.js +0 -0
- assets/js/tooltipster.bundle.min.js +2 -0
- elements/content-ticker/content-ticker.php +0 -0
- elements/countdown/countdown.php +143 -64
- elements/data-table/data-table.php +0 -0
- elements/flipbox/flipbox.php +0 -0
- elements/infobox/infobox.php +45 -7
- elements/post-grid/post-grid.php +0 -0
- elements/post-timeline/post-timeline.php +0 -0
- elements/pricing-table/pricing-table.php +471 -28
- elements/testimonials/testimonials.php +311 -101
- essential_adons_elementor.php +6 -1
- includes/elementor-helper.php +116 -117
- includes/queries.php +15 -15
- readme.txt +14 -4
assets/css/essential-addons-elementor.css
CHANGED
@@ -310,6 +310,8 @@
|
|
310 |
-webkit-transform: translate3d(0, 100%, 0);
|
311 |
transform: translate3d(0, 100%, 0);
|
312 |
}
|
|
|
|
|
313 |
/**
|
314 |
* Countdown Styles
|
315 |
*/
|
@@ -770,178 +772,347 @@
|
|
770 |
.eael-team-member-social-link>a:focus {
|
771 |
outline: none;
|
772 |
}
|
|
|
|
|
773 |
/* Testimonials Styles */
|
774 |
|
775 |
.eael-testimonial-slider {
|
776 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
777 |
}
|
778 |
-
/* Default styles */
|
779 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
780 |
.eael-testimonial-image img {
|
781 |
-
|
782 |
}
|
|
|
783 |
.eael-testimonial-image {
|
784 |
-
|
785 |
}
|
786 |
-
|
787 |
-
|
788 |
-
|
|
|
789 |
}
|
|
|
790 |
.testimonial-avatar-rounded figure img {
|
791 |
-
|
792 |
-
|
793 |
}
|
|
|
794 |
.eael-testimonial-content {
|
795 |
-
|
796 |
-
|
797 |
}
|
798 |
-
|
799 |
-
|
800 |
-
|
|
|
801 |
}
|
|
|
802 |
.eael-testimonial-item .center-text {
|
803 |
-
|
804 |
}
|
|
|
805 |
.eael-testimonial-item .right-text {
|
806 |
-
|
807 |
}
|
|
|
808 |
.eael-testimonial-item .left-text {
|
809 |
-
|
810 |
}
|
|
|
811 |
.eael-testimonial-item .justify-text {
|
812 |
-
|
813 |
}
|
814 |
-
/* Default aligned */
|
815 |
|
|
|
816 |
.eael-testimonial-content .eael-testimonial-text {
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
|
|
|
|
821 |
}
|
|
|
822 |
.eael-testimonial-content .eael-testimonial-user {
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
|
|
831 |
}
|
|
|
832 |
.eael-testimonial-content .eael-testimonial-user-company {
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
}
|
842 |
-
|
843 |
-
|
|
|
844 |
}
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
right: 20px;
|
852 |
-
top: 10px;
|
853 |
}
|
854 |
-
/* Left align */
|
855 |
|
856 |
-
.eael-testimonial-align-
|
857 |
-
|
858 |
-
.eael-testimonial-align-left .eael-testimonial-user-company {
|
859 |
-
text-align: left;
|
860 |
}
|
861 |
-
|
862 |
-
|
863 |
-
|
|
|
|
|
|
|
|
|
|
|
864 |
}
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
}
|
871 |
-
|
872 |
-
|
|
|
|
|
|
|
873 |
}
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
}
|
883 |
-
|
884 |
-
|
|
|
|
|
|
|
885 |
}
|
886 |
-
|
887 |
-
|
888 |
-
|
|
|
|
|
889 |
}
|
890 |
-
/* Center align */
|
891 |
|
892 |
-
.
|
893 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
894 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
895 |
.eael-testimonial-align-centered .eael-testimonial-user,
|
896 |
-
.eael-testimonial-align-centered .eael-testimonial-user-company
|
897 |
-
|
898 |
-
|
899 |
}
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
|
|
904 |
}
|
905 |
-
/* Right align */
|
906 |
|
907 |
-
.eael-testimonial-align-
|
908 |
-
|
909 |
-
|
910 |
-
|
|
|
|
|
|
|
|
|
911 |
}
|
912 |
-
|
913 |
-
|
914 |
-
|
|
|
|
|
915 |
}
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
width: 70%;
|
921 |
}
|
922 |
-
|
923 |
-
|
|
|
924 |
}
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
font-family: "FontAwesome";
|
929 |
-
font-size: 28px;
|
930 |
-
left: 20px;
|
931 |
-
position: absolute;
|
932 |
-
top: 0;
|
933 |
}
|
934 |
-
|
935 |
-
|
|
|
936 |
}
|
937 |
-
|
938 |
-
.
|
939 |
-
|
940 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
941 |
}
|
942 |
-
|
943 |
-
|
|
|
|
|
|
|
|
|
|
|
944 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
945 |
/* Product Styles */
|
946 |
|
947 |
.eael-product-carousel .woocommerce li.product {
|
@@ -1915,83 +2086,87 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1915 |
}
|
1916 |
|
1917 |
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
.eael-elements-progression-flip-box-container {
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
}
|
1926 |
|
1927 |
.eael-elements-progression-flip-box-container .flipbox-button {
|
1928 |
-
|
1929 |
-
|
1930 |
-o-transition: all 400ms;
|
1931 |
transition: all 400ms;
|
1932 |
}
|
1933 |
|
1934 |
.eael-elements-progression-flip-box-container a {
|
1935 |
-
|
1936 |
}
|
1937 |
|
1938 |
.eael-elements-flip-box-vertical-align {
|
1939 |
-
|
1940 |
}
|
1941 |
|
1942 |
.eael-elements-flip-box-padding {
|
1943 |
-
|
1944 |
}
|
1945 |
|
1946 |
.eael-elements-flip-box-icon-image {
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
}
|
1951 |
|
1952 |
.eael-elements-flip-box-icon-image.eael_eleements_flip_front_icon_style_background {
|
1953 |
-
|
1954 |
}
|
1955 |
|
1956 |
.eael_eleements_flip_front_icon_style_bordered {
|
1957 |
-
|
1958 |
}
|
1959 |
|
1960 |
.eael_flip_box_icon_border_round {
|
1961 |
-
|
1962 |
}
|
|
|
1963 |
.eael_eleements_flip_front_icon_style_background,
|
1964 |
.eael_eleements_flip_front_icon_style_bordered {
|
1965 |
-
|
1966 |
}
|
|
|
1967 |
.eael-elements-flip-box-icon-image i {
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
}
|
|
|
1972 |
.eael-elements-slider-display-table {
|
1973 |
-
|
1974 |
}
|
|
|
1975 |
.eael-elements-flip-box-front-container {
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
}
|
1991 |
|
1992 |
.eael-elements-flip-box-content,
|
1993 |
.eael-elements-flip-box-heading {
|
1994 |
-
|
1995 |
}
|
1996 |
|
1997 |
.eael-elements-flip-box-heading.flipbox-linked-title {
|
@@ -2001,168 +2176,208 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
2001 |
}
|
2002 |
|
2003 |
.eael-elements-flip-box-rear-container {
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
}
|
2017 |
-
|
2018 |
-
|
2019 |
.eael-elements-progression-button-floating-container {
|
2020 |
-
|
2021 |
-
|
2022 |
}
|
2023 |
|
2024 |
.eael-elements-progression-button-floating-container .eael-elements-button {
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
}
|
2030 |
|
2031 |
.eael-elements-button {
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
}
|
2040 |
|
2041 |
.eael-elements-button:hover {
|
2042 |
-
|
2043 |
-
|
2044 |
}
|
2045 |
|
2046 |
-
|
2047 |
-
/* CSS3 Transitions */
|
2048 |
.eael-elements-progression-flip-box-container {
|
2049 |
-
|
2050 |
}
|
2051 |
|
2052 |
.eael-elements-flip-box-front-container,
|
2053 |
.eael-elements-flip-box-rear-container {
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
}
|
|
|
2058 |
.eael-elements-flip-box-flip-card {
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
}
|
|
|
2064 |
.eael-elements-flip-box-rear-container,
|
2065 |
.eael-elements-flip-box-front-container {
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
}
|
2072 |
|
2073 |
-
|
2074 |
.eael-animate-flip.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2075 |
-
.eael-animate-flip.eael-animate-up .eael-elements-flip-box-rear-container {
|
|
|
|
|
2076 |
|
2077 |
.eael-animate-flip.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2078 |
-
.eael-animate-flip.eael-animate-down .eael-elements-flip-box-rear-container {
|
|
|
|
|
2079 |
|
2080 |
.eael-animate-flip.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2081 |
-
.eael-animate-flip.eael-animate-left .eael-elements-flip-box-rear-container {
|
|
|
|
|
2082 |
|
2083 |
.eael-animate-flip.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2084 |
-
.eael-animate-flip.eael-animate-right .eael-elements-flip-box-rear-container {
|
|
|
|
|
2085 |
|
2086 |
|
2087 |
-
|
2088 |
.eael-animate-push.eael-elements-progression-flip-box-container,
|
2089 |
-
.eael-animate-slide.eael-elements-progression-flip-box-container {
|
|
|
|
|
|
|
2090 |
.eael-animate-push .eael-elements-flip-box-rear-container,
|
2091 |
-
.eael-animate-slide .eael-elements-flip-box-rear-container {
|
|
|
|
|
2092 |
|
2093 |
.eael-animate-push.eael-animate-up .eael-elements-flip-box-rear-container,
|
2094 |
-
.eael-animate-slide.eael-animate-up .eael-elements-flip-box-rear-container {
|
|
|
|
|
|
|
2095 |
.eael-animate-push.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2096 |
-
.eael-animate-slide.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
|
|
|
|
2097 |
|
2098 |
.eael-animate-push.eael-animate-down .eael-elements-flip-box-rear-container,
|
2099 |
-
.eael-animate-slide.eael-animate-down .eael-elements-flip-box-rear-container {
|
|
|
|
|
|
|
|
|
2100 |
.eael-animate-push.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2101 |
-
.eael-animate-slide.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
|
|
|
|
|
|
2102 |
|
2103 |
.eael-animate-push.eael-animate-left .eael-elements-flip-box-rear-container,
|
2104 |
-
.eael-animate-slide.eael-animate-left .eael-elements-flip-box-rear-container {
|
2105 |
-
|
2106 |
-
|
2107 |
|
|
|
|
|
|
|
|
|
2108 |
|
2109 |
.eael-animate-push.eael-animate-right .eael-elements-flip-box-rear-container,
|
2110 |
-
.eael-animate-slide.eael-animate-right .eael-elements-flip-box-rear-container {
|
|
|
|
|
|
|
|
|
2111 |
.eael-animate-push.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2112 |
-
.eael-animate-slide.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
|
|
|
|
|
|
2113 |
|
2114 |
|
2115 |
-
|
2116 |
.eael-animate-push.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2117 |
-
|
2118 |
}
|
2119 |
|
2120 |
.eael-animate-push.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2121 |
-
|
2122 |
}
|
2123 |
|
2124 |
.eael-animate-push.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2125 |
-
|
2126 |
}
|
2127 |
|
2128 |
.eael-animate-push.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2129 |
-
|
2130 |
}
|
2131 |
|
2132 |
-
|
2133 |
.eael-animate-zoom-in .eael-elements-flip-box-rear-container {
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
}
|
2138 |
|
2139 |
.eael-animate-zoom-in.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2140 |
-
|
2141 |
-
|
2142 |
}
|
2143 |
|
2144 |
-
|
2145 |
.eael-animate-zoom-out.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2146 |
-
|
2147 |
-
|
2148 |
}
|
2149 |
|
2150 |
.eael-animate-fade.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2151 |
-
|
2152 |
}
|
2153 |
|
2154 |
-
|
2155 |
.eael-flipbox-content-align-right .eael-elements-flip-box-padding {
|
2156 |
-
|
2157 |
}
|
|
|
2158 |
.eael-flipbox-content-align-left .eael-elements-flip-box-padding {
|
2159 |
-
|
2160 |
}
|
|
|
2161 |
.eael-flipbox-content-align-center .eael-elements-flip-box-padding {
|
2162 |
-
|
2163 |
}
|
|
|
2164 |
.eael-flipbox-img-circle .eael-elements-flip-box-icon-image img {
|
2165 |
-
|
2166 |
}
|
2167 |
|
2168 |
|
@@ -2966,6 +3181,30 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
2966 |
margin: 0px;
|
2967 |
}
|
2968 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2969 |
/**
|
2970 |
* Caldera Contact Form Styler
|
2971 |
*/
|
310 |
-webkit-transform: translate3d(0, 100%, 0);
|
311 |
transform: translate3d(0, 100%, 0);
|
312 |
}
|
313 |
+
|
314 |
+
|
315 |
/**
|
316 |
* Countdown Styles
|
317 |
*/
|
772 |
.eael-team-member-social-link>a:focus {
|
773 |
outline: none;
|
774 |
}
|
775 |
+
|
776 |
+
|
777 |
/* Testimonials Styles */
|
778 |
|
779 |
.eael-testimonial-slider {
|
780 |
+
position: relative;
|
781 |
+
}
|
782 |
+
|
783 |
+
.testimonial-star-rating {
|
784 |
+
padding: 0;
|
785 |
+
margin: 0;
|
786 |
+
}
|
787 |
+
|
788 |
+
.testimonial-star-rating li {
|
789 |
+
list-style: none;
|
790 |
+
display: inline-block;
|
791 |
+
}
|
792 |
+
|
793 |
+
.testimonial-star-rating li i {
|
794 |
+
color: #d8d8d8;
|
795 |
+
}
|
796 |
+
|
797 |
+
.rating-five .testimonial-star-rating li i {
|
798 |
+
color: #f2b01e;
|
799 |
}
|
|
|
800 |
|
801 |
+
.rating-one .testimonial-star-rating li:first-child i {
|
802 |
+
color: #f2b01e;
|
803 |
+
}
|
804 |
+
|
805 |
+
.rating-two .testimonial-star-rating li:nth-child(1) i,
|
806 |
+
.rating-two .testimonial-star-rating li:nth-child(2) i {
|
807 |
+
color: #f2b01e;
|
808 |
+
}
|
809 |
+
|
810 |
+
.rating-three .testimonial-star-rating li:nth-child(1) i,
|
811 |
+
.rating-three .testimonial-star-rating li:nth-child(2) i ,
|
812 |
+
.rating-three .testimonial-star-rating li:nth-child(3) i {
|
813 |
+
color: #f2b01e;
|
814 |
+
}
|
815 |
+
|
816 |
+
.rating-four .testimonial-star-rating li:nth-child(1) i,
|
817 |
+
.rating-four .testimonial-star-rating li:nth-child(2) i,
|
818 |
+
.rating-four .testimonial-star-rating li:nth-child(3) i,
|
819 |
+
.rating-four .testimonial-star-rating li:nth-child(4) i {
|
820 |
+
color: #f2b01e;
|
821 |
+
}
|
822 |
+
|
823 |
+
/*--- Default styles ---*/
|
824 |
.eael-testimonial-image img {
|
825 |
+
max-width: 100%;
|
826 |
}
|
827 |
+
|
828 |
.eael-testimonial-image {
|
829 |
+
padding: 10px 0px 0px 0px;
|
830 |
}
|
831 |
+
|
832 |
+
.eael-testimonial-image > figure {
|
833 |
+
display: block;
|
834 |
+
margin: 0;
|
835 |
}
|
836 |
+
|
837 |
.testimonial-avatar-rounded figure img {
|
838 |
+
border-radius: 50%;
|
839 |
+
height: auto;
|
840 |
}
|
841 |
+
|
842 |
.eael-testimonial-content {
|
843 |
+
margin: 0;
|
844 |
+
padding: 10px;
|
845 |
}
|
846 |
+
|
847 |
+
.eael-testimonial-item > figure {
|
848 |
+
margin: 0 auto;
|
849 |
+
padding: 0 20px;
|
850 |
}
|
851 |
+
|
852 |
.eael-testimonial-item .center-text {
|
853 |
+
text-align: center;
|
854 |
}
|
855 |
+
|
856 |
.eael-testimonial-item .right-text {
|
857 |
+
text-align: right;
|
858 |
}
|
859 |
+
|
860 |
.eael-testimonial-item .left-text {
|
861 |
+
text-align: left;
|
862 |
}
|
863 |
+
|
864 |
.eael-testimonial-item .justify-text {
|
865 |
+
text-align: justify;
|
866 |
}
|
|
|
867 |
|
868 |
+
/*--- Default Style ---*/
|
869 |
.eael-testimonial-content .eael-testimonial-text {
|
870 |
+
font-size: 100%;
|
871 |
+
font-style: italic;
|
872 |
+
line-height: 1.5;
|
873 |
+
margin-top: 0px;
|
874 |
+
margin-bottom: 10px;
|
875 |
+
word-wrap: break-word;
|
876 |
}
|
877 |
+
|
878 |
.eael-testimonial-content .eael-testimonial-user {
|
879 |
+
display: inline-block;
|
880 |
+
font-family: inherit;
|
881 |
+
font-size: 105%;
|
882 |
+
font-style: italic;
|
883 |
+
font-weight: normal;
|
884 |
+
line-height: 1.5;
|
885 |
+
margin-top: 0;
|
886 |
+
margin-bottom: 0;
|
887 |
+
margin-right: 5px;
|
888 |
}
|
889 |
+
|
890 |
.eael-testimonial-content .eael-testimonial-user-company {
|
891 |
+
display: inline-block;
|
892 |
+
font-family: inherit;
|
893 |
+
font-size: 90%;
|
894 |
+
font-style: italic;
|
895 |
+
font-weight: lighter;
|
896 |
+
line-height: 1.75;
|
897 |
+
margin-bottom: 0;
|
898 |
+
margin-top: 1px;
|
899 |
}
|
900 |
+
|
901 |
+
.eael-testimonial-image {
|
902 |
+
position: relative;
|
903 |
}
|
904 |
+
|
905 |
+
.eael-testimonial-item .eael-testimonial-quote::after {
|
906 |
+
color: inherit!important;
|
907 |
+
content: "\f10e";
|
908 |
+
font-family: "FontAwesome";
|
909 |
+
font-size: 200%;
|
|
|
|
|
910 |
}
|
|
|
911 |
|
912 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-centered .eael-testimonial-image figure img {
|
913 |
+
margin: 0 auto;
|
|
|
|
|
914 |
}
|
915 |
+
|
916 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-left .eael-testimonial-image figure img,
|
917 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-right .eael-testimonial-image figure img,
|
918 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-left .eael-testimonial-image figure img,
|
919 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-right .eael-testimonial-image figure img,
|
920 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-left .eael-testimonial-image figure img,
|
921 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-right .eael-testimonial-image figure img {
|
922 |
+
margin: 0;
|
923 |
}
|
924 |
+
|
925 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-right .eael-testimonial-image figure,
|
926 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-right .eael-testimonial-image figure,
|
927 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-right .eael-testimonial-image figure {
|
928 |
+
text-align: right;
|
929 |
}
|
930 |
+
|
931 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-left .eael-testimonial-image figure,
|
932 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-left .eael-testimonial-image figure,
|
933 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-left .eael-testimonial-image figure {
|
934 |
+
text-align: left;
|
935 |
}
|
936 |
+
|
937 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-right .default-style-testimonial-content,
|
938 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-right .testimonial-classic-style-content,
|
939 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-right .middle-style-content,
|
940 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-right .eael-testimonial-text { text-align: right; }
|
941 |
+
|
942 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-center .default-style-testimonial-content,
|
943 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-center .testimonial-classic-style-content,
|
944 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-center .middle-style-content,
|
945 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-center .eael-testimonial-text { text-align: center; }
|
946 |
+
|
947 |
+
.eael-testimonial-slider.default-style .eael-testimonial-align-left .default-style-testimonial-content,
|
948 |
+
.eael-testimonial-slider.classic-style .eael-testimonial-align-left .testimonial-classic-style-content,
|
949 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-left .middle-style-content,
|
950 |
+
.eael-testimonial-slider.middle-style .eael-testimonial-align-left .eael-testimonial-text { text-align: left; }
|
951 |
+
|
952 |
+
.eael-testimonial-slider.icon-img-left-content .eael-testimonial-text > p,
|
953 |
+
.eael-testimonial-slider.icon-img-right-content .eael-testimonial-text > p {
|
954 |
+
margin: 0px;
|
955 |
}
|
956 |
+
|
957 |
+
/*--- Left align ---*/
|
958 |
+
.icon-img-left-content .eael-testimonial-image {
|
959 |
+
float: left;
|
960 |
+
width: 30%;
|
961 |
}
|
962 |
+
|
963 |
+
.icon-img-left-content .eael-testimonial-content {
|
964 |
+
float: left;
|
965 |
+
width: 70%;
|
966 |
+
text-align: left;
|
967 |
}
|
|
|
968 |
|
969 |
+
.icon-img-left-content.eael-testimonial-item {
|
970 |
+
overflow: hidden;
|
971 |
+
position: relative;
|
972 |
+
}
|
973 |
+
|
974 |
+
.icon-img-left-content .eael-testimonial-quote {
|
975 |
+
position: absolute;
|
976 |
+
right: 0;
|
977 |
}
|
978 |
+
|
979 |
+
.icon-img-left-content .eael-testimonial-text {
|
980 |
+
margin-top: 0;
|
981 |
+
}
|
982 |
+
|
983 |
+
/*--- Center align ---*/
|
984 |
.eael-testimonial-align-centered .eael-testimonial-user,
|
985 |
+
.eael-testimonial-align-centered .eael-testimonial-user-company {
|
986 |
+
float: none;
|
987 |
+
text-align: center;
|
988 |
}
|
989 |
+
|
990 |
+
.eael-testimonial-align-centered .eael-testimonial-image > figure img {
|
991 |
+
display: block;
|
992 |
+
margin-left: auto !important;
|
993 |
+
margin-right: auto !important;
|
994 |
}
|
|
|
995 |
|
996 |
+
/* .eael-testimonial-align-centered .testimonial-star-rating{
|
997 |
+
text-align: center;
|
998 |
+
} */
|
999 |
+
|
1000 |
+
/*--- Right align ---*/
|
1001 |
+
.icon-img-right-content .eael-testimonial-image {
|
1002 |
+
float: right;
|
1003 |
+
width: 30%;
|
1004 |
}
|
1005 |
+
|
1006 |
+
.icon-img-right-content .eael-testimonial-content {
|
1007 |
+
float: right;
|
1008 |
+
width: 70%;
|
1009 |
+
text-align: right;
|
1010 |
}
|
1011 |
+
|
1012 |
+
.icon-img-right-content.eael-testimonial-item {
|
1013 |
+
overflow: hidden;
|
1014 |
+
position: relative;
|
|
|
1015 |
}
|
1016 |
+
|
1017 |
+
.icon-img-right-content .eael-testimonial-quote {
|
1018 |
+
position: absolute;
|
1019 |
}
|
1020 |
+
|
1021 |
+
.icon-img-right-content .eael-testimonial-text {
|
1022 |
+
margin-top: 0;
|
|
|
|
|
|
|
|
|
|
|
1023 |
}
|
1024 |
+
|
1025 |
+
.eael-testimonial-item {
|
1026 |
+
position: relative;
|
1027 |
}
|
1028 |
+
|
1029 |
+
.classic-style.testimonial-alignment-center .eael-testimonial-image,
|
1030 |
+
.default-style.testimonial-alignment-center .eael-testimonial-image {
|
1031 |
+
text-align: center;
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
.classic-style.testimonial-alignment-right .eael-testimonial-image,
|
1035 |
+
.default-style.testimonial-alignment-right .eael-testimonial-image {
|
1036 |
+
text-align: right;
|
1037 |
+
}
|
1038 |
+
|
1039 |
+
.classic-style.testimonial-alignment-center .eael-testimonial-image > figure,
|
1040 |
+
.default-style.testimonial-alignment-center .eael-testimonial-image > figure{
|
1041 |
+
text-align: center;
|
1042 |
+
}
|
1043 |
+
|
1044 |
+
.eael-testimonial-slider.icon-img-left-content .eael-testimonial-align-centered .eael-testimonial-content { text-align: center; }
|
1045 |
+
|
1046 |
+
.eael-testimonial-slider.icon-img-left-content .eael-testimonial-align-left .eael-testimonial-content { text-align: left; }
|
1047 |
+
|
1048 |
+
.eael-testimonial-slider.icon-img-left-content .eael-testimonial-align-right .eael-testimonial-content { text-align: right; }
|
1049 |
+
|
1050 |
+
.eael-testimonial-slider.icon-img-right-content .eael-testimonial-align-centered .eael-testimonial-content { text-align: center; }
|
1051 |
+
|
1052 |
+
.eael-testimonial-slider.icon-img-right-content .eael-testimonial-align-left .eael-testimonial-content { text-align: left; }
|
1053 |
+
|
1054 |
+
.eael-testimonial-slider.icon-img-right-content .eael-testimonial-align-right .eael-testimonial-content { text-align: right; }
|
1055 |
+
|
1056 |
+
span.eael-testimonial-quote {
|
1057 |
+
position: absolute;
|
1058 |
+
right: 10px;
|
1059 |
+
top: 10px;
|
1060 |
+
}
|
1061 |
+
|
1062 |
+
/*--- Image aligned ---*/
|
1063 |
+
.eael-testimonial-item.left .eael-testimonial-image { text-align: left; }
|
1064 |
+
.eael-testimonial-item.center .eael-testimonial-image { text-align: center; }
|
1065 |
+
.eael-testimonial-item.right .eael-testimonial-image { text-align: right; }
|
1066 |
+
|
1067 |
+
/*--- Float title image style ---*/
|
1068 |
+
.eael-testimonial-inline-bio .eael-testimonial-image {
|
1069 |
+
float: left;
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
.eael-testimonial-inline-bio .bio-text {
|
1073 |
+
padding-top: 10px;
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
.eael-testimonial-content.eael-testimonial-inline-bio {
|
1077 |
+
overflow: hidden;
|
1078 |
+
margin-bottom: 0;
|
1079 |
+
padding-bottom: 0;
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
.eael-testimonial-inline-bio .testimonial-star-rating,
|
1083 |
+
.eael-testimonial-inline-bio .bio-text {
|
1084 |
+
float: left;
|
1085 |
+
width: 65%;
|
1086 |
+
}
|
1087 |
+
|
1088 |
+
.eael-testimonial-content.eael-testimonial-inline-bio {
|
1089 |
+
text-align: left !important;
|
1090 |
}
|
1091 |
+
|
1092 |
+
/*--- Float inline style ---*/
|
1093 |
+
.testimonial-inline-style .eael-testimonial-image {
|
1094 |
+
float: left;
|
1095 |
+
max-width: 100%;
|
1096 |
+
padding: 0;
|
1097 |
+
margin-right: 15px;
|
1098 |
}
|
1099 |
+
|
1100 |
+
.testimonial-inline-style {
|
1101 |
+
overflow: hidden;
|
1102 |
+
text-align: left;
|
1103 |
+
}
|
1104 |
+
|
1105 |
+
.content-top-icon-title-inline .eael-testimonial-text,
|
1106 |
+
.content-top-icon-title-inline .eael-testimonial-align-left .eael-testimonial-text { text-align: left; }
|
1107 |
+
.content-top-icon-title-inline .eael-testimonial-align-centered .eael-testimonial-text { text-align: center; }
|
1108 |
+
.content-top-icon-title-inline .eael-testimonial-align-right .eael-testimonial-text { text-align: right; }
|
1109 |
+
|
1110 |
+
.content-bottom-icon-title-inline .eael-testimonial-text,
|
1111 |
+
.content-bottom-icon-title-inline .eael-testimonial-align-left .eael-testimonial-text { text-align: left; }
|
1112 |
+
.content-bottom-icon-title-inline .eael-testimonial-align-centered .eael-testimonial-text { text-align: center; }
|
1113 |
+
.content-bottom-icon-title-inline .eael-testimonial-align-right .eael-testimonial-text { text-align: right; }
|
1114 |
+
|
1115 |
+
|
1116 |
/* Product Styles */
|
1117 |
|
1118 |
.eael-product-carousel .woocommerce li.product {
|
2086 |
}
|
2087 |
|
2088 |
|
2089 |
+
/*---------------------------*/
|
2090 |
+
/* 26. Flipbox Style
|
2091 |
+
/*---------------------------*/
|
2092 |
.eael-elements-progression-flip-box-container {
|
2093 |
+
position:relative;
|
2094 |
+
height:300px;
|
2095 |
+
width:100%;
|
2096 |
}
|
2097 |
|
2098 |
.eael-elements-progression-flip-box-container .flipbox-button {
|
2099 |
+
display: inline-block;
|
2100 |
+
-webkit-transition: all 400ms;
|
2101 |
-o-transition: all 400ms;
|
2102 |
transition: all 400ms;
|
2103 |
}
|
2104 |
|
2105 |
.eael-elements-progression-flip-box-container a {
|
2106 |
+
display:block;
|
2107 |
}
|
2108 |
|
2109 |
.eael-elements-flip-box-vertical-align {
|
2110 |
+
width:100%;
|
2111 |
}
|
2112 |
|
2113 |
.eael-elements-flip-box-padding {
|
2114 |
+
padding:0px 30px 5px 30px;
|
2115 |
}
|
2116 |
|
2117 |
.eael-elements-flip-box-icon-image {
|
2118 |
+
display:inline-block;
|
2119 |
+
margin:0 auto 0px auto;
|
2120 |
+
line-height:1;
|
2121 |
}
|
2122 |
|
2123 |
.eael-elements-flip-box-icon-image.eael_eleements_flip_front_icon_style_background {
|
2124 |
+
background:#cccccc;
|
2125 |
}
|
2126 |
|
2127 |
.eael_eleements_flip_front_icon_style_bordered {
|
2128 |
+
border:2px solid #ffffff;
|
2129 |
}
|
2130 |
|
2131 |
.eael_flip_box_icon_border_round {
|
2132 |
+
border-radius:100px;
|
2133 |
}
|
2134 |
+
|
2135 |
.eael_eleements_flip_front_icon_style_background,
|
2136 |
.eael_eleements_flip_front_icon_style_bordered {
|
2137 |
+
padding:15px;
|
2138 |
}
|
2139 |
+
|
2140 |
.eael-elements-flip-box-icon-image i {
|
2141 |
+
font-size:40px;
|
2142 |
+
line-height:40px;
|
2143 |
+
width:40px;
|
2144 |
}
|
2145 |
+
|
2146 |
.eael-elements-slider-display-table {
|
2147 |
+
width: 100%;
|
2148 |
}
|
2149 |
+
|
2150 |
.eael-elements-flip-box-front-container {
|
2151 |
+
text-align:center;
|
2152 |
+
position:absolute;
|
2153 |
+
top:0px;
|
2154 |
+
left:0px;
|
2155 |
+
z-index: 2;
|
2156 |
+
width:100%;
|
2157 |
+
height:100%;
|
2158 |
+
background:#0e9dd2;
|
2159 |
+
color:#ffffff;
|
2160 |
+
border-color:#000000;
|
2161 |
+
-webkit-display: flex;
|
2162 |
+
display: flex;
|
2163 |
+
-webkit-align-items: center;
|
2164 |
+
align-items: center;
|
2165 |
}
|
2166 |
|
2167 |
.eael-elements-flip-box-content,
|
2168 |
.eael-elements-flip-box-heading {
|
2169 |
+
color:#ffffff;
|
2170 |
}
|
2171 |
|
2172 |
.eael-elements-flip-box-heading.flipbox-linked-title {
|
2176 |
}
|
2177 |
|
2178 |
.eael-elements-flip-box-rear-container {
|
2179 |
+
text-align:center;
|
2180 |
+
position:absolute;
|
2181 |
+
top:0px;
|
2182 |
+
left:0px;
|
2183 |
+
width:100%;
|
2184 |
+
height:100%;
|
2185 |
+
background:#444444;
|
2186 |
+
color:#ffffff;
|
2187 |
+
display: flex;
|
2188 |
+
-webkit-align-items: center;
|
2189 |
+
align-items: center;
|
2190 |
+
border-color: #000000;
|
2191 |
+
}
|
2192 |
+
|
2193 |
+
/*--- Floating Button Styles ---*/
|
2194 |
.eael-elements-progression-button-floating-container {
|
2195 |
+
position:fixed;
|
2196 |
+
z-index:100;
|
2197 |
}
|
2198 |
|
2199 |
.eael-elements-progression-button-floating-container .eael-elements-button {
|
2200 |
+
margin-top:0px;
|
2201 |
+
font-size:14px;
|
2202 |
+
position:relative;
|
2203 |
+
padding:14px 20px;
|
2204 |
}
|
2205 |
|
2206 |
.eael-elements-button {
|
2207 |
+
cursor:pointer;
|
2208 |
+
display:inline-block;
|
2209 |
+
background:#077bbe;
|
2210 |
+
color:#ffffff;
|
2211 |
+
line-height:1;
|
2212 |
+
padding:16px 25px;
|
2213 |
+
margin-top:15px;
|
2214 |
}
|
2215 |
|
2216 |
.eael-elements-button:hover {
|
2217 |
+
background:#077bbe;
|
2218 |
+
color:#ffffff;
|
2219 |
}
|
2220 |
|
2221 |
+
/*--- CSS3 Transitions ---*/
|
|
|
2222 |
.eael-elements-progression-flip-box-container {
|
2223 |
+
perspective: 1000px;
|
2224 |
}
|
2225 |
|
2226 |
.eael-elements-flip-box-front-container,
|
2227 |
.eael-elements-flip-box-rear-container {
|
2228 |
+
transition-duration:500ms;
|
2229 |
+
transition-property: all;
|
2230 |
+
transition-timing-function: ease;
|
2231 |
}
|
2232 |
+
|
2233 |
.eael-elements-flip-box-flip-card {
|
2234 |
+
width: 100%;
|
2235 |
+
height: 100%;
|
2236 |
+
transform-style: preserve-3d;
|
2237 |
+
transition: all 500ms ease;
|
2238 |
}
|
2239 |
+
|
2240 |
.eael-elements-flip-box-rear-container,
|
2241 |
.eael-elements-flip-box-front-container {
|
2242 |
+
-moz-backface-visibility: hidden;
|
2243 |
+
-webkit-backface-visibility: hidden;
|
2244 |
+
backface-visibility: hidden;
|
2245 |
+
transform: rotateX(0deg);
|
2246 |
+
transform: rotateY(0deg);
|
2247 |
}
|
2248 |
|
2249 |
+
/*--- Flip ---*/
|
2250 |
.eael-animate-flip.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2251 |
+
.eael-animate-flip.eael-animate-up .eael-elements-flip-box-rear-container {
|
2252 |
+
transform: rotateX(180deg);
|
2253 |
+
}
|
2254 |
|
2255 |
.eael-animate-flip.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2256 |
+
.eael-animate-flip.eael-animate-down .eael-elements-flip-box-rear-container {
|
2257 |
+
transform: rotateX(-180deg);
|
2258 |
+
}
|
2259 |
|
2260 |
.eael-animate-flip.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2261 |
+
.eael-animate-flip.eael-animate-left .eael-elements-flip-box-rear-container {
|
2262 |
+
transform: rotateY(-180deg);
|
2263 |
+
}
|
2264 |
|
2265 |
.eael-animate-flip.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-flip-card,
|
2266 |
+
.eael-animate-flip.eael-animate-right .eael-elements-flip-box-rear-container {
|
2267 |
+
transform: rotateY(180deg);
|
2268 |
+
}
|
2269 |
|
2270 |
|
2271 |
+
/*--- Slide ---*/
|
2272 |
.eael-animate-push.eael-elements-progression-flip-box-container,
|
2273 |
+
.eael-animate-slide.eael-elements-progression-flip-box-container {
|
2274 |
+
overflow:hidden;
|
2275 |
+
}
|
2276 |
+
|
2277 |
.eael-animate-push .eael-elements-flip-box-rear-container,
|
2278 |
+
.eael-animate-slide .eael-elements-flip-box-rear-container {
|
2279 |
+
z-index:3;
|
2280 |
+
}
|
2281 |
|
2282 |
.eael-animate-push.eael-animate-up .eael-elements-flip-box-rear-container,
|
2283 |
+
.eael-animate-slide.eael-animate-up .eael-elements-flip-box-rear-container {
|
2284 |
+
top:100%;
|
2285 |
+
}
|
2286 |
+
|
2287 |
.eael-animate-push.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2288 |
+
.eael-animate-slide.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2289 |
+
top:0;
|
2290 |
+
}
|
2291 |
|
2292 |
.eael-animate-push.eael-animate-down .eael-elements-flip-box-rear-container,
|
2293 |
+
.eael-animate-slide.eael-animate-down .eael-elements-flip-box-rear-container {
|
2294 |
+
top:auto;
|
2295 |
+
bottom:100%;
|
2296 |
+
}
|
2297 |
+
|
2298 |
.eael-animate-push.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2299 |
+
.eael-animate-slide.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2300 |
+
top:auto;
|
2301 |
+
bottom:0;
|
2302 |
+
}
|
2303 |
|
2304 |
.eael-animate-push.eael-animate-left .eael-elements-flip-box-rear-container,
|
2305 |
+
.eael-animate-slide.eael-animate-left .eael-elements-flip-box-rear-container {
|
2306 |
+
left:100%;
|
2307 |
+
}
|
2308 |
|
2309 |
+
.eael-animate-push.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2310 |
+
.eael-animate-slide.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2311 |
+
left:0;
|
2312 |
+
}
|
2313 |
|
2314 |
.eael-animate-push.eael-animate-right .eael-elements-flip-box-rear-container,
|
2315 |
+
.eael-animate-slide.eael-animate-right .eael-elements-flip-box-rear-container {
|
2316 |
+
left:auto;
|
2317 |
+
right:100%;
|
2318 |
+
}
|
2319 |
+
|
2320 |
.eael-animate-push.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container,
|
2321 |
+
.eael-animate-slide.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2322 |
+
left:auto;
|
2323 |
+
right:0;
|
2324 |
+
}
|
2325 |
|
2326 |
|
2327 |
+
/*--- Push + Slide Above ---*/
|
2328 |
.eael-animate-push.eael-animate-up.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2329 |
+
top:-100%;
|
2330 |
}
|
2331 |
|
2332 |
.eael-animate-push.eael-animate-down.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2333 |
+
top:100%;
|
2334 |
}
|
2335 |
|
2336 |
.eael-animate-push.eael-animate-left.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2337 |
+
left:-100%;
|
2338 |
}
|
2339 |
|
2340 |
.eael-animate-push.eael-animate-right.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2341 |
+
left:100%;
|
2342 |
}
|
2343 |
|
2344 |
+
/*--- Zoom In ---*/
|
2345 |
.eael-animate-zoom-in .eael-elements-flip-box-rear-container {
|
2346 |
+
opacity:0;
|
2347 |
+
transform: scale(0.75);
|
2348 |
+
z-index:3;
|
2349 |
}
|
2350 |
|
2351 |
.eael-animate-zoom-in.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-rear-container {
|
2352 |
+
opacity:1;
|
2353 |
+
transform: scale(1);
|
2354 |
}
|
2355 |
|
2356 |
+
/*--- Zoom Out ---*/
|
2357 |
.eael-animate-zoom-out.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2358 |
+
opacity:0;
|
2359 |
+
transform: scale(0.75);
|
2360 |
}
|
2361 |
|
2362 |
.eael-animate-fade.eael-elements-progression-flip-box-container:hover .eael-elements-flip-box-front-container {
|
2363 |
+
opacity:0;
|
2364 |
}
|
2365 |
|
2366 |
+
/*--- Builder Related Style ---*/
|
2367 |
.eael-flipbox-content-align-right .eael-elements-flip-box-padding {
|
2368 |
+
text-align: right;
|
2369 |
}
|
2370 |
+
|
2371 |
.eael-flipbox-content-align-left .eael-elements-flip-box-padding {
|
2372 |
+
text-align: left;
|
2373 |
}
|
2374 |
+
|
2375 |
.eael-flipbox-content-align-center .eael-elements-flip-box-padding {
|
2376 |
+
text-align: center;
|
2377 |
}
|
2378 |
+
|
2379 |
.eael-flipbox-img-circle .eael-elements-flip-box-icon-image img {
|
2380 |
+
border-radius: 50%;
|
2381 |
}
|
2382 |
|
2383 |
|
3181 |
margin: 0px;
|
3182 |
}
|
3183 |
|
3184 |
+
/* ---- Pricing Table Tooltip ----*/
|
3185 |
+
div.tooltipster-sidetip.tooltipster-base.tooltipster-right .tooltipster-arrow {
|
3186 |
+
position: absolute;
|
3187 |
+
top: 50%;
|
3188 |
+
}
|
3189 |
+
|
3190 |
+
div.tooltipster-sidetip.tooltipster-top div.tooltipster-box {
|
3191 |
+
margin-bottom: 0px !important;
|
3192 |
+
}
|
3193 |
+
|
3194 |
+
div.tooltipster-sidetip.tooltipster-bottom div.tooltipster-box {
|
3195 |
+
margin-top: 0px !important;
|
3196 |
+
}
|
3197 |
+
|
3198 |
+
.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow {
|
3199 |
+
top: auto;
|
3200 |
+
bottom: -8px;
|
3201 |
+
}
|
3202 |
+
|
3203 |
+
div.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow {
|
3204 |
+
top: -8px;
|
3205 |
+
bottom: auto;
|
3206 |
+
}
|
3207 |
+
|
3208 |
/**
|
3209 |
* Caldera Contact Form Styler
|
3210 |
*/
|
assets/css/tooltipster.bundle.min.css
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.tooltipster-fall,.tooltipster-grow.tooltipster-show{-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-base{display:flex;pointer-events:none;position:absolute}.tooltipster-box{flex:1 1 auto}.tooltipster-content{box-sizing:border-box;max-height:100%;max-width:100%;overflow:auto}.tooltipster-ruler{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden}.tooltipster-fade{opacity:0;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;-ms-transition-property:opacity;transition-property:opacity}.tooltipster-fade.tooltipster-show{opacity:1}.tooltipster-grow{-webkit-transform:scale(0,0);-moz-transform:scale(0,0);-o-transform:scale(0,0);-ms-transform:scale(0,0);transform:scale(0,0);-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-backface-visibility:hidden}.tooltipster-grow.tooltipster-show{-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1);-ms-transform:scale(1,1);transform:scale(1,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-swing{opacity:0;-webkit-transform:rotateZ(4deg);-moz-transform:rotateZ(4deg);-o-transform:rotateZ(4deg);-ms-transform:rotateZ(4deg);transform:rotateZ(4deg);-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform}.tooltipster-swing.tooltipster-show{opacity:1;-webkit-transform:rotateZ(0);-moz-transform:rotateZ(0);-o-transform:rotateZ(0);-ms-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,1);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-moz-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-ms-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-o-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);transition-timing-function:cubic-bezier(.23,.635,.495,2.4)}.tooltipster-fall{-webkit-transition-property:top;-moz-transition-property:top;-o-transition-property:top;-ms-transition-property:top;transition-property:top;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-fall.tooltipster-initial{top:0!important}.tooltipster-fall.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;top:0!important;opacity:0}.tooltipster-slide{-webkit-transition-property:left;-moz-transition-property:left;-o-transition-property:left;-ms-transition-property:left;transition-property:left;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-slide.tooltipster-initial{left:-40px!important}.tooltipster-slide.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;left:0!important;opacity:0}@keyframes tooltipster-fading{0%{opacity:0}100%{opacity:1}}.tooltipster-update-fade{animation:tooltipster-fading .4s}@keyframes tooltipster-rotating{25%{transform:rotate(-2deg)}75%{transform:rotate(2deg)}100%{transform:rotate(0)}}.tooltipster-update-rotate{animation:tooltipster-rotating .6s}@keyframes tooltipster-scaling{50%{transform:scale(1.1)}100%{transform:scale(1)}}.tooltipster-update-scale{animation:tooltipster-scaling .6s}.tooltipster-sidetip .tooltipster-box{background:#565656;border:2px solid #000;border-radius:4px}.tooltipster-sidetip.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip .tooltipster-content{color:#fff;line-height:18px;padding:6px 14px}.tooltipster-sidetip .tooltipster-arrow{overflow:hidden;position:absolute}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow{height:10px;margin-left:-10px;top:0;width:20px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow{height:20px;margin-top:-10px;right:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow{height:20px;margin-top:-10px;left:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow{bottom:0;height:10px;margin-left:-10px;width:20px}.tooltipster-sidetip .tooltipster-arrow-background,.tooltipster-sidetip .tooltipster-arrow-border{height:0;position:absolute;width:0}.tooltipster-sidetip .tooltipster-arrow-background{border:10px solid transparent}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#565656;left:0;top:3px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background{border-left-color:#565656;left:-3px;top:0}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background{border-right-color:#565656;left:3px;top:0}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background{border-top-color:#565656;left:0;top:-3px}.tooltipster-sidetip .tooltipster-arrow-border{border:10px solid transparent;left:0;top:0}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#000}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border{border-left-color:#000}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border{border-right-color:#000}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border{border-top-color:#000}.tooltipster-sidetip .tooltipster-arrow-uncropped{position:relative}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-uncropped{top:-10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-uncropped{left:-10px}
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
/* Borderless Theme */
|
6 |
+
.tooltipster-sidetip.tooltipster-borderless .tooltipster-box{border:none;background:#1b1b1b;background:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow{height:8px;margin-left:-8px;width:16px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow{height:16px;margin-left:0;margin-top:-8px;width:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-border{border:8px solid transparent}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#1b1b1b;border-bottom-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow-border{border-left-color:#1b1b1b;border-left-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-border{border-right-color:#1b1b1b;border-right-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border{border-top-color:#1b1b1b;border-top-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-uncropped{top:-8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-uncropped{left:-8px}
|
7 |
+
|
8 |
+
|
9 |
+
/* Light Theme */
|
10 |
+
.tooltipster-sidetip.tooltipster-light .tooltipster-box{border-radius:3px;border:1px solid #ccc;background:#ededed}.tooltipster-sidetip.tooltipster-light .tooltipster-content{color:#666}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow{height:9px;margin-left:-9px;width:18px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow{height:18px;margin-left:0;margin-top:-9px;width:9px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-background{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#ededed;top:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-background{border-left-color:#ededed;left:-1px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-background{border-right-color:#ededed;left:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-background{border-top-color:#ededed;top:-1px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-border{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-border{border-left-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-border{border-right-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-border{border-top-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-uncropped{top:-9px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-uncropped{left:-9px}
|
11 |
+
|
12 |
+
/* Noir Theme */
|
13 |
+
.tooltipster-sidetip.tooltipster-noir .tooltipster-box{border-radius:0;border:3px solid #000;background:#fff}.tooltipster-sidetip.tooltipster-noir .tooltipster-content{color:#000}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow{height:11px;margin-left:-11px;width:22px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow{height:22px;margin-left:0;margin-top:-11px;width:11px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-background{border:11px solid transparent}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#fff;top:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow-background{border-left-color:#fff;left:-4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-background{border-right-color:#fff;left:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-top .tooltipster-arrow-background{border-top-color:#fff;top:-4px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-border{border-width:11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-uncropped{top:-11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-uncropped{left:-11px}
|
14 |
+
|
15 |
+
|
16 |
+
/* Punk Theme */
|
17 |
+
.tooltipster-sidetip.tooltipster-punk .tooltipster-box{border-radius:5px;border:none;border-bottom:3px solid #f71169;background:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-box{margin-bottom:7px}.tooltipster-sidetip.tooltipster-punk .tooltipster-content{color:#fff;padding:8px 16px}.tooltipster-sidetip.tooltipster-punk .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-punk.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-left .tooltipster-arrow-border{border-left-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-right .tooltipster-arrow-border{border-right-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-arrow-border{border-top-color:#f71169}
|
18 |
+
|
19 |
+
/* Shadow Theme */
|
20 |
+
.tooltipster-sidetip.tooltipster-shadow .tooltipster-box{border:none;border-radius:5px;background:#fff;box-shadow:0 0 10px 6px rgba(0,0,0,.1)}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-box{margin-top:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-box{margin-right:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-box{margin-left:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-box{margin-bottom:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-content{color:#8d8d8d}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow{height:6px;margin-left:-6px;width:12px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow{height:12px;margin-left:0;margin-top:-6px;width:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-border{border:6px solid transparent}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow-border{border-left-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-border{border-right-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-arrow-border{border-top-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-uncropped{top:-6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-uncropped{left:-6px}
|
assets/js/eael-scripts.js
CHANGED
@@ -460,45 +460,72 @@
|
|
460 |
}
|
461 |
}
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
|
499 |
$(window).on('elementor/frontend/init', function () {
|
500 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-filterable-gallery.default', FilterGallery);
|
501 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-adv-tabs.default', AdvanceTabHandler);
|
|
|
502 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-post-timeline.default', postTimelineHandler);
|
503 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-facebook-feed.default', FacebookFeedHandler);
|
504 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-twitter-feed.default', TwitterFeedHandler);
|
460 |
}
|
461 |
}
|
462 |
|
463 |
+
var CountDown = function ($scope, $) {
|
464 |
+
var $coundDown = $scope.find('.eael-countdown-wrapper').eq(0),
|
465 |
+
$countdown_id = ($coundDown.data("countdown-id") !== undefined) ? $coundDown.data("countdown-id") : '',
|
466 |
+
$expire_type = ($coundDown.data("expire-type") !== undefined) ? $coundDown.data("expire-type") : '',
|
467 |
+
$expiry_text = ($coundDown.data("expiry-text") !== undefined) ? $coundDown.data("expiry-text") : '',
|
468 |
+
$expiry_title = ($coundDown.data("expiry-title") !== undefined) ? $coundDown.data('expiry-title') : '',
|
469 |
+
$redirect_url = ($coundDown.data("redirect-url") !== undefined) ? $coundDown.data("redirect-url") : '',
|
470 |
+
$template = ($coundDown.data("template") !== undefined) ? $coundDown.data("template") : '';
|
471 |
+
|
472 |
+
jQuery(document).ready(function($) {
|
473 |
+
'use strict';
|
474 |
+
var countDown = $("#eael-countdown-" + $countdown_id);
|
475 |
+
|
476 |
+
countDown.countdown({
|
477 |
+
end: function() {
|
478 |
+
if( $expire_type == 'text'){
|
479 |
+
countDown.html( '<div class="eael-countdown-finish-message"><h4 class="expiry-title">' + $expiry_title + '</h4>' + '<div class="eael-countdown-finish-text">' + $expiry_text + '</div></div>');
|
480 |
+
}
|
481 |
+
else if ( $expire_type === 'url'){
|
482 |
+
var editMode = $('body').find('#elementor').length;
|
483 |
+
if( editMode > 0 ) {
|
484 |
+
countDown.html("Your Page will be redirected to given URL (only on Frontend).");
|
485 |
+
} else {
|
486 |
+
window.location.href = $redirect_url;
|
487 |
+
}
|
488 |
+
}
|
489 |
+
else if ( $expire_type === 'template'){
|
490 |
+
countDown.html( $template );
|
491 |
+
} else {
|
492 |
+
//do nothing!
|
493 |
+
}
|
494 |
+
}
|
495 |
+
});
|
496 |
+
});
|
497 |
+
}
|
498 |
+
|
499 |
+
var PricingTooltip = function($scope, $) {
|
500 |
+
if( $.fn.tooltipster ) {
|
501 |
+
var $tooltip = $scope.find('.tooltip'), i;
|
502 |
+
|
503 |
+
for( i = 0; i < $tooltip.length; i++) {
|
504 |
+
var $currentTooltip = $( '#' + $($tooltip[i]).attr('id') ),
|
505 |
+
$tooltipSide = ( $currentTooltip.data('side') !== undefined ) ? $currentTooltip.data('side') : false,
|
506 |
+
$tooltipTrigger = ( $currentTooltip.data('trigger') !== undefined ) ? $currentTooltip.data('trigger') : 'hover',
|
507 |
+
$animation = ( $currentTooltip.data('animation') !== undefined ) ? $currentTooltip.data('animation') : 'fade',
|
508 |
+
$anim_duration = ( $currentTooltip.data('animation_duration') !== undefined ) ? $currentTooltip.data('animation_duration') : 300,
|
509 |
+
$theme = ( $currentTooltip.data('theme') !== undefined ) ? $currentTooltip.data('theme') : 'default',
|
510 |
+
$arrow = ( 'yes' == $currentTooltip.data('arrow') ) ? true : false;
|
511 |
+
|
512 |
+
$currentTooltip.tooltipster({
|
513 |
+
animation: $animation,
|
514 |
+
trigger: $tooltipTrigger,
|
515 |
+
side: $tooltipSide,
|
516 |
+
delay: $anim_duration,
|
517 |
+
arrow: $arrow,
|
518 |
+
theme: 'tooltipster-' + $theme
|
519 |
+
});
|
520 |
+
|
521 |
+
}
|
522 |
+
}
|
523 |
+
}
|
524 |
|
525 |
$(window).on('elementor/frontend/init', function () {
|
526 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-filterable-gallery.default', FilterGallery);
|
527 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-adv-tabs.default', AdvanceTabHandler);
|
528 |
+
elementorFrontend.hooks.addAction('frontend/element_ready/eael-pricing-table.default', PricingTooltip);
|
529 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-post-timeline.default', postTimelineHandler);
|
530 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-facebook-feed.default', FacebookFeedHandler);
|
531 |
elementorFrontend.hooks.addAction('frontend/element_ready/eael-twitter-feed.default', TwitterFeedHandler);
|
assets/js/load-more.js
CHANGED
File without changes
|
assets/js/tooltipster.bundle.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! tooltipster v4.2.6 */!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.6",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),
|
2 |
+
this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});
|
elements/content-ticker/content-ticker.php
CHANGED
File without changes
|
elements/countdown/countdown.php
CHANGED
@@ -270,12 +270,24 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
270 |
]
|
271 |
);
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
$this->add_control(
|
274 |
'countdown_expiry_text',
|
275 |
[
|
276 |
-
'label' => esc_html__('On Expiry
|
277 |
'type' => Controls_Manager::WYSIWYG,
|
278 |
-
'default' => esc_html__('
|
279 |
'condition' => [
|
280 |
'countdown_expire_type' => 'text'
|
281 |
]
|
@@ -308,31 +320,31 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
308 |
|
309 |
$this->end_controls_section();
|
310 |
|
311 |
-
|
312 |
'eael_section_pro',
|
313 |
[
|
314 |
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
315 |
]
|
316 |
);
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
'1' => [
|
325 |
'title' => __( '', 'essential-addons-elementor' ),
|
326 |
'icon' => 'fa fa-unlock-alt',
|
327 |
],
|
328 |
],
|
329 |
'default' => '1',
|
330 |
-
|
331 |
-
|
332 |
-
|
|
|
|
|
333 |
|
334 |
-
$this->end_controls_section();
|
335 |
-
|
336 |
$this->start_controls_section(
|
337 |
'eael_section_countdown_styles_general',
|
338 |
[
|
@@ -698,9 +710,9 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
698 |
$this->add_control(
|
699 |
'eael_countdown_seconds_background_color',
|
700 |
[
|
701 |
-
'label'
|
702 |
-
'type'
|
703 |
-
'default'
|
704 |
'selectors' => [
|
705 |
'{{WRAPPER}} .eael-countdown-item > div.eael-countdown-seconds' => 'background-color: {{VALUE}};',
|
706 |
],
|
@@ -710,9 +722,9 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
710 |
$this->add_control(
|
711 |
'eael_countdown_seconds_digit_color',
|
712 |
[
|
713 |
-
'label'
|
714 |
-
'type'
|
715 |
-
'default'
|
716 |
'selectors' => [
|
717 |
'{{WRAPPER}} .eael-countdown-seconds .eael-countdown-digits' => 'color: {{VALUE}};',
|
718 |
],
|
@@ -722,10 +734,10 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
722 |
$this->add_control(
|
723 |
'eael_countdown_seconds_label_color',
|
724 |
[
|
725 |
-
'label'
|
726 |
-
'type'
|
727 |
-
'default'
|
728 |
-
'selectors'
|
729 |
'{{WRAPPER}} .eael-countdown-seconds .eael-countdown-label' => 'color: {{VALUE}};',
|
730 |
],
|
731 |
]
|
@@ -734,10 +746,10 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
734 |
$this->add_control(
|
735 |
'eael_countdown_seconds_border_color',
|
736 |
[
|
737 |
-
'label'
|
738 |
-
'type'
|
739 |
-
'default'
|
740 |
-
'selectors'
|
741 |
'{{WRAPPER}} .eael-countdown-item > div.eael-countdown-seconds' => 'border-color: {{VALUE}};',
|
742 |
],
|
743 |
]
|
@@ -750,35 +762,11 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
750 |
$this->start_controls_section(
|
751 |
'eael_section_countdown_expire_style',
|
752 |
[
|
753 |
-
'label'
|
754 |
-
'tab'
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
$this->add_control(
|
759 |
-
'eael_countdown_expire_message_color',
|
760 |
-
[
|
761 |
-
'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
|
762 |
-
'type' => Controls_Manager::COLOR,
|
763 |
-
'default' => '',
|
764 |
-
'selectors' => [
|
765 |
-
'{{WRAPPER}} .eael-countdown-finish-text' => 'color: {{VALUE}};',
|
766 |
-
],
|
767 |
-
'condition' => [
|
768 |
-
'countdown_expire_type' => 'text',
|
769 |
-
],
|
770 |
-
]
|
771 |
-
);
|
772 |
-
|
773 |
-
$this->add_group_control(
|
774 |
-
Group_Control_Typography::get_type(),
|
775 |
-
[
|
776 |
-
'name' => 'eael_countdown_expire_message_typography',
|
777 |
-
'scheme' => Scheme_Typography::TYPOGRAPHY_2,
|
778 |
-
'selector' => '{{WRAPPER}} .eael-countdown-finish-text',
|
779 |
-
'condition' => [
|
780 |
-
'countdown_expire_type' => 'text',
|
781 |
-
],
|
782 |
]
|
783 |
);
|
784 |
|
@@ -804,19 +792,104 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
804 |
],
|
805 |
'default' => 'left',
|
806 |
'selectors' => [
|
807 |
-
'{{WRAPPER}} .eael-countdown-finish-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
],
|
809 |
]
|
810 |
);
|
811 |
|
812 |
$this->add_responsive_control(
|
813 |
-
'
|
814 |
[
|
815 |
-
'label' => esc_html__( '
|
816 |
'type' => Controls_Manager::DIMENSIONS,
|
817 |
-
'size_units' => [ 'px', '
|
818 |
'selectors' => [
|
819 |
-
'{{WRAPPER}} .eael-countdown-finish-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
820 |
],
|
821 |
'condition' => [
|
822 |
'countdown_expire_type' => 'text',
|
@@ -857,7 +930,13 @@ class Widget_Eael_Countdown extends Widget_Base {
|
|
857 |
$this->add_render_attribute( 'eael-countdown', 'data-expire-type', $settings['countdown_expire_type'] );
|
858 |
|
859 |
if ( $settings['countdown_expire_type'] == 'text' ) {
|
860 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
861 |
}
|
862 |
elseif ( $settings['countdown_expire_type'] == 'url' ) {
|
863 |
$this->add_render_attribute( 'eael-countdown', 'data-redirect-url', $settings['countdown_expiry_redirection'] );
|
270 |
]
|
271 |
);
|
272 |
|
273 |
+
$this->add_control(
|
274 |
+
'countdown_expiry_text_title',
|
275 |
+
[
|
276 |
+
'label' => esc_html__('On Expiry Title', 'essential-addons-elementor'),
|
277 |
+
'type' => Controls_Manager::TEXTAREA,
|
278 |
+
'default' => esc_html__('Countdown is finished!','essential-addons-elementor'),
|
279 |
+
'condition' => [
|
280 |
+
'countdown_expire_type' => 'text'
|
281 |
+
]
|
282 |
+
]
|
283 |
+
);
|
284 |
+
|
285 |
$this->add_control(
|
286 |
'countdown_expiry_text',
|
287 |
[
|
288 |
+
'label' => esc_html__('On Expiry Content', 'essential-addons-elementor'),
|
289 |
'type' => Controls_Manager::WYSIWYG,
|
290 |
+
'default' => esc_html__('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s','essential-addons-elementor'),
|
291 |
'condition' => [
|
292 |
'countdown_expire_type' => 'text'
|
293 |
]
|
320 |
|
321 |
$this->end_controls_section();
|
322 |
|
323 |
+
$this->start_controls_section(
|
324 |
'eael_section_pro',
|
325 |
[
|
326 |
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
327 |
]
|
328 |
);
|
329 |
+
|
330 |
+
$this->add_control(
|
331 |
+
'eael_control_get_pro',
|
332 |
+
[
|
333 |
+
'label' => __( 'Unlock more possibilities', 'essential-addons-elementor' ),
|
334 |
+
'type' => Controls_Manager::CHOOSE,
|
335 |
+
'options' => [
|
336 |
'1' => [
|
337 |
'title' => __( '', 'essential-addons-elementor' ),
|
338 |
'icon' => 'fa fa-unlock-alt',
|
339 |
],
|
340 |
],
|
341 |
'default' => '1',
|
342 |
+
'description' => '<span class="pro-feature"> Get the <a href="https://essential-addons.com/elementor/buy.php" target="_blank">Pro version</a> for more stunning elements and customization options.</span>'
|
343 |
+
]
|
344 |
+
);
|
345 |
+
|
346 |
+
$this->end_controls_section();
|
347 |
|
|
|
|
|
348 |
$this->start_controls_section(
|
349 |
'eael_section_countdown_styles_general',
|
350 |
[
|
710 |
$this->add_control(
|
711 |
'eael_countdown_seconds_background_color',
|
712 |
[
|
713 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
714 |
+
'type' => Controls_Manager::COLOR,
|
715 |
+
'default' => '',
|
716 |
'selectors' => [
|
717 |
'{{WRAPPER}} .eael-countdown-item > div.eael-countdown-seconds' => 'background-color: {{VALUE}};',
|
718 |
],
|
722 |
$this->add_control(
|
723 |
'eael_countdown_seconds_digit_color',
|
724 |
[
|
725 |
+
'label' => esc_html__( 'Digit Color', 'essential-addons-elementor' ),
|
726 |
+
'type' => Controls_Manager::COLOR,
|
727 |
+
'default' => '',
|
728 |
'selectors' => [
|
729 |
'{{WRAPPER}} .eael-countdown-seconds .eael-countdown-digits' => 'color: {{VALUE}};',
|
730 |
],
|
734 |
$this->add_control(
|
735 |
'eael_countdown_seconds_label_color',
|
736 |
[
|
737 |
+
'label' => esc_html__( 'Label Color', 'essential-addons-elementor' ),
|
738 |
+
'type' => Controls_Manager::COLOR,
|
739 |
+
'default' => '',
|
740 |
+
'selectors' => [
|
741 |
'{{WRAPPER}} .eael-countdown-seconds .eael-countdown-label' => 'color: {{VALUE}};',
|
742 |
],
|
743 |
]
|
746 |
$this->add_control(
|
747 |
'eael_countdown_seconds_border_color',
|
748 |
[
|
749 |
+
'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
|
750 |
+
'type' => Controls_Manager::COLOR,
|
751 |
+
'default' => '',
|
752 |
+
'selectors' => [
|
753 |
'{{WRAPPER}} .eael-countdown-item > div.eael-countdown-seconds' => 'border-color: {{VALUE}};',
|
754 |
],
|
755 |
]
|
762 |
$this->start_controls_section(
|
763 |
'eael_section_countdown_expire_style',
|
764 |
[
|
765 |
+
'label' => esc_html__( 'Expire Message', 'essential-addons-elementor' ),
|
766 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
767 |
+
'condition' => [
|
768 |
+
'countdown_expire_type' => 'text'
|
769 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
770 |
]
|
771 |
);
|
772 |
|
792 |
],
|
793 |
'default' => 'left',
|
794 |
'selectors' => [
|
795 |
+
'{{WRAPPER}} .eael-countdown-finish-message' => 'text-align: {{VALUE}};',
|
796 |
+
],
|
797 |
+
]
|
798 |
+
);
|
799 |
+
|
800 |
+
$this->add_control(
|
801 |
+
'heading_eael_countdown_expire_title',
|
802 |
+
[
|
803 |
+
'label' => __( 'Title Style', 'essential-addons-elementor' ),
|
804 |
+
'type' => Controls_Manager::HEADING,
|
805 |
+
'separator' => 'before'
|
806 |
+
]
|
807 |
+
);
|
808 |
+
|
809 |
+
$this->add_control(
|
810 |
+
'eael_countdown_expire_title_color',
|
811 |
+
[
|
812 |
+
'label' => esc_html__( 'Title Color', 'essential-addons-elementor' ),
|
813 |
+
'type' => Controls_Manager::COLOR,
|
814 |
+
'default' => '',
|
815 |
+
'selectors' => [
|
816 |
+
'{{WRAPPER}} .eael-countdown-finish-message .expiry-title' => 'color: {{VALUE}};',
|
817 |
+
],
|
818 |
+
'condition' => [
|
819 |
+
'countdown_expire_type' => 'text',
|
820 |
+
],
|
821 |
+
]
|
822 |
+
);
|
823 |
+
|
824 |
+
$this->add_group_control(
|
825 |
+
Group_Control_Typography::get_type(),
|
826 |
+
[
|
827 |
+
'name' => 'eael_countdown_expire_title_typography',
|
828 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_2,
|
829 |
+
'selector' => '{{WRAPPER}} .eael-countdown-finish-message .expiry-title',
|
830 |
+
'condition' => [
|
831 |
+
'countdown_expire_type' => 'text',
|
832 |
],
|
833 |
]
|
834 |
);
|
835 |
|
836 |
$this->add_responsive_control(
|
837 |
+
'eael_expire_title_margin',
|
838 |
[
|
839 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
840 |
'type' => Controls_Manager::DIMENSIONS,
|
841 |
+
'size_units' => [ 'px', 'em' ],
|
842 |
'selectors' => [
|
843 |
+
'{{WRAPPER}} .eael-countdown-finish-message .expiry-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
|
844 |
+
],
|
845 |
+
]
|
846 |
+
);
|
847 |
+
|
848 |
+
$this->add_control(
|
849 |
+
'heading_eael_countdown_expire_message',
|
850 |
+
[
|
851 |
+
'label' => __( 'Content Style', 'essential-addons-elementor' ),
|
852 |
+
'type' => Controls_Manager::HEADING,
|
853 |
+
'separator' => 'before'
|
854 |
+
]
|
855 |
+
);
|
856 |
+
|
857 |
+
$this->add_control(
|
858 |
+
'eael_countdown_expire_message_color',
|
859 |
+
[
|
860 |
+
'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
|
861 |
+
'type' => Controls_Manager::COLOR,
|
862 |
+
'default' => '',
|
863 |
+
'selectors' => [
|
864 |
+
'{{WRAPPER}} .eael-countdown-finish-text' => 'color: {{VALUE}};',
|
865 |
+
],
|
866 |
+
'condition' => [
|
867 |
+
'countdown_expire_type' => 'text',
|
868 |
+
],
|
869 |
+
]
|
870 |
+
);
|
871 |
+
|
872 |
+
$this->add_group_control(
|
873 |
+
Group_Control_Typography::get_type(),
|
874 |
+
[
|
875 |
+
'name' => 'eael_countdown_expire_message_typography',
|
876 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_2,
|
877 |
+
'selector' => '.eael-countdown-finish-text',
|
878 |
+
'condition' => [
|
879 |
+
'countdown_expire_type' => 'text',
|
880 |
+
],
|
881 |
+
]
|
882 |
+
);
|
883 |
+
|
884 |
+
$this->add_responsive_control(
|
885 |
+
'eael_countdown_expire_message_padding',
|
886 |
+
[
|
887 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
888 |
+
'type' => Controls_Manager::DIMENSIONS,
|
889 |
+
'size_units' => [ 'px', '%', 'em' ],
|
890 |
+
'separator' => 'before',
|
891 |
+
'selectors' => [
|
892 |
+
'{{WRAPPER}} .eael-countdown-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
893 |
],
|
894 |
'condition' => [
|
895 |
'countdown_expire_type' => 'text',
|
930 |
$this->add_render_attribute( 'eael-countdown', 'data-expire-type', $settings['countdown_expire_type'] );
|
931 |
|
932 |
if ( $settings['countdown_expire_type'] == 'text' ) {
|
933 |
+
if( ! empty($settings['countdown_expiry_text']) ) {
|
934 |
+
$this->add_render_attribute( 'eael-countdown', 'data-expiry-text', wp_kses_post($settings['countdown_expiry_text']) );
|
935 |
+
}
|
936 |
+
|
937 |
+
if( ! empty($settings['countdown_expiry_text_title']) ) {
|
938 |
+
$this->add_render_attribute('eael-countdown', 'data-expiry-title', wp_kses_post($settings['countdown_expiry_text_title']) );
|
939 |
+
}
|
940 |
}
|
941 |
elseif ( $settings['countdown_expire_type'] == 'url' ) {
|
942 |
$this->add_render_attribute( 'eael-countdown', 'data-redirect-url', $settings['countdown_expiry_redirection'] );
|
elements/data-table/data-table.php
CHANGED
File without changes
|
elements/flipbox/flipbox.php
CHANGED
File without changes
|
elements/infobox/infobox.php
CHANGED
@@ -17,7 +17,7 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
17 |
return 'eicon-info-box';
|
18 |
}
|
19 |
|
20 |
-
|
21 |
return [ 'essential-addons-elementor' ];
|
22 |
}
|
23 |
|
@@ -1387,6 +1387,37 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
1387 |
$this->end_controls_tabs();
|
1388 |
|
1389 |
$this->end_controls_section();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1390 |
|
1391 |
}
|
1392 |
|
@@ -1396,7 +1427,7 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
1396 |
*
|
1397 |
* @param $settings
|
1398 |
*/
|
1399 |
-
protected function eael_infobox_before($settings) {
|
1400 |
|
1401 |
$this->add_render_attribute('eael_infobox_inner', 'class', 'eael-infobox');
|
1402 |
|
@@ -1565,12 +1596,19 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
1565 |
echo ob_get_clean();
|
1566 |
}
|
1567 |
|
1568 |
-
|
1569 |
protected function render() {
|
1570 |
-
|
1571 |
-
|
1572 |
-
$
|
1573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1574 |
}
|
1575 |
|
1576 |
protected function content_template() {}
|
17 |
return 'eicon-info-box';
|
18 |
}
|
19 |
|
20 |
+
public function get_categories() {
|
21 |
return [ 'essential-addons-elementor' ];
|
22 |
}
|
23 |
|
1387 |
$this->end_controls_tabs();
|
1388 |
|
1389 |
$this->end_controls_section();
|
1390 |
+
|
1391 |
+
$this->start_controls_section(
|
1392 |
+
'_section_style',
|
1393 |
+
[
|
1394 |
+
'label' => esc_html__( 'Info Box Advanced', 'essential-addons-elementor' ),
|
1395 |
+
'tab' => Controls_Manager::TAB_ADVANCED,
|
1396 |
+
'name' => 'advanced',
|
1397 |
+
]
|
1398 |
+
); // \Elementor\Controls_Manager::TAB_ADVANCED
|
1399 |
+
|
1400 |
+
$this->add_responsive_control(
|
1401 |
+
'_margin',
|
1402 |
+
[
|
1403 |
+
'label' => __( '', 'elementor' ),
|
1404 |
+
'name' => '_margin',
|
1405 |
+
]
|
1406 |
+
);
|
1407 |
+
|
1408 |
+
$this->add_responsive_control(
|
1409 |
+
'eael_infobox_container_padding',
|
1410 |
+
[
|
1411 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
1412 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1413 |
+
'size_units' => [ 'px', 'em', '%' ],
|
1414 |
+
'selectors' => [
|
1415 |
+
'{{WRAPPER}} .eael-infobox' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1416 |
+
],
|
1417 |
+
]
|
1418 |
+
);
|
1419 |
+
|
1420 |
+
$this->end_controls_section();
|
1421 |
|
1422 |
}
|
1423 |
|
1427 |
*
|
1428 |
* @param $settings
|
1429 |
*/
|
1430 |
+
protected function eael_infobox_before( $settings ) {
|
1431 |
|
1432 |
$this->add_render_attribute('eael_infobox_inner', 'class', 'eael-infobox');
|
1433 |
|
1596 |
echo ob_get_clean();
|
1597 |
}
|
1598 |
|
|
|
1599 |
protected function render() {
|
1600 |
+
// dump( $this->get_settings_for_display() );
|
1601 |
+
|
1602 |
+
$settings = $this->get_settings_for_display();
|
1603 |
+
|
1604 |
+
// $bgcolor = $this->get_settings_for_display( 'eael_infobox_bg_color' );
|
1605 |
+
|
1606 |
+
// $settings['_background_color'] = $bgcolor;
|
1607 |
+
|
1608 |
+
$this->eael_infobox_before( $settings );
|
1609 |
+
$this->render_infobox_icon( $settings );
|
1610 |
+
$this->render_infobox_content( $settings );
|
1611 |
+
$this->eael_infobox_after( $settings );
|
1612 |
}
|
1613 |
|
1614 |
protected function content_template() {}
|
elements/post-grid/post-grid.php
CHANGED
File without changes
|
elements/post-timeline/post-timeline.php
CHANGED
File without changes
|
elements/pricing-table/pricing-table.php
CHANGED
@@ -253,7 +253,115 @@ class Widget_Eael_Pricing_Table extends Widget_Base {
|
|
253 |
'label' => esc_html__( 'Icon Color', 'essential-addons-elementor' ),
|
254 |
'type' => Controls_Manager::COLOR,
|
255 |
'default' => '#00C853',
|
256 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
],
|
258 |
'title_field' => '{{eael_pricing_table_item}}',
|
259 |
]
|
@@ -1005,6 +1113,153 @@ class Widget_Eael_Pricing_Table extends Widget_Base {
|
|
1005 |
|
1006 |
$this->end_controls_section();
|
1007 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1008 |
/**
|
1009 |
* -------------------------------------------
|
1010 |
* Tab Style (Pricing Table Icon Style)
|
@@ -1373,10 +1628,222 @@ class Widget_Eael_Pricing_Table extends Widget_Base {
|
|
1373 |
|
1374 |
$this->end_controls_section();
|
1375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1376 |
}
|
1377 |
|
1378 |
|
1379 |
-
protected function render(
|
1380 |
|
1381 |
$settings = $this->get_settings();
|
1382 |
$pricing_table_image = $this->get_settings( 'eael_pricing_table_image' );
|
@@ -1410,19 +1877,7 @@ class Widget_Eael_Pricing_Table extends Widget_Base {
|
|
1410 |
<span class="price-period"><?php echo $settings['eael_pricing_table_period_separator']; ?> <?php echo $settings['eael_pricing_table_price_period']; ?></span>
|
1411 |
</div>
|
1412 |
<div class="body">
|
1413 |
-
|
1414 |
-
<?php
|
1415 |
-
foreach( $settings['eael_pricing_table_items'] as $item ) :
|
1416 |
-
if( 'yes' === $item['eael_pricing_table_icon_mood'] ) : $icon_mood = ''; else : $icon_mood = 'disable-item'; endif;
|
1417 |
-
?>
|
1418 |
-
<li class="<?php echo esc_attr( $icon_mood ); ?>">
|
1419 |
-
<?php if( 'show' === $settings['eael_pricing_table_icon_enabled'] ) : ?>
|
1420 |
-
<span class="li-icon" style="color:<?php echo esc_attr( $item['eael_pricing_table_list_icon_color'] ); ?>"><i class="<?php echo esc_attr( $item['eael_pricing_table_list_icon'] ); ?>"></i></span>
|
1421 |
-
<?php endif; ?>
|
1422 |
-
<?php echo $item['eael_pricing_table_item']; ?>
|
1423 |
-
</li>
|
1424 |
-
<?php endforeach; ?>
|
1425 |
-
</ul>
|
1426 |
</div>
|
1427 |
<div class="footer">
|
1428 |
<a href="<?php echo esc_url( $settings['eael_pricing_table_btn_link']['url'] ); ?>" <?php echo $target; ?> <?php echo $nofollow; ?> class="eael-pricing-button">
|
@@ -1452,19 +1907,7 @@ class Widget_Eael_Pricing_Table extends Widget_Base {
|
|
1452 |
<span class="price-period"><?php echo $settings['eael_pricing_table_period_separator']; ?> <?php echo $settings['eael_pricing_table_price_period']; ?></span>
|
1453 |
</div>
|
1454 |
<div class="body">
|
1455 |
-
|
1456 |
-
<?php
|
1457 |
-
foreach( $settings['eael_pricing_table_items'] as $item ) :
|
1458 |
-
if( 'yes' === $item['eael_pricing_table_icon_mood'] ) : $icon_mood = ''; else : $icon_mood = 'disable-item'; endif;
|
1459 |
-
?>
|
1460 |
-
<li class="<?php echo esc_attr( $icon_mood ); ?>">
|
1461 |
-
<?php if( 'show' === $settings['eael_pricing_table_icon_enabled'] ) : ?>
|
1462 |
-
<span class="li-icon" style="color:<?php echo esc_attr( $item['eael_pricing_table_list_icon_color'] ); ?>"><i class="<?php echo esc_attr( $item['eael_pricing_table_list_icon'] ); ?>"></i></span>
|
1463 |
-
<?php endif; ?>
|
1464 |
-
<?php echo $item['eael_pricing_table_item']; ?>
|
1465 |
-
</li>
|
1466 |
-
<?php endforeach; ?>
|
1467 |
-
</ul>
|
1468 |
</div>
|
1469 |
<div class="footer">
|
1470 |
<a href="<?php echo esc_url( $settings['eael_pricing_table_btn_link']['url'] ); ?>" <?php echo $target; ?> <?php echo $nofollow; ?> class="eael-pricing-button">
|
253 |
'label' => esc_html__( 'Icon Color', 'essential-addons-elementor' ),
|
254 |
'type' => Controls_Manager::COLOR,
|
255 |
'default' => '#00C853',
|
256 |
+
],
|
257 |
+
[
|
258 |
+
'name' => 'eael_pricing_item_tooltip',
|
259 |
+
'label' => esc_html__( 'Enable Tooltip?', 'essential-addons-elementor' ),
|
260 |
+
'type' => Controls_Manager::SWITCHER,
|
261 |
+
'return_value' => 'yes',
|
262 |
+
'default' => false
|
263 |
+
],
|
264 |
+
[
|
265 |
+
'name' => 'eael_pricing_item_tooltip_content',
|
266 |
+
'label' => esc_html__( 'Tooltip Content', 'essential-addons-elementor' ),
|
267 |
+
'type' => Controls_Manager::TEXTAREA,
|
268 |
+
'default' => __( "I'm a awesome tooltip!!", 'essential-addons-elementor' ),
|
269 |
+
'condition' => [
|
270 |
+
'eael_pricing_item_tooltip' => 'yes'
|
271 |
+
]
|
272 |
+
],
|
273 |
+
[
|
274 |
+
'name' => 'eael_pricing_item_tooltip_side',
|
275 |
+
'label' => esc_html__( 'Tooltip Side', 'essential-addons-elementor' ),
|
276 |
+
'type' => Controls_Manager::CHOOSE,
|
277 |
+
'options' => [
|
278 |
+
'left' => [
|
279 |
+
'title' => __( 'Left', 'essential-addons-elementor' ),
|
280 |
+
'icon' => 'eicon-h-align-left',
|
281 |
+
],
|
282 |
+
'top' => [
|
283 |
+
'title' => __( 'Top', 'essential-addons-elementor' ),
|
284 |
+
'icon' => 'eicon-v-align-top',
|
285 |
+
],
|
286 |
+
'right' => [
|
287 |
+
'title' => __( 'Right', 'essential-addons-elementor' ),
|
288 |
+
'icon' => 'eicon-h-align-right',
|
289 |
+
],
|
290 |
+
'bottom' => [
|
291 |
+
'title' => __( 'Bottom', 'essential-addons-elementor' ),
|
292 |
+
'icon' => 'eicon-v-align-bottom',
|
293 |
+
],
|
294 |
+
],
|
295 |
+
'default' => 'top',
|
296 |
+
'condition' => [
|
297 |
+
'eael_pricing_item_tooltip' => 'yes'
|
298 |
+
]
|
299 |
+
],
|
300 |
+
[
|
301 |
+
'name' => 'eael_pricing_item_tooltip_trigger',
|
302 |
+
'label' => esc_html__( 'Tooltip Trigger', 'essential-addons-elementor' ),
|
303 |
+
'type' => Controls_Manager::SELECT2,
|
304 |
+
'options' => [
|
305 |
+
'hover' => __( 'Hover', 'essential-addons-elementor' ),
|
306 |
+
'click' => __( 'Click', 'essential-addons-elementor' ),
|
307 |
+
],
|
308 |
+
'default' => 'hover',
|
309 |
+
'condition' => [
|
310 |
+
'eael_pricing_item_tooltip' => 'yes'
|
311 |
+
]
|
312 |
+
],
|
313 |
+
[
|
314 |
+
'name' => 'eael_pricing_item_tooltip_animation',
|
315 |
+
'label' => esc_html__( 'Tooltip Animation', 'essential-addons-elementor' ),
|
316 |
+
'type' => Controls_Manager::SELECT2,
|
317 |
+
'options' => [
|
318 |
+
'fade' => __( 'Fade', 'essential-addons-elementor' ),
|
319 |
+
'grow' => __( 'Grow', 'essential-addons-elementor' ),
|
320 |
+
'swing' => __( 'Swing', 'essential-addons-elementor' ),
|
321 |
+
'slide' => __( 'Slide', 'essential-addons-elementor' ),
|
322 |
+
'fall' => __( 'Fall', 'essential-addons-elementor' ),
|
323 |
+
],
|
324 |
+
'default' => 'fade',
|
325 |
+
'condition' => [
|
326 |
+
'eael_pricing_item_tooltip' => 'yes'
|
327 |
+
]
|
328 |
+
],
|
329 |
+
[
|
330 |
+
'name' => 'pricing_item_tooltip_animation_duration',
|
331 |
+
'label' => esc_html__( 'Animation Duration', 'essential-addons-elementor' ),
|
332 |
+
'type' => Controls_Manager::TEXT,
|
333 |
+
'default' => 300,
|
334 |
+
'condition' => [
|
335 |
+
'eael_pricing_item_tooltip' => 'yes'
|
336 |
+
]
|
337 |
+
],
|
338 |
+
[
|
339 |
+
'name' => 'eael_pricing_table_toolip_arrow',
|
340 |
+
'label' => esc_html__( 'Tooltip Arrow', 'essential-addons-elementor' ),
|
341 |
+
'type' => Controls_Manager::SWITCHER,
|
342 |
+
'return_value' => 'yes',
|
343 |
+
'default' => 'yes',
|
344 |
+
'condition' => [
|
345 |
+
'eael_pricing_item_tooltip' => 'yes'
|
346 |
+
]
|
347 |
+
],
|
348 |
+
[
|
349 |
+
'name' => 'eael_pricing_item_tooltip_theme',
|
350 |
+
'label' => esc_html__( 'Tooltip Theme', 'essential-addons-elementor' ),
|
351 |
+
'type' => Controls_Manager::SELECT2,
|
352 |
+
'options' => [
|
353 |
+
'default' => __( 'Default', 'essential-addons-elementor' ),
|
354 |
+
'noir' => __( 'Noir', 'essential-addons-elementor' ),
|
355 |
+
'light' => __( 'Light', 'essential-addons-elementor' ),
|
356 |
+
'punk' => __( 'Punk', 'essential-addons-elementor' ),
|
357 |
+
'shadow' => __( 'Shadow', 'essential-addons-elementor' ),
|
358 |
+
'borderless'=> __( 'Borderless', 'essential-addons-elementor' ),
|
359 |
+
],
|
360 |
+
'default' => 'noir',
|
361 |
+
'condition' => [
|
362 |
+
'eael_pricing_item_tooltip' => 'yes'
|
363 |
+
]
|
364 |
+
],
|
365 |
],
|
366 |
'title_field' => '{{eael_pricing_table_item}}',
|
367 |
]
|
1113 |
|
1114 |
$this->end_controls_section();
|
1115 |
|
1116 |
+
/**
|
1117 |
+
* -------------------------------------------
|
1118 |
+
* Tab Style (Tooltip Style)
|
1119 |
+
* -------------------------------------------
|
1120 |
+
*/
|
1121 |
+
$this->start_controls_section(
|
1122 |
+
'eael_section_pricing_table_tooltip_style',
|
1123 |
+
[
|
1124 |
+
'label' => esc_html__( 'Tooltip', 'essential-addons-elementor' ),
|
1125 |
+
'tab' => Controls_Manager::TAB_STYLE
|
1126 |
+
]
|
1127 |
+
);
|
1128 |
+
|
1129 |
+
$this->add_control(
|
1130 |
+
'eael_pricing_table_tooltip_bg_color',
|
1131 |
+
[
|
1132 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
1133 |
+
'type' => Controls_Manager::COLOR,
|
1134 |
+
'default' => '',
|
1135 |
+
'selectors' => [
|
1136 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'background-color: {{VALUE}}'
|
1137 |
+
]
|
1138 |
+
]
|
1139 |
+
);
|
1140 |
+
|
1141 |
+
$this->add_control(
|
1142 |
+
'eael_pricing_table_tooltip_arrow_bg',
|
1143 |
+
[
|
1144 |
+
'label' => esc_html__( 'Arrow Background', 'essential-addons-elementor' ),
|
1145 |
+
'type' => Controls_Manager::COLOR,
|
1146 |
+
'default' => '#3d3d3d',
|
1147 |
+
'selectors' => [
|
1148 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border,
|
1149 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background' => 'border-top-color: {{VALUE}};',
|
1150 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border, .tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background' => 'border-right-color: {{VALUE}};',
|
1151 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border,
|
1152 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background' => 'border-left-color: {{VALUE}};',
|
1153 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border,
|
1154 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background' => 'border-bottom-color: {{VALUE}};',
|
1155 |
+
],
|
1156 |
+
]
|
1157 |
+
);
|
1158 |
+
|
1159 |
+
$this->add_control(
|
1160 |
+
'eael_pricing_table_tooltip_color',
|
1161 |
+
[
|
1162 |
+
'label' => esc_html__( 'Color', 'essential-addons-elementor' ),
|
1163 |
+
'type' => Controls_Manager::COLOR,
|
1164 |
+
'default' => '',
|
1165 |
+
'selectors' => [
|
1166 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-box .tooltipster-content' => 'color: {{VALUE}};',
|
1167 |
+
],
|
1168 |
+
]
|
1169 |
+
);
|
1170 |
+
|
1171 |
+
$this->add_responsive_control(
|
1172 |
+
'eael_pricing_table_tooltip_padding',
|
1173 |
+
[
|
1174 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
1175 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1176 |
+
'size_units' => 'px',
|
1177 |
+
'description' => __( 'Refresh your browser after saving the padding value for see changes.', 'essential-addons-elementor' ),
|
1178 |
+
'selectors' => [
|
1179 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1180 |
+
],
|
1181 |
+
]
|
1182 |
+
);
|
1183 |
+
|
1184 |
+
$this->add_group_control(
|
1185 |
+
Group_Control_Border::get_type(),
|
1186 |
+
[
|
1187 |
+
'name' => 'eael_pricing_table_tooltip_border',
|
1188 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
1189 |
+
'selector' => '.tooltipster-base.tooltipster-sidetip .tooltipster-box'
|
1190 |
+
]
|
1191 |
+
);
|
1192 |
+
|
1193 |
+
$this->add_control(
|
1194 |
+
'eael_pricing_table_tooltip_border_radius',
|
1195 |
+
[
|
1196 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
1197 |
+
'type' => Controls_Manager::SLIDER,
|
1198 |
+
'size_units' => [ 'px', '%' ],
|
1199 |
+
'range' => [
|
1200 |
+
'%' => [
|
1201 |
+
'max' => 100,
|
1202 |
+
'step' => 1
|
1203 |
+
],
|
1204 |
+
'px' => [
|
1205 |
+
'max' => 200,
|
1206 |
+
'step' => 1
|
1207 |
+
],
|
1208 |
+
],
|
1209 |
+
'selectors' => [
|
1210 |
+
'.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'border-radius: {{SIZE}}{{UNIT}};'
|
1211 |
+
],
|
1212 |
+
]
|
1213 |
+
);
|
1214 |
+
|
1215 |
+
$this->add_control(
|
1216 |
+
'eael_pricing_table_tooltip_arrow_heading',
|
1217 |
+
[
|
1218 |
+
'label' => __( 'Tooltip Arrow', 'essential-addons-elementor' ),
|
1219 |
+
'separator' => 'before',
|
1220 |
+
'type' => Controls_Manager::HEADING
|
1221 |
+
]
|
1222 |
+
);
|
1223 |
+
|
1224 |
+
$this->add_control(
|
1225 |
+
'eael_pricing_table_tooltip_arrow_size',
|
1226 |
+
[
|
1227 |
+
'label' => esc_html__( 'Arrow Size', 'essential-addons-elementor' ),
|
1228 |
+
'type' => Controls_Manager::SLIDER,
|
1229 |
+
'range' => [
|
1230 |
+
'px' => [
|
1231 |
+
'max' => 45,
|
1232 |
+
'step' => 1
|
1233 |
+
],
|
1234 |
+
],
|
1235 |
+
'selectors' => [
|
1236 |
+
|
1237 |
+
// Right Position Arrow
|
1238 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); left: calc( (-{{SIZE}}px * 2) / 2 );',
|
1239 |
+
'div.tooltipster-sidetip.tooltipster-right .tooltipster-box' => 'margin-left: calc({{SIZE}}px - 10px);',
|
1240 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background,.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1241 |
+
|
1242 |
+
// Left Position Arrow
|
1243 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-left .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); right: calc( (-{{SIZE}}px * 2) / 2 );',
|
1244 |
+
'div.tooltipster-sidetip.tooltipster-left .tooltipster-box' => 'margin-right: calc({{SIZE}}px - 1px);',
|
1245 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1246 |
+
|
1247 |
+
// Top Position Arrow
|
1248 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-top .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%;top: 100%;',
|
1249 |
+
'div.tooltipster-sidetip.tooltipster-top .tooltipster-box' => 'margin-bottom: -1px;',
|
1250 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1251 |
+
|
1252 |
+
// Bottom Position Arrow
|
1253 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-bottom .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%; top: auto; bottom: 88%;',
|
1254 |
+
|
1255 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background,
|
1256 |
+
.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1257 |
+
|
1258 |
+
],
|
1259 |
+
]
|
1260 |
+
);
|
1261 |
+
$this->end_controls_section();
|
1262 |
+
|
1263 |
/**
|
1264 |
* -------------------------------------------
|
1265 |
* Tab Style (Pricing Table Icon Style)
|
1628 |
|
1629 |
$this->end_controls_section();
|
1630 |
|
1631 |
+
/**
|
1632 |
+
* -------------------------------------------
|
1633 |
+
* Tab Style (Tooltip Style)
|
1634 |
+
* -------------------------------------------
|
1635 |
+
*/
|
1636 |
+
$this->start_controls_section(
|
1637 |
+
'eael_section_pricing_table_tooltip_style',
|
1638 |
+
[
|
1639 |
+
'label' => esc_html__( 'Tooltip', 'essential-addons-elementor' ),
|
1640 |
+
'tab' => Controls_Manager::TAB_STYLE
|
1641 |
+
]
|
1642 |
+
);
|
1643 |
+
|
1644 |
+
$this->add_control(
|
1645 |
+
'eael_pricing_table_tooltip_bg_color',
|
1646 |
+
[
|
1647 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
1648 |
+
'type' => Controls_Manager::COLOR,
|
1649 |
+
'default' => '',
|
1650 |
+
'selectors' => [
|
1651 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'background-color: {{VALUE}}'
|
1652 |
+
]
|
1653 |
+
]
|
1654 |
+
);
|
1655 |
+
|
1656 |
+
$this->add_control(
|
1657 |
+
'eael_pricing_table_tooltip_arrow_bg',
|
1658 |
+
[
|
1659 |
+
'label' => esc_html__( 'Arrow Background', 'essential-addons-elementor' ),
|
1660 |
+
'type' => Controls_Manager::COLOR,
|
1661 |
+
'default' => '#3d3d3d',
|
1662 |
+
'selectors' => [
|
1663 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border,
|
1664 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background' => 'border-top-color: {{VALUE}};',
|
1665 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border, .tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background' => 'border-right-color: {{VALUE}};',
|
1666 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border,
|
1667 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background' => 'border-left-color: {{VALUE}};',
|
1668 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border,
|
1669 |
+
div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background' => 'border-bottom-color: {{VALUE}};',
|
1670 |
+
],
|
1671 |
+
]
|
1672 |
+
);
|
1673 |
+
|
1674 |
+
$this->add_control(
|
1675 |
+
'eael_pricing_table_tooltip_color',
|
1676 |
+
[
|
1677 |
+
'label' => esc_html__( 'Color', 'essential-addons-elementor' ),
|
1678 |
+
'type' => Controls_Manager::COLOR,
|
1679 |
+
'default' => '',
|
1680 |
+
'selectors' => [
|
1681 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-box .tooltipster-content' => 'color: {{VALUE}};',
|
1682 |
+
],
|
1683 |
+
]
|
1684 |
+
);
|
1685 |
+
|
1686 |
+
$this->add_responsive_control(
|
1687 |
+
'eael_pricing_table_tooltip_padding',
|
1688 |
+
[
|
1689 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
1690 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1691 |
+
'size_units' => 'px',
|
1692 |
+
'description' => __( 'Refresh your browser after saving the padding value for see changes.', 'essential-addons-elementor' ),
|
1693 |
+
'selectors' => [
|
1694 |
+
'div.tooltipster-base.tooltipster-sidetip .tooltipster-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1695 |
+
],
|
1696 |
+
]
|
1697 |
+
);
|
1698 |
+
|
1699 |
+
$this->add_group_control(
|
1700 |
+
Group_Control_Border::get_type(),
|
1701 |
+
[
|
1702 |
+
'name' => 'eael_pricing_table_tooltip_border',
|
1703 |
+
'label' => esc_html__( 'Border Type', 'essential-addons-elementor' ),
|
1704 |
+
'selector' => '.tooltipster-base.tooltipster-sidetip .tooltipster-box'
|
1705 |
+
]
|
1706 |
+
);
|
1707 |
+
|
1708 |
+
$this->add_control(
|
1709 |
+
'eael_pricing_table_tooltip_border_radius',
|
1710 |
+
[
|
1711 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
1712 |
+
'type' => Controls_Manager::SLIDER,
|
1713 |
+
'size_units' => [ 'px', '%' ],
|
1714 |
+
'range' => [
|
1715 |
+
'%' => [
|
1716 |
+
'max' => 100,
|
1717 |
+
'step' => 1
|
1718 |
+
],
|
1719 |
+
'px' => [
|
1720 |
+
'max' => 200,
|
1721 |
+
'step' => 1
|
1722 |
+
],
|
1723 |
+
],
|
1724 |
+
'selectors' => [
|
1725 |
+
'.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'border-radius: {{SIZE}}{{UNIT}};'
|
1726 |
+
],
|
1727 |
+
]
|
1728 |
+
);
|
1729 |
+
|
1730 |
+
$this->add_control(
|
1731 |
+
'eael_pricing_table_tooltip_arrow_heading',
|
1732 |
+
[
|
1733 |
+
'label' => __( 'Tooltip Arrow', 'essential-addons-elementor' ),
|
1734 |
+
'separator' => 'before',
|
1735 |
+
'type' => Controls_Manager::HEADING
|
1736 |
+
]
|
1737 |
+
);
|
1738 |
+
|
1739 |
+
// TODO: Working on this
|
1740 |
+
$this->add_control(
|
1741 |
+
'eael_pricing_table_tooltip_arrow_size',
|
1742 |
+
[
|
1743 |
+
'label' => esc_html__( 'Arrow Size', 'essential-addons-elementor' ),
|
1744 |
+
'type' => Controls_Manager::SLIDER,
|
1745 |
+
'range' => [
|
1746 |
+
'px' => [
|
1747 |
+
'max' => 45,
|
1748 |
+
'step' => 1
|
1749 |
+
],
|
1750 |
+
],
|
1751 |
+
'selectors' => [
|
1752 |
+
|
1753 |
+
// Right Position Arrow
|
1754 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); left: calc( (-{{SIZE}}px * 2) / 2 );',
|
1755 |
+
'div.tooltipster-sidetip.tooltipster-right .tooltipster-box' => 'margin-left: calc({{SIZE}}px - 10px);',
|
1756 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background,.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1757 |
+
|
1758 |
+
// Left Position Arrow
|
1759 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-left .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); right: calc( (-{{SIZE}}px * 2) / 2 );',
|
1760 |
+
'div.tooltipster-sidetip.tooltipster-left .tooltipster-box' => 'margin-right: calc({{SIZE}}px - 1px);',
|
1761 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1762 |
+
|
1763 |
+
// Top Position Arrow
|
1764 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-top .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%;top: 100%;',
|
1765 |
+
'div.tooltipster-sidetip.tooltipster-top .tooltipster-box' => 'margin-bottom: -1px;',
|
1766 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1767 |
+
|
1768 |
+
// Bottom Position Arrow
|
1769 |
+
'.tooltipster-sidetip.tooltipster-base.tooltipster-bottom .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%; top: auto; bottom: 88%;',
|
1770 |
+
|
1771 |
+
// 'div.tooltipster-sidetip.tooltipster-bottom .tooltipster-box' => 'margin-top: calc( {{SIZE}}px + 5px );',
|
1772 |
+
|
1773 |
+
'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background,
|
1774 |
+
.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;',
|
1775 |
+
|
1776 |
+
],
|
1777 |
+
]
|
1778 |
+
);
|
1779 |
+
$this->end_controls_section();
|
1780 |
+
|
1781 |
+
}
|
1782 |
+
|
1783 |
+
protected function render_feature_list( $settings ) {
|
1784 |
+
if( empty($settings['eael_pricing_table_items']) ) return;
|
1785 |
+
|
1786 |
+
$counter = 0;
|
1787 |
+
?>
|
1788 |
+
<ul>
|
1789 |
+
<?php
|
1790 |
+
foreach( $settings['eael_pricing_table_items'] as $item ) :
|
1791 |
+
|
1792 |
+
if( 'yes' === $item['eael_pricing_table_icon_mood'] ) {
|
1793 |
+
$this->add_render_attribute('pricing_feature_item'.$counter, 'class', 'disable-item');
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
if( 'yes' === $item['eael_pricing_item_tooltip'] ) {
|
1797 |
+
$this->add_render_attribute('pricing_feature_item'.$counter,
|
1798 |
+
[
|
1799 |
+
'class' => 'tooltip',
|
1800 |
+
'title' => $item['eael_pricing_item_tooltip_content'],
|
1801 |
+
'id' => $this->get_id() . $counter
|
1802 |
+
]
|
1803 |
+
);
|
1804 |
+
}
|
1805 |
+
|
1806 |
+
if( 'yes' == $item['eael_pricing_item_tooltip'] ) {
|
1807 |
+
|
1808 |
+
if( $item['eael_pricing_item_tooltip_side'] ) {
|
1809 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-side', $item['eael_pricing_item_tooltip_side'] );
|
1810 |
+
}
|
1811 |
+
|
1812 |
+
if( $item['eael_pricing_item_tooltip_trigger'] ) {
|
1813 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-trigger', $item['eael_pricing_item_tooltip_trigger'] );
|
1814 |
+
}
|
1815 |
+
|
1816 |
+
if( $item['eael_pricing_item_tooltip_animation'] ) {
|
1817 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-animation', $item['eael_pricing_item_tooltip_animation'] );
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
if( ! empty( $item['pricing_item_tooltip_animation_duration'] ) ) {
|
1821 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-animation_duration', $item['pricing_item_tooltip_animation_duration'] );
|
1822 |
+
}
|
1823 |
+
|
1824 |
+
if( ! empty( $item['eael_pricing_table_toolip_arrow'] ) ) {
|
1825 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-arrow', $item['eael_pricing_table_toolip_arrow'] );
|
1826 |
+
}
|
1827 |
+
|
1828 |
+
if( ! empty( $item['eael_pricing_item_tooltip_theme'] ) ) {
|
1829 |
+
$this->add_render_attribute( 'pricing_feature_item'.$counter, 'data-theme', $item['eael_pricing_item_tooltip_theme'] );
|
1830 |
+
}
|
1831 |
+
|
1832 |
+
}
|
1833 |
+
?>
|
1834 |
+
<li <?php echo $this->get_render_attribute_string('pricing_feature_item'.$counter); ?>>
|
1835 |
+
<?php if( 'show' === $settings['eael_pricing_table_icon_enabled'] ) : ?>
|
1836 |
+
<span class="li-icon" style="color:<?php echo esc_attr( $item['eael_pricing_table_list_icon_color'] ); ?>"><i class="<?php echo esc_attr( $item['eael_pricing_table_list_icon'] ); ?>"></i></span>
|
1837 |
+
<?php endif; ?>
|
1838 |
+
<?php echo $item['eael_pricing_table_item']; ?>
|
1839 |
+
</li>
|
1840 |
+
<?php $counter++; endforeach; ?>
|
1841 |
+
</ul>
|
1842 |
+
<?php
|
1843 |
}
|
1844 |
|
1845 |
|
1846 |
+
protected function render() {
|
1847 |
|
1848 |
$settings = $this->get_settings();
|
1849 |
$pricing_table_image = $this->get_settings( 'eael_pricing_table_image' );
|
1877 |
<span class="price-period"><?php echo $settings['eael_pricing_table_period_separator']; ?> <?php echo $settings['eael_pricing_table_price_period']; ?></span>
|
1878 |
</div>
|
1879 |
<div class="body">
|
1880 |
+
<?php $this->render_feature_list( $settings ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1881 |
</div>
|
1882 |
<div class="footer">
|
1883 |
<a href="<?php echo esc_url( $settings['eael_pricing_table_btn_link']['url'] ); ?>" <?php echo $target; ?> <?php echo $nofollow; ?> class="eael-pricing-button">
|
1907 |
<span class="price-period"><?php echo $settings['eael_pricing_table_period_separator']; ?> <?php echo $settings['eael_pricing_table_price_period']; ?></span>
|
1908 |
</div>
|
1909 |
<div class="body">
|
1910 |
+
<?php $this->render_feature_list( $settings ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1911 |
</div>
|
1912 |
<div class="footer">
|
1913 |
<a href="<?php echo esc_url( $settings['eael_pricing_table_btn_link']['url'] ); ?>" <?php echo $target; ?> <?php echo $nofollow; ?> class="eael-pricing-button">
|
elements/testimonials/testimonials.php
CHANGED
@@ -43,7 +43,7 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
43 |
);
|
44 |
|
45 |
$this->add_control(
|
46 |
-
'
|
47 |
[
|
48 |
'label' => __( 'Testimonial Avatar', 'essential-addons-elementor' ),
|
49 |
'type' => Controls_Manager::MEDIA,
|
@@ -60,10 +60,10 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
60 |
$this->add_group_control(
|
61 |
Group_Control_Image_Size::get_type(),
|
62 |
[
|
63 |
-
'name'
|
64 |
-
'default'
|
65 |
'condition' => [
|
66 |
-
'
|
67 |
'eael_testimonial_enable_avatar' => 'yes',
|
68 |
],
|
69 |
]
|
@@ -79,7 +79,6 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
79 |
]
|
80 |
);
|
81 |
|
82 |
-
|
83 |
$this->add_control(
|
84 |
'eael_testimonial_name',
|
85 |
[
|
@@ -110,32 +109,63 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
110 |
);
|
111 |
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
$this->end_controls_section();
|
114 |
|
115 |
-
|
|
|
116 |
'eael_section_pro',
|
117 |
[
|
118 |
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
119 |
]
|
120 |
);
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
'1' => [
|
129 |
'title' => __( '', 'essential-addons-elementor' ),
|
130 |
'icon' => 'fa fa-unlock-alt',
|
131 |
],
|
132 |
],
|
133 |
'default' => '1',
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
137 |
|
138 |
-
$this->end_controls_section();
|
139 |
|
140 |
$this->start_controls_section(
|
141 |
'eael_section_testimonial_styles_general',
|
@@ -146,42 +176,52 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
146 |
);
|
147 |
|
148 |
$this->add_control(
|
149 |
-
'
|
150 |
[
|
151 |
-
'label'
|
152 |
-
'type'
|
153 |
-
'default'
|
154 |
-
'
|
155 |
-
'
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
]
|
158 |
);
|
159 |
|
160 |
$this->add_control(
|
161 |
'eael_testimonial_alignment',
|
162 |
[
|
163 |
-
'label' => esc_html__( '
|
164 |
'type' => Controls_Manager::CHOOSE,
|
165 |
'label_block' => true,
|
166 |
'options' => [
|
167 |
-
'
|
168 |
'title' => __( 'Default', 'essential-addons-elementor' ),
|
169 |
'icon' => 'fa fa-ban',
|
170 |
],
|
171 |
-
'
|
172 |
'title' => esc_html__( 'Left', 'essential-addons-elementor' ),
|
173 |
'icon' => 'fa fa-align-left',
|
174 |
],
|
175 |
-
'
|
176 |
'title' => esc_html__( 'Center', 'essential-addons-elementor' ),
|
177 |
'icon' => 'fa fa-align-center',
|
178 |
],
|
179 |
-
'
|
180 |
'title' => esc_html__( 'Right', 'essential-addons-elementor' ),
|
181 |
'icon' => 'fa fa-align-right',
|
182 |
],
|
183 |
],
|
184 |
-
'default' => '
|
|
|
|
|
|
|
|
|
185 |
]
|
186 |
);
|
187 |
|
@@ -195,38 +235,6 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
195 |
]
|
196 |
);
|
197 |
|
198 |
-
$this->add_responsive_control(
|
199 |
-
'eael_testimonial_padding',
|
200 |
-
[
|
201 |
-
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
202 |
-
'type' => Controls_Manager::DIMENSIONS,
|
203 |
-
'size_units' => [ 'px', '%', 'em' ],
|
204 |
-
'selectors' => [
|
205 |
-
'{{WRAPPER}} .eael-testimonial-item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
206 |
-
],
|
207 |
-
]
|
208 |
-
);
|
209 |
-
|
210 |
-
$this->add_group_control(
|
211 |
-
Group_Control_Border::get_type(),
|
212 |
-
[
|
213 |
-
'name' => 'eael_testimonial_border',
|
214 |
-
'label' => esc_html__( 'Border', 'essential-addons-elementor' ),
|
215 |
-
'selector' => '{{WRAPPER}} .eael-testimonial-item',
|
216 |
-
]
|
217 |
-
);
|
218 |
-
|
219 |
-
$this->add_control(
|
220 |
-
'eael_testimonial_border_radius',
|
221 |
-
[
|
222 |
-
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
223 |
-
'type' => Controls_Manager::DIMENSIONS,
|
224 |
-
'selectors' => [
|
225 |
-
'{{WRAPPER}} .eael-testimonial-item' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;',
|
226 |
-
],
|
227 |
-
]
|
228 |
-
);
|
229 |
-
|
230 |
$this->end_controls_section();
|
231 |
|
232 |
|
@@ -234,7 +242,10 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
234 |
'eael_section_testimonial_image_styles',
|
235 |
[
|
236 |
'label' => esc_html__( 'Testimonial Image Style', 'essential-addons-elementor' ),
|
237 |
-
'tab' => Controls_Manager::TAB_STYLE
|
|
|
|
|
|
|
238 |
]
|
239 |
);
|
240 |
|
@@ -259,11 +270,32 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
259 |
],
|
260 |
'size_units' => [ '%', 'px' ],
|
261 |
'selectors' => [
|
262 |
-
'{{WRAPPER}} .eael-testimonial-image img' => 'width:{{SIZE}}{{UNIT}};',
|
263 |
],
|
264 |
]
|
265 |
);
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
$this->add_responsive_control(
|
269 |
'eael_testimonial_image_margin',
|
@@ -366,12 +398,12 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
366 |
$this->add_control(
|
367 |
'eael_testimonial_company_heading',
|
368 |
[
|
369 |
-
'label'
|
370 |
-
'type'
|
|
|
371 |
]
|
372 |
);
|
373 |
|
374 |
-
|
375 |
$this->add_control(
|
376 |
'eael_testimonial_company_color',
|
377 |
[
|
@@ -397,6 +429,7 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
397 |
[
|
398 |
'label' => __( 'Testimonial Text', 'essential-addons-elementor' ),
|
399 |
'type' => Controls_Manager::HEADING,
|
|
|
400 |
]
|
401 |
);
|
402 |
|
@@ -420,11 +453,13 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
420 |
]
|
421 |
);
|
422 |
|
423 |
-
$this->
|
424 |
-
|
|
|
|
|
425 |
[
|
426 |
-
'label' =>
|
427 |
-
'
|
428 |
]
|
429 |
);
|
430 |
|
@@ -448,55 +483,230 @@ class Widget_Eael_Testimonial extends Widget_Base {
|
|
448 |
]
|
449 |
);
|
450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
-
$this->
|
453 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
}
|
456 |
|
|
|
457 |
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
|
|
464 |
|
|
|
|
|
|
|
465 |
|
466 |
-
|
|
|
|
|
|
|
467 |
|
468 |
|
469 |
-
|
470 |
|
471 |
-
|
472 |
-
<span class="eael-testimonial-quote"></span>
|
473 |
-
<?php if( 'yes' == $settings['eael_testimonial_enable_avatar'] ) : ?>
|
474 |
-
<figure>
|
475 |
-
<img src="<?php echo esc_url($testimonial_image_url);?>" alt="<?php echo $settings['eael_testimonial_name'];?>">
|
476 |
-
</figure>
|
477 |
-
<?php endif; ?>
|
478 |
-
</div>
|
479 |
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
|
|
|
|
|
|
|
|
|
|
487 |
|
|
|
|
|
488 |
|
489 |
-
|
|
|
|
|
|
|
490 |
|
491 |
-
|
492 |
|
493 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
494 |
|
495 |
-
|
496 |
|
|
|
497 |
|
498 |
-
|
499 |
-
}
|
500 |
}
|
501 |
|
502 |
|
43 |
);
|
44 |
|
45 |
$this->add_control(
|
46 |
+
'image',
|
47 |
[
|
48 |
'label' => __( 'Testimonial Avatar', 'essential-addons-elementor' ),
|
49 |
'type' => Controls_Manager::MEDIA,
|
60 |
$this->add_group_control(
|
61 |
Group_Control_Image_Size::get_type(),
|
62 |
[
|
63 |
+
'name' => 'image',
|
64 |
+
'default' => 'thumbnail',
|
65 |
'condition' => [
|
66 |
+
'image[url]!' => '',
|
67 |
'eael_testimonial_enable_avatar' => 'yes',
|
68 |
],
|
69 |
]
|
79 |
]
|
80 |
);
|
81 |
|
|
|
82 |
$this->add_control(
|
83 |
'eael_testimonial_name',
|
84 |
[
|
109 |
);
|
110 |
|
111 |
|
112 |
+
$this->add_control(
|
113 |
+
'eael_testimonial_enable_rating',
|
114 |
+
[
|
115 |
+
'label' => esc_html__( 'Display Rating?', 'essential-addons-elementor' ),
|
116 |
+
'type' => Controls_Manager::SWITCHER,
|
117 |
+
'default' => 'yes',
|
118 |
+
]
|
119 |
+
);
|
120 |
+
|
121 |
+
|
122 |
+
$this->add_control(
|
123 |
+
'eael_testimonial_rating_number',
|
124 |
+
[
|
125 |
+
'label' => __( 'Rating Number', 'your-plugin' ),
|
126 |
+
'type' => Controls_Manager::SELECT,
|
127 |
+
'default' => 'rating-five',
|
128 |
+
'options' => [
|
129 |
+
'rating-one' => __( '1', 'essential-addons-elementor' ),
|
130 |
+
'rating-two' => __( '2', 'essential-addons-elementor' ),
|
131 |
+
'rating-three' => __( '3', 'essential-addons-elementor' ),
|
132 |
+
'rating-four' => __( '4', 'essential-addons-elementor' ),
|
133 |
+
'rating-five' => __( '5', 'essential-addons-elementor' ),
|
134 |
+
],
|
135 |
+
'condition' => [
|
136 |
+
'eael_testimonial_enable_rating' => 'yes',
|
137 |
+
],
|
138 |
+
]
|
139 |
+
);
|
140 |
+
|
141 |
$this->end_controls_section();
|
142 |
|
143 |
+
|
144 |
+
$this->start_controls_section(
|
145 |
'eael_section_pro',
|
146 |
[
|
147 |
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
148 |
]
|
149 |
);
|
150 |
+
|
151 |
+
$this->add_control(
|
152 |
+
'eael_control_get_pro',
|
153 |
+
[
|
154 |
+
'label' => __( 'Unlock more possibilities', 'essential-addons-elementor' ),
|
155 |
+
'type' => Controls_Manager::CHOOSE,
|
156 |
+
'options' => [
|
157 |
'1' => [
|
158 |
'title' => __( '', 'essential-addons-elementor' ),
|
159 |
'icon' => 'fa fa-unlock-alt',
|
160 |
],
|
161 |
],
|
162 |
'default' => '1',
|
163 |
+
'description' => '<span class="pro-feature"> Get the <a href="https://essential-addons.com/elementor/buy.php" target="_blank">Pro version</a> for more stunning elements and customization options.</span>'
|
164 |
+
]
|
165 |
+
);
|
166 |
+
|
167 |
+
$this->end_controls_section();
|
168 |
|
|
|
169 |
|
170 |
$this->start_controls_section(
|
171 |
'eael_section_testimonial_styles_general',
|
176 |
);
|
177 |
|
178 |
$this->add_control(
|
179 |
+
'eael_testimonial_style',
|
180 |
[
|
181 |
+
'label' => __( 'Select Style', 'your-plugin' ),
|
182 |
+
'type' => Controls_Manager::SELECT,
|
183 |
+
'default' => 'default-style',
|
184 |
+
'options' => [
|
185 |
+
'default-style' => __( 'Default', 'essential-addons-elementor' ),
|
186 |
+
'classic-style' => __( 'Classic', 'essential-addons-elementor' ),
|
187 |
+
'middle-style' => __( 'Content | Icon/Image | Bio', 'essential-addons-elementor' ),
|
188 |
+
'icon-img-left-content' => __( 'Icon/Image | Content', 'essential-addons-elementor' ),
|
189 |
+
'icon-img-right-content' => __( 'Content | Icon/Image', 'essential-addons-elementor' ),
|
190 |
+
'content-top-icon-title-inline' => __( 'Content Top | Icon Title Inline', 'essential-addons-elementor' ),
|
191 |
+
'content-bottom-icon-title-inline' => __( 'Content Bottom | Icon Title Inline', 'essential-addons-elementor' )
|
192 |
+
]
|
193 |
]
|
194 |
);
|
195 |
|
196 |
$this->add_control(
|
197 |
'eael_testimonial_alignment',
|
198 |
[
|
199 |
+
'label' => esc_html__( 'Layout Alignment', 'essential-addons-elementor' ),
|
200 |
'type' => Controls_Manager::CHOOSE,
|
201 |
'label_block' => true,
|
202 |
'options' => [
|
203 |
+
'default' => [
|
204 |
'title' => __( 'Default', 'essential-addons-elementor' ),
|
205 |
'icon' => 'fa fa-ban',
|
206 |
],
|
207 |
+
'left' => [
|
208 |
'title' => esc_html__( 'Left', 'essential-addons-elementor' ),
|
209 |
'icon' => 'fa fa-align-left',
|
210 |
],
|
211 |
+
'center' => [
|
212 |
'title' => esc_html__( 'Center', 'essential-addons-elementor' ),
|
213 |
'icon' => 'fa fa-align-center',
|
214 |
],
|
215 |
+
'right' => [
|
216 |
'title' => esc_html__( 'Right', 'essential-addons-elementor' ),
|
217 |
'icon' => 'fa fa-align-right',
|
218 |
],
|
219 |
],
|
220 |
+
'default' => 'default',
|
221 |
+
'selectors' => [
|
222 |
+
'{{WRAPPER}} .eael-testimonial-content' => 'text-align: {{VALUE}};',
|
223 |
+
'{{WRAPPER}} .eael-testimonial-image' => 'text-align: {{VALUE}};',
|
224 |
+
],
|
225 |
]
|
226 |
);
|
227 |
|
235 |
]
|
236 |
);
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
$this->end_controls_section();
|
239 |
|
240 |
|
242 |
'eael_section_testimonial_image_styles',
|
243 |
[
|
244 |
'label' => esc_html__( 'Testimonial Image Style', 'essential-addons-elementor' ),
|
245 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
246 |
+
'condition' => [
|
247 |
+
'eael_testimonial_enable_avatar' => 'yes'
|
248 |
+
]
|
249 |
]
|
250 |
);
|
251 |
|
270 |
],
|
271 |
'size_units' => [ '%', 'px' ],
|
272 |
'selectors' => [
|
273 |
+
'{{WRAPPER}} .eael-testimonial-image figure > img' => 'width:{{SIZE}}{{UNIT}};',
|
274 |
],
|
275 |
]
|
276 |
);
|
277 |
|
278 |
+
$this->add_responsive_control(
|
279 |
+
'eael_testimonial_max_image_width',
|
280 |
+
[
|
281 |
+
'label' => esc_html__( 'Image Max Width', 'essential-addons-elementor' ),
|
282 |
+
'type' => Controls_Manager::SLIDER,
|
283 |
+
'default' => [
|
284 |
+
'size' => 100,
|
285 |
+
'unit' => '%',
|
286 |
+
],
|
287 |
+
'range' => [
|
288 |
+
'%' => [
|
289 |
+
'min' => 0,
|
290 |
+
'max' => 100,
|
291 |
+
],
|
292 |
+
],
|
293 |
+
'size_units' => [ '%' ],
|
294 |
+
'selectors' => [
|
295 |
+
'{{WRAPPER}} .eael-testimonial-image' => 'max-width:{{SIZE}}{{UNIT}};',
|
296 |
+
],
|
297 |
+
]
|
298 |
+
);
|
299 |
|
300 |
$this->add_responsive_control(
|
301 |
'eael_testimonial_image_margin',
|
398 |
$this->add_control(
|
399 |
'eael_testimonial_company_heading',
|
400 |
[
|
401 |
+
'label' => __( 'Company Name', 'essential-addons-elementor' ),
|
402 |
+
'type' => Controls_Manager::HEADING,
|
403 |
+
'separator' => 'before'
|
404 |
]
|
405 |
);
|
406 |
|
|
|
407 |
$this->add_control(
|
408 |
'eael_testimonial_company_color',
|
409 |
[
|
429 |
[
|
430 |
'label' => __( 'Testimonial Text', 'essential-addons-elementor' ),
|
431 |
'type' => Controls_Manager::HEADING,
|
432 |
+
'separator' => 'before'
|
433 |
]
|
434 |
);
|
435 |
|
453 |
]
|
454 |
);
|
455 |
|
456 |
+
$this->end_controls_section();
|
457 |
+
|
458 |
+
$this->start_controls_section(
|
459 |
+
'eael_section_testimonial_quotation_typography',
|
460 |
[
|
461 |
+
'label' => esc_html__( 'Quotation Style', 'essential-addons-elementor' ),
|
462 |
+
'tab' => Controls_Manager::TAB_STYLE
|
463 |
]
|
464 |
);
|
465 |
|
483 |
]
|
484 |
);
|
485 |
|
486 |
+
$this->add_responsive_control(
|
487 |
+
'eael_testimonial_quotation_top',
|
488 |
+
[
|
489 |
+
'label' => esc_html__( 'Quotation Postion From Top', 'essential-addons-elementor' ),
|
490 |
+
'type' => Controls_Manager::SLIDER,
|
491 |
+
'default' => [
|
492 |
+
'size' => 5,
|
493 |
+
'unit' => '%',
|
494 |
+
],
|
495 |
+
'range' => [
|
496 |
+
'%' => [
|
497 |
+
'min' => 0,
|
498 |
+
'max' => 100,
|
499 |
+
]
|
500 |
+
],
|
501 |
+
'size_units' => [ '%' ],
|
502 |
+
'selectors' => [
|
503 |
+
'{{WRAPPER}} span.eael-testimonial-quote' => 'top:{{SIZE}}{{UNIT}};',
|
504 |
+
],
|
505 |
+
]
|
506 |
+
);
|
507 |
|
508 |
+
$this->add_responsive_control(
|
509 |
+
'eael_testimonial_quotation_right',
|
510 |
+
[
|
511 |
+
'label' => esc_html__( 'Quotation Postion From Right', 'essential-addons-elementor' ),
|
512 |
+
'type' => Controls_Manager::SLIDER,
|
513 |
+
'default' => [
|
514 |
+
'size' => 5,
|
515 |
+
'unit' => '%',
|
516 |
+
],
|
517 |
+
'range' => [
|
518 |
+
'%' => [
|
519 |
+
'min' => 0,
|
520 |
+
'max' => 100,
|
521 |
+
]
|
522 |
+
],
|
523 |
+
'size_units' => [ '%' ],
|
524 |
+
'selectors' => [
|
525 |
+
'{{WRAPPER}} span.eael-testimonial-quote' => 'right:{{SIZE}}{{UNIT}};',
|
526 |
+
],
|
527 |
+
]
|
528 |
+
);
|
529 |
|
530 |
+
$this->end_controls_section();
|
531 |
+
}
|
532 |
+
|
533 |
+
protected function render_testimonial_image() {
|
534 |
+
$settings = $this->get_settings();
|
535 |
+
$image = Group_Control_Image_Size::get_attachment_image_html( $settings );
|
536 |
+
if( ! empty($image) && ! empty($settings['eael_testimonial_enable_avatar']) ) {
|
537 |
+
ob_start();
|
538 |
+
?>
|
539 |
+
<div class="eael-testimonial-image">
|
540 |
+
<?php if( 'yes' == $settings['eael_testimonial_enable_avatar'] ) : ?>
|
541 |
+
<figure><?php echo Group_Control_Image_Size::get_attachment_image_html( $settings ); ?></figure>
|
542 |
+
<?php endif; ?>
|
543 |
+
</div>
|
544 |
+
<?php
|
545 |
+
echo ob_get_clean();
|
546 |
+
}
|
547 |
}
|
548 |
|
549 |
+
protected function render_testimonial_rating() {
|
550 |
|
551 |
+
if ( ! empty( $this->get_settings_for_display('eael_testimonial_enable_rating') ) ) :
|
552 |
+
ob_start();
|
553 |
+
?>
|
554 |
+
<ul class="testimonial-star-rating">
|
555 |
+
<li><i class="fa fa-star" aria-hidden="true"></i></li>
|
556 |
+
<li><i class="fa fa-star" aria-hidden="true"></i></li>
|
557 |
+
<li><i class="fa fa-star" aria-hidden="true"></i></li>
|
558 |
+
<li><i class="fa fa-star" aria-hidden="true"></i></li>
|
559 |
+
<li><i class="fa fa-star" aria-hidden="true"></i></li>
|
560 |
+
</ul>
|
561 |
+
<?php
|
562 |
+
echo ob_get_clean();
|
563 |
+
endif;
|
564 |
+
}
|
565 |
|
566 |
+
protected function render_user_name_and_company() {
|
567 |
+
$settings = $this->get_settings_for_display();
|
568 |
+
if( ! empty($settings['eael_testimonial_name']) ) : ?><p <?php echo $this->get_render_attribute_string('eael_testimonial_user'); ?>><?php echo $settings['eael_testimonial_name']; ?></p><?php endif;
|
569 |
+
if( ! empty($settings['eael_testimonial_company_title']) ) : ?><p class="eael-testimonial-user-company"><?php echo $settings['eael_testimonial_company_title']; ?></p><?php endif;
|
570 |
+
}
|
571 |
|
572 |
+
protected function testimonial_quote() {
|
573 |
+
echo '<span class="eael-testimonial-quote"></span>';
|
574 |
+
}
|
575 |
|
576 |
+
protected function testimonial_desc() {
|
577 |
+
$settings = $this->get_settings_for_display();
|
578 |
+
echo '<div class="eael-testimonial-text">'.wpautop($settings['eael_testimonial_description']).'</div>';
|
579 |
+
}
|
580 |
|
581 |
|
582 |
+
protected function render() {
|
583 |
|
584 |
+
$settings = $this->get_settings_for_display();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
+
$this->add_render_attribute(
|
587 |
+
'eael_testimonial_wrap',
|
588 |
+
[
|
589 |
+
'id' => 'eael-testimonial-'.esc_attr($this->get_id()),
|
590 |
+
'class' => [
|
591 |
+
'eael-testimonial-item',
|
592 |
+
'clearfix',
|
593 |
+
$this->get_settings('eael_testimonial_image_rounded'),
|
594 |
+
esc_attr($settings['eael_testimonial_style']),
|
595 |
+
]
|
596 |
+
]
|
597 |
+
);
|
598 |
|
599 |
+
if ( ! empty( $this->get_settings_for_display('eael_testimonial_enable_rating') ) )
|
600 |
+
$this->add_render_attribute('eael_testimonial_wrap', 'class', $this->get_settings('eael_testimonial_rating_number'));
|
601 |
|
602 |
+
$this->add_render_attribute('eael_testimonial_user', 'class', 'eael-testimonial-user');
|
603 |
+
if ( ! empty( $settings['eael_testimonial_user_display_block'] ) )
|
604 |
+
$this->add_render_attribute('eael_testimonial_user', 'style', 'display: block; float: none;');
|
605 |
+
|
606 |
|
607 |
+
?>
|
608 |
|
609 |
+
<div <?php echo $this->get_render_attribute_string('eael_testimonial_wrap'); ?>>
|
610 |
+
|
611 |
+
<?php if('classic-style' == $settings['eael_testimonial_style']) { ?>
|
612 |
+
<div class="eael-testimonial-content">
|
613 |
+
<?php
|
614 |
+
// $this->testimonial_quote();
|
615 |
+
$this->testimonial_desc();
|
616 |
+
?>
|
617 |
+
<div class="clearfix">
|
618 |
+
<?php $this->render_user_name_and_company(); ?>
|
619 |
+
</div>
|
620 |
+
<?php $this->render_testimonial_rating(); ?>
|
621 |
+
</div>
|
622 |
+
<?php $this->render_testimonial_image(); ?>
|
623 |
+
<?php } ?>
|
624 |
+
|
625 |
+
<?php if('middle-style' == $settings['eael_testimonial_style']) { ?>
|
626 |
+
<div class="eael-testimonial-content">
|
627 |
+
<?php
|
628 |
+
// $this->testimonial_quote();
|
629 |
+
$this->testimonial_desc();
|
630 |
+
?>
|
631 |
+
<?php $this->render_testimonial_image(); ?>
|
632 |
+
<div class="clearfix">
|
633 |
+
<?php $this->render_user_name_and_company(); ?>
|
634 |
+
</div>
|
635 |
+
<?php $this->render_testimonial_rating(); ?>
|
636 |
+
</div>
|
637 |
+
<?php } ?>
|
638 |
+
|
639 |
+
<?php if('default-style' == $settings['eael_testimonial_style']) { ?>
|
640 |
+
<?php $this->render_testimonial_image(); ?>
|
641 |
+
<div class="eael-testimonial-content">
|
642 |
+
<?php
|
643 |
+
// $this->testimonial_quote();
|
644 |
+
$this->testimonial_desc();
|
645 |
+
$this->render_testimonial_rating();
|
646 |
+
$this->render_user_name_and_company();
|
647 |
+
?>
|
648 |
+
</div>
|
649 |
+
<?php } ?>
|
650 |
+
|
651 |
+
<?php if('icon-img-left-content' == $settings['eael_testimonial_style']) { ?>
|
652 |
+
<?php
|
653 |
+
// $this->testimonial_quote();
|
654 |
+
$this->render_testimonial_image();
|
655 |
+
?>
|
656 |
+
<div class="eael-testimonial-content">
|
657 |
+
<?php
|
658 |
+
$this->testimonial_desc();
|
659 |
+
$this->render_testimonial_rating();
|
660 |
+
?>
|
661 |
+
<div class="bio-text clearfix">
|
662 |
+
<?php $this->render_user_name_and_company(); ?>
|
663 |
+
</div>
|
664 |
+
</div>
|
665 |
+
<?php } ?>
|
666 |
+
|
667 |
+
<?php if('icon-img-right-content' == $settings['eael_testimonial_style']) { ?>
|
668 |
+
<?php
|
669 |
+
// $this->testimonial_quote();
|
670 |
+
$this->render_testimonial_image();
|
671 |
+
?>
|
672 |
+
<div class="eael-testimonial-content">
|
673 |
+
<?php
|
674 |
+
$this->testimonial_desc();
|
675 |
+
$this->render_testimonial_rating();
|
676 |
+
?>
|
677 |
+
<div class="bio-text-right"><?php $this->render_user_name_and_company(); ?></div>
|
678 |
+
</div>
|
679 |
+
<?php } ?>
|
680 |
+
|
681 |
+
<?php if('content-top-icon-title-inline' == $settings['eael_testimonial_style']) { ?>
|
682 |
+
<div class="eael-testimonial-content eael-testimonial-inline-bio">
|
683 |
+
<?php $this->render_testimonial_image(); ?>
|
684 |
+
<div class="bio-text"><?php $this->render_user_name_and_company(); ?></div>
|
685 |
+
<?php $this->render_testimonial_rating(); ?>
|
686 |
+
</div>
|
687 |
+
<div class="eael-testimonial-content">
|
688 |
+
<?php $this->testimonial_desc(); ?>
|
689 |
+
</div>
|
690 |
+
<?php } ?>
|
691 |
+
|
692 |
+
<?php if('content-bottom-icon-title-inline' == $settings['eael_testimonial_style']) { ?>
|
693 |
+
<div class="eael-testimonial-content">
|
694 |
+
<?php $this->testimonial_desc(); ?>
|
695 |
+
</div>
|
696 |
+
<div class="eael-testimonial-content eael-testimonial-inline-bio">
|
697 |
+
<?php $this->render_testimonial_image(); ?>
|
698 |
+
<div class="bio-text"><?php $this->render_user_name_and_company(); ?></div>
|
699 |
+
<?php $this->render_testimonial_rating(); ?>
|
700 |
+
</div>
|
701 |
+
<?php } ?>
|
702 |
+
|
703 |
+
<?php $this->testimonial_quote(); ?>
|
704 |
|
705 |
+
</div>
|
706 |
|
707 |
+
<?php }
|
708 |
|
709 |
+
protected function content_template() {}
|
|
|
710 |
}
|
711 |
|
712 |
|
essential_adons_elementor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: The ultimate elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
-
* Version: 2.7.
|
8 |
* Author URI: https://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
@@ -196,6 +196,11 @@ function essential_addons_el_enqueue(){
|
|
196 |
wp_enqueue_script('essential_addons_magnific-popup-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/jquery.magnific-popup.min.js', array('jquery'),'1.0', true);
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
|
|
199 |
}
|
200 |
add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
|
201 |
|
4 |
* Description: The ultimate elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
+
* Version: 2.7.6
|
8 |
* Author URI: https://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
196 |
wp_enqueue_script('essential_addons_magnific-popup-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/jquery.magnific-popup.min.js', array('jquery'),'1.0', true);
|
197 |
}
|
198 |
|
199 |
+
if( $is_component_active['price-table'] ) {
|
200 |
+
wp_enqueue_style('essential_addons_elementor-tooltipster',ESSENTIAL_ADDONS_EL_URL.'assets/css/tooltipster.bundle.min.css');
|
201 |
+
wp_enqueue_script('essential_addons_elementor-tooltipster-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/tooltipster.bundle.min.js', array('jquery'),'1.0', true);
|
202 |
+
}
|
203 |
+
|
204 |
}
|
205 |
add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
|
206 |
|
includes/elementor-helper.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
namespace Elementor;
|
|
|
3 |
|
4 |
function eael_elementor_init(){
|
5 |
Plugin::instance()->elements_manager->add_category(
|
@@ -756,160 +757,158 @@ class EAE_Helper {
|
|
756 |
* @since 2.10.0
|
757 |
*/
|
758 |
|
759 |
-
|
|
|
760 |
|
761 |
-
|
762 |
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
|
777 |
-
|
778 |
|
779 |
-
|
780 |
-
|
|
|
781 |
}
|
782 |
-
}
|
783 |
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
protected function init_fields() {
|
788 |
-
$fields = [];
|
789 |
|
790 |
-
|
791 |
-
|
792 |
-
'type' => Controls_Manager::SELECT,
|
793 |
-
];
|
794 |
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
'options' => \eael_get_all_types_post(),
|
800 |
-
'label_block' => true,
|
801 |
-
'multiple' => true,
|
802 |
-
'condition' => [
|
803 |
-
'post_type' => 'by_id',
|
804 |
-
],
|
805 |
-
];
|
806 |
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
'by_id',
|
817 |
],
|
818 |
-
]
|
819 |
-
];
|
820 |
-
|
821 |
-
return $fields;
|
822 |
-
}
|
823 |
-
|
824 |
-
protected function prepare_fields( $fields ) {
|
825 |
|
826 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
827 |
|
828 |
-
|
|
|
829 |
|
830 |
-
|
831 |
|
832 |
-
|
833 |
|
834 |
-
|
835 |
|
836 |
-
|
837 |
|
838 |
-
|
839 |
-
'show_in_nav_menus' => true,
|
840 |
-
];
|
841 |
|
842 |
-
|
843 |
-
$taxonomy_filter_args['object_type'] = [ $args['post_type'] ];
|
844 |
-
}
|
845 |
|
846 |
-
|
847 |
|
848 |
-
|
849 |
-
|
850 |
-
'label' => $object->label,
|
851 |
-
'type' => Controls_Manager::SELECT2,
|
852 |
-
'label_block' => true,
|
853 |
-
'multiple' => true,
|
854 |
-
'object_type' => $taxonomy,
|
855 |
-
'options' => [],
|
856 |
-
'condition' => [
|
857 |
-
'post_type' => $object->object_type,
|
858 |
-
],
|
859 |
];
|
860 |
|
861 |
-
|
|
|
|
|
862 |
|
863 |
-
$
|
864 |
|
865 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
866 |
|
867 |
-
|
868 |
-
$options[ $term->term_id ] = $term->name;
|
869 |
-
}
|
870 |
|
871 |
-
|
872 |
|
873 |
-
|
874 |
-
}
|
875 |
|
876 |
-
|
|
|
|
|
877 |
|
878 |
-
|
879 |
-
}
|
880 |
|
881 |
-
|
882 |
-
|
883 |
-
* @return array
|
884 |
-
*/
|
885 |
-
public function get_authors() {
|
886 |
-
$user_query = new \WP_User_Query(
|
887 |
-
[
|
888 |
-
'who' => 'authors',
|
889 |
-
'has_published_posts' => true,
|
890 |
-
'fields' => [
|
891 |
-
'ID',
|
892 |
-
'display_name',
|
893 |
-
],
|
894 |
-
]
|
895 |
-
);
|
896 |
|
897 |
-
|
898 |
|
899 |
-
|
900 |
-
$authors[ $result->ID ] = $result->display_name;
|
901 |
}
|
902 |
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
911 |
|
912 |
-
|
913 |
|
|
|
|
|
|
|
914 |
|
|
|
|
|
915 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
namespace Elementor;
|
3 |
+
use Elementor\Group_Control_Base;
|
4 |
|
5 |
function eael_elementor_init(){
|
6 |
Plugin::instance()->elements_manager->add_category(
|
757 |
* @since 2.10.0
|
758 |
*/
|
759 |
|
760 |
+
if( class_exists( 'Elementor\Plugin' ) ) :
|
761 |
+
class EAE_Posts_Group_Control extends Group_Control_Base {
|
762 |
|
763 |
+
protected static $fields;
|
764 |
|
765 |
+
public static function get_type() {
|
766 |
+
return 'eaeposts';
|
767 |
+
}
|
768 |
|
769 |
+
public static function on_export_remove_setting_from_element( $element, $control_id ) {
|
770 |
+
unset( $element['settings'][ $control_id . '_posts_ids' ] );
|
771 |
+
unset( $element['settings'][ $control_id . '_authors' ] );
|
772 |
|
773 |
+
foreach ( Utils::get_post_types() as $post_type => $label ) {
|
774 |
+
$taxonomy_filter_args = [
|
775 |
+
'show_in_nav_menus' => true,
|
776 |
+
'object_type' => [ $post_type ],
|
777 |
+
];
|
778 |
|
779 |
+
$taxonomies = get_taxonomies( $taxonomy_filter_args, 'objects' );
|
780 |
|
781 |
+
foreach ( $taxonomies as $taxonomy => $object ) {
|
782 |
+
unset( $element['settings'][ $control_id . '_' . $taxonomy . '_ids' ] );
|
783 |
+
}
|
784 |
}
|
|
|
785 |
|
786 |
+
return $element;
|
787 |
+
}
|
|
|
|
|
|
|
788 |
|
789 |
+
protected function init_fields() {
|
790 |
+
$fields = [];
|
|
|
|
|
791 |
|
792 |
+
$fields['post_type'] = [
|
793 |
+
'label' => __( 'Source', 'essential-addons-elementor' ),
|
794 |
+
'type' => Controls_Manager::SELECT,
|
795 |
+
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
796 |
|
797 |
+
$fields['posts_ids'] = [
|
798 |
+
'label' => __( 'Search & Select', 'essential-addons-elementor' ),
|
799 |
+
'type' => Controls_Manager::SELECT2,
|
800 |
+
'post_type' => '',
|
801 |
+
'options' => \eael_get_all_types_post(),
|
802 |
+
'label_block' => true,
|
803 |
+
'multiple' => true,
|
804 |
+
'condition' => [
|
805 |
+
'post_type' => 'by_id',
|
|
|
806 |
],
|
807 |
+
];
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
|
809 |
+
$fields['authors'] = [
|
810 |
+
'label' => __( 'Author', 'essential-addons-elementor' ),
|
811 |
+
'label_block' => true,
|
812 |
+
'type' => Controls_Manager::SELECT2,
|
813 |
+
'multiple' => true,
|
814 |
+
'default' => [],
|
815 |
+
'options' => $this->get_authors(),
|
816 |
+
'condition' => [
|
817 |
+
'post_type!' => [
|
818 |
+
'by_id',
|
819 |
+
],
|
820 |
+
],
|
821 |
+
];
|
822 |
|
823 |
+
return $fields;
|
824 |
+
}
|
825 |
|
826 |
+
protected function prepare_fields( $fields ) {
|
827 |
|
828 |
+
$post_types = eael_get_post_types();
|
829 |
|
830 |
+
$post_types_options = $post_types;
|
831 |
|
832 |
+
$post_types_options['by_id'] = __( 'Manual Selection', 'essential-addons-elementor' );
|
833 |
|
834 |
+
$fields['post_type']['options'] = $post_types_options;
|
|
|
|
|
835 |
|
836 |
+
$fields['post_type']['default'] = key( $post_types );
|
|
|
|
|
837 |
|
838 |
+
$fields['posts_ids']['object_type'] = array_keys( $post_types );
|
839 |
|
840 |
+
$taxonomy_filter_args = [
|
841 |
+
'show_in_nav_menus' => true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
842 |
];
|
843 |
|
844 |
+
if ( ! empty( $args['post_type'] ) ) {
|
845 |
+
$taxonomy_filter_args['object_type'] = [ $args['post_type'] ];
|
846 |
+
}
|
847 |
|
848 |
+
$taxonomies = get_taxonomies( $taxonomy_filter_args, 'objects' );
|
849 |
|
850 |
+
foreach ( $taxonomies as $taxonomy => $object ) {
|
851 |
+
$taxonomy_args = [
|
852 |
+
'label' => $object->label,
|
853 |
+
'type' => Controls_Manager::SELECT2,
|
854 |
+
'label_block' => true,
|
855 |
+
'multiple' => true,
|
856 |
+
'object_type' => $taxonomy,
|
857 |
+
'options' => [],
|
858 |
+
'condition' => [
|
859 |
+
'post_type' => $object->object_type,
|
860 |
+
],
|
861 |
+
];
|
862 |
|
863 |
+
$options = [];
|
|
|
|
|
864 |
|
865 |
+
$taxonomy_args['type'] = Controls_Manager::SELECT2;
|
866 |
|
867 |
+
$terms = get_terms( $taxonomy );
|
|
|
868 |
|
869 |
+
foreach ( $terms as $term ) {
|
870 |
+
$options[ $term->term_id ] = $term->name;
|
871 |
+
}
|
872 |
|
873 |
+
$taxonomy_args['options'] = $options;
|
|
|
874 |
|
875 |
+
$fields[ $taxonomy . '_ids' ] = $taxonomy_args;
|
876 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
|
878 |
+
unset( $fields['post_format_ids'] );
|
879 |
|
880 |
+
return parent::prepare_fields( $fields );
|
|
|
881 |
}
|
882 |
|
883 |
+
/**
|
884 |
+
* All authors name and ID, who published at least 1 post.
|
885 |
+
* @return array
|
886 |
+
*/
|
887 |
+
public function get_authors() {
|
888 |
+
$user_query = new \WP_User_Query(
|
889 |
+
[
|
890 |
+
'who' => 'authors',
|
891 |
+
'has_published_posts' => true,
|
892 |
+
'fields' => [
|
893 |
+
'ID',
|
894 |
+
'display_name',
|
895 |
+
],
|
896 |
+
]
|
897 |
+
);
|
898 |
|
899 |
+
$authors = [];
|
900 |
|
901 |
+
foreach ( $user_query->get_results() as $result ) {
|
902 |
+
$authors[ $result->ID ] = $result->display_name;
|
903 |
+
}
|
904 |
|
905 |
+
return $authors;
|
906 |
+
}
|
907 |
|
908 |
+
protected function get_default_options() {
|
909 |
+
return [
|
910 |
+
'popover' => false,
|
911 |
+
];
|
912 |
+
}
|
913 |
+
}
|
914 |
+
endif;
|
includes/queries.php
CHANGED
@@ -26,9 +26,9 @@ function eael_get_post_types(){
|
|
26 |
*/
|
27 |
function eael_get_all_types_post(){
|
28 |
$posts_args = array(
|
29 |
-
'post_type'
|
30 |
-
'post_style'
|
31 |
-
'post_status'
|
32 |
'posts_per_page' => '-1',
|
33 |
);
|
34 |
$posts = eael_load_more_ajax( $posts_args );
|
@@ -53,7 +53,7 @@ function eael_get_post_settings( $settings ){
|
|
53 |
}
|
54 |
}
|
55 |
|
56 |
-
$post_args['post_style']
|
57 |
$post_args['post_status'] = 'publish';
|
58 |
|
59 |
return $post_args;
|
@@ -104,15 +104,15 @@ function eael_get_thumbnail_sizes(){
|
|
104 |
*/
|
105 |
function eael_get_post_orderby_options(){
|
106 |
$orderby = array(
|
107 |
-
'ID'
|
108 |
-
'author'
|
109 |
-
'title'
|
110 |
-
'date'
|
111 |
-
'modified'
|
112 |
-
'parent'
|
113 |
-
'rand'
|
114 |
'comment_count' => 'Comment Count',
|
115 |
-
'menu_order'
|
116 |
);
|
117 |
|
118 |
return $orderby;
|
@@ -124,7 +124,7 @@ function eael_get_post_orderby_options(){
|
|
124 |
*/
|
125 |
function eael_post_type_categories(){
|
126 |
$terms = get_terms( array(
|
127 |
-
'taxonomy'
|
128 |
'hide_empty' => true,
|
129 |
));
|
130 |
|
@@ -143,7 +143,7 @@ function eael_post_type_categories(){
|
|
143 |
*/
|
144 |
function eael_woocommerce_product_categories(){
|
145 |
$terms = get_terms( array(
|
146 |
-
'taxonomy'
|
147 |
'hide_empty' => true,
|
148 |
));
|
149 |
|
@@ -181,7 +181,7 @@ function eael_woocommerce_product_get_product_by_id(){
|
|
181 |
*/
|
182 |
function eael_woocommerce_product_categories_by_id(){
|
183 |
$terms = get_terms( array(
|
184 |
-
'taxonomy'
|
185 |
'hide_empty' => true,
|
186 |
));
|
187 |
|
26 |
*/
|
27 |
function eael_get_all_types_post(){
|
28 |
$posts_args = array(
|
29 |
+
'post_type' => 'any',
|
30 |
+
'post_style' => 'all_types',
|
31 |
+
'post_status' => 'publish',
|
32 |
'posts_per_page' => '-1',
|
33 |
);
|
34 |
$posts = eael_load_more_ajax( $posts_args );
|
53 |
}
|
54 |
}
|
55 |
|
56 |
+
$post_args['post_style'] = isset( $post_args['post_style'] ) ? $post_args['post_style'] : 'grid';
|
57 |
$post_args['post_status'] = 'publish';
|
58 |
|
59 |
return $post_args;
|
104 |
*/
|
105 |
function eael_get_post_orderby_options(){
|
106 |
$orderby = array(
|
107 |
+
'ID' => 'Post ID',
|
108 |
+
'author' => 'Post Author',
|
109 |
+
'title' => 'Title',
|
110 |
+
'date' => 'Date',
|
111 |
+
'modified' => 'Last Modified Date',
|
112 |
+
'parent' => 'Parent Id',
|
113 |
+
'rand' => 'Random',
|
114 |
'comment_count' => 'Comment Count',
|
115 |
+
'menu_order' => 'Menu Order',
|
116 |
);
|
117 |
|
118 |
return $orderby;
|
124 |
*/
|
125 |
function eael_post_type_categories(){
|
126 |
$terms = get_terms( array(
|
127 |
+
'taxonomy' => 'category',
|
128 |
'hide_empty' => true,
|
129 |
));
|
130 |
|
143 |
*/
|
144 |
function eael_woocommerce_product_categories(){
|
145 |
$terms = get_terms( array(
|
146 |
+
'taxonomy' => 'product_cat',
|
147 |
'hide_empty' => true,
|
148 |
));
|
149 |
|
181 |
*/
|
182 |
function eael_woocommerce_product_categories_by_id(){
|
183 |
$terms = get_terms( array(
|
184 |
+
'taxonomy' => 'product_cat',
|
185 |
'hide_empty' => true,
|
186 |
));
|
187 |
|
readme.txt
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
Contributors: Codetic, re_enter_rupok, Asif2BD, robicse11128, priyomukul, mahfuz01, manik08cse
|
3 |
Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.9.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.7.
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
11 |
-
Ultimate elements library for Elementor WordPress Page Builder.
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -62,7 +62,7 @@ Ultimate elements library for Elementor WordPress Page Builder. Lots of useful
|
|
62 |
* [Advanced Accordion](https://essential-addons.com/elementor/advanced-accordion/)
|
63 |
|
64 |
|
65 |
-
### More elements (
|
66 |
|
67 |
* [Post Block (Flex)](https://essential-addons.com/elementor/post-block/)
|
68 |
* [Lightbox & Modal](https://essential-addons.com/elementor/lightbox-modal/)
|
@@ -89,6 +89,7 @@ Ultimate elements library for Elementor WordPress Page Builder. Lots of useful
|
|
89 |
* [Team Member Carousel](https://essential-addons.com/elementor/team-member-carousel/)
|
90 |
* [Post Carousel](https://essential-addons.com/elementor/post-carousel/)
|
91 |
* [Logo Carousel](https://essential-addons.com/elementor/logo-carousel/)
|
|
|
92 |
|
93 |
More coming soon (weekly update) ...
|
94 |
|
@@ -139,6 +140,15 @@ Your existing elements/content will work with premium version. So you won't lose
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 2.7.5 =
|
143 |
- (Make sure to clear cache nad hrad refresh the page after update)
|
144 |
- Post elements improved and optimized
|
2 |
Contributors: Codetic, re_enter_rupok, Asif2BD, robicse11128, priyomukul, mahfuz01, manik08cse
|
3 |
Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.9.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.7.6
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
11 |
+
Ultimate elements library for Elementor WordPress Page Builder. 54+ Premium elements with endless customization options.
|
12 |
|
13 |
== Description ==
|
14 |
|
62 |
* [Advanced Accordion](https://essential-addons.com/elementor/advanced-accordion/)
|
63 |
|
64 |
|
65 |
+
### More elements (26+) on [Premium Version](https://essential-addons.com/elementor/buy.php)
|
66 |
|
67 |
* [Post Block (Flex)](https://essential-addons.com/elementor/post-block/)
|
68 |
* [Lightbox & Modal](https://essential-addons.com/elementor/lightbox-modal/)
|
89 |
* [Team Member Carousel](https://essential-addons.com/elementor/team-member-carousel/)
|
90 |
* [Post Carousel](https://essential-addons.com/elementor/post-carousel/)
|
91 |
* [Logo Carousel](https://essential-addons.com/elementor/logo-carousel/)
|
92 |
+
* [Protected Content](https://essential-addons.com/elementor/protected-content/)
|
93 |
|
94 |
More coming soon (weekly update) ...
|
95 |
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 2.7.6 =
|
144 |
+
- (Make sure to clear cache nad hrad refresh the page after update)
|
145 |
+
- Tooltip option added to Pricing Table widget
|
146 |
+
- Testimonial element improved with more layout options
|
147 |
+
- Flip Box element improved with more options
|
148 |
+
- Countdown element improved
|
149 |
+
- Post queries optimized for all post elements
|
150 |
+
- Few minor bugfix and improvements
|
151 |
+
|
152 |
= 2.7.5 =
|
153 |
- (Make sure to clear cache nad hrad refresh the page after update)
|
154 |
- Post elements improved and optimized
|