Version Description
Added : Social Embed Widget Update : Post Meta : Improved Content Alignment field Fix : Minor bug fixes and Improvements
Download this release
Release Info
Developer | posimyththemes |
Plugin | The Plus Addons for Elementor | FREE Elementor Widgets & Elementor Templates, Header Menu, Blog Post Builder, Dark Mode, Full-Page Scroll, Cross Domain Copy |
Version | 5.1.12 |
Comparing to | |
See all releases |
Code changes from version 5.1.11 to 5.1.12
- assets/css/main/social-embed/plus-social-embed.css +49 -0
- assets/css/main/social-embed/plus-social-embed.min.css +49 -0
- includes/plus_addon.php +7 -0
- includes/theplus_options.php +2 -2
- includes/welcome-page.php +3 -3
- modules/enqueue/plus-library.php +1 -0
- modules/theplus-include-widgets.php +1 -0
- modules/widgets/tp_post_meta.php +2 -2
- modules/widgets/tp_social_embed.php +3070 -0
- readme.txt +6 -1
- theplus_elementor_addon.php +2 -2
assets/css/main/social-embed/plus-social-embed.css
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Social Embed */
|
2 |
+
.tp-social-embed {
|
3 |
+
text-align: center;
|
4 |
+
}
|
5 |
+
.tp-social-embed a {
|
6 |
+
text-decoration: none;
|
7 |
+
}
|
8 |
+
.tp-social-embed .tw-button{
|
9 |
+
color: #0073aa;
|
10 |
+
}
|
11 |
+
/* used in youtube */
|
12 |
+
.social-embed-link{
|
13 |
+
color: #a4afb7;
|
14 |
+
}
|
15 |
+
.social-embed-link.select-down{
|
16 |
+
padding : 10px 0px 15px 0px;
|
17 |
+
}
|
18 |
+
.social-embed-link a{
|
19 |
+
color: #d30c5c;
|
20 |
+
text-decoration: none;
|
21 |
+
font-size: 11px;
|
22 |
+
font-style: italic;
|
23 |
+
line-height: 1.4;
|
24 |
+
text-align: right;
|
25 |
+
font-weight: bold;
|
26 |
+
}
|
27 |
+
|
28 |
+
.tp-social-embed iframe.tp-frame-set {
|
29 |
+
border: none;
|
30 |
+
}
|
31 |
+
|
32 |
+
.tp-social-embed .fluidvids {
|
33 |
+
width: unset;
|
34 |
+
max-width: unset;
|
35 |
+
position: unset;
|
36 |
+
padding-top: 0% !important;
|
37 |
+
}
|
38 |
+
.tp-social-embed .fluidvids .fluidvids-item {
|
39 |
+
position: unset;
|
40 |
+
top: unset;
|
41 |
+
left: unset;
|
42 |
+
width: unset;
|
43 |
+
height: unset;
|
44 |
+
}
|
45 |
+
.tp-social-embed iframe.instagram-media.instagram-media-rendered {
|
46 |
+
width: 100%;
|
47 |
+
display: unset !important;
|
48 |
+
}
|
49 |
+
/* Social Embed */
|
assets/css/main/social-embed/plus-social-embed.min.css
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Social Embed */
|
2 |
+
.tp-social-embed {
|
3 |
+
text-align: center;
|
4 |
+
}
|
5 |
+
.tp-social-embed a {
|
6 |
+
text-decoration: none;
|
7 |
+
}
|
8 |
+
.tp-social-embed .tw-button{
|
9 |
+
color: #0073aa;
|
10 |
+
}
|
11 |
+
/* used in youtube */
|
12 |
+
.social-embed-link{
|
13 |
+
color: #a4afb7;
|
14 |
+
}
|
15 |
+
.social-embed-link.select-down{
|
16 |
+
padding : 10px 0px 15px 0px;
|
17 |
+
}
|
18 |
+
.social-embed-link a{
|
19 |
+
color: #d30c5c;
|
20 |
+
text-decoration: none;
|
21 |
+
font-size: 11px;
|
22 |
+
font-style: italic;
|
23 |
+
line-height: 1.4;
|
24 |
+
text-align: right;
|
25 |
+
font-weight: bold;
|
26 |
+
}
|
27 |
+
|
28 |
+
.tp-social-embed iframe.tp-frame-set {
|
29 |
+
border: none;
|
30 |
+
}
|
31 |
+
|
32 |
+
.tp-social-embed .fluidvids {
|
33 |
+
width: unset;
|
34 |
+
max-width: unset;
|
35 |
+
position: unset;
|
36 |
+
padding-top: 0% !important;
|
37 |
+
}
|
38 |
+
.tp-social-embed .fluidvids .fluidvids-item {
|
39 |
+
position: unset;
|
40 |
+
top: unset;
|
41 |
+
left: unset;
|
42 |
+
width: unset;
|
43 |
+
height: unset;
|
44 |
+
}
|
45 |
+
.tp-social-embed iframe.instagram-media.instagram-media-rendered {
|
46 |
+
width: 100%;
|
47 |
+
display: unset !important;
|
48 |
+
}
|
49 |
+
/* Social Embed */
|
includes/plus_addon.php
CHANGED
@@ -742,6 +742,13 @@ function l_registered_widgets(){
|
|
742 |
],
|
743 |
],
|
744 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
'tp-social-icon' => [
|
746 |
'dependency' => [
|
747 |
'css' => [
|
742 |
],
|
743 |
],
|
744 |
],
|
745 |
+
'tp-social-embed' => [
|
746 |
+
'dependency' => [
|
747 |
+
'css' => [
|
748 |
+
L_THEPLUS_PATH . DIRECTORY_SEPARATOR .'assets/css/main/social-embed/plus-social-embed.min.css',
|
749 |
+
],
|
750 |
+
],
|
751 |
+
],
|
752 |
'tp-social-icon' => [
|
753 |
'dependency' => [
|
754 |
'css' => [
|
includes/theplus_options.php
CHANGED
@@ -544,7 +544,7 @@ class L_Theplus_Elementor_Plugin_Options
|
|
544 |
'demoUrl' => 'https://theplusaddons.com/widgets/caldera-forms',
|
545 |
'docUrl' => 'https://docs.posimyth.com/tpae/caldera-forms-widget/',
|
546 |
'videoUrl' => 'https://www.youtube.com/embed/8J8Qg2aMQqs',
|
547 |
-
'tag' => '
|
548 |
'labelIcon' => '<svg xmlns="http://www.w3.org/2000/svg" width="16.867" height="23" viewBox="0 0 512 512"><path d="M349.32 52.26C328.278 35.495 292.938 0 256 0c-36.665 0-71.446 34.769-93.31 52.26-34.586 27.455-109.525 87.898-145.097 117.015A47.99 47.99 0 0 0 0 206.416V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V206.413a47.989 47.989 0 0 0-17.597-37.144C458.832 140.157 383.906 79.715 349.32 52.26zM464 480H48c-8.837 0-16-7.163-16-16V206.161c0-4.806 2.155-9.353 5.878-12.392C64.16 172.315 159.658 95.526 182.59 77.32 200.211 63.27 232.317 32 256 32c23.686 0 55.789 31.27 73.41 45.32 22.932 18.207 118.436 95.008 144.714 116.468a15.99 15.99 0 0 1 5.876 12.39V464c0 8.837-7.163 16-16 16zm-8.753-216.312c4.189 5.156 3.393 12.732-1.776 16.905-22.827 18.426-55.135 44.236-104.156 83.148-21.045 16.8-56.871 52.518-93.318 52.258-36.58.264-72.826-35.908-93.318-52.263-49.015-38.908-81.321-64.716-104.149-83.143-5.169-4.173-5.966-11.749-1.776-16.905l5.047-6.212c4.169-5.131 11.704-5.925 16.848-1.772 22.763 18.376 55.014 44.143 103.938 82.978 16.85 13.437 50.201 45.69 73.413 45.315 23.219.371 56.562-31.877 73.413-45.315 48.929-38.839 81.178-64.605 103.938-82.978 5.145-4.153 12.679-3.359 16.848 1.772l5.048 6.212z"/></svg>',
|
549 |
'keyword' => ['caldera forms','form'],
|
550 |
],
|
@@ -1120,7 +1120,7 @@ class L_Theplus_Elementor_Plugin_Options
|
|
1120 |
'demoUrl' => 'https://theplusaddons.com/widgets/social-embed/',
|
1121 |
'docUrl' => 'https://docs.posimyth.com/tpae/social-embed/',
|
1122 |
'videoUrl' => 'https://youtu.be/MbopAQ85pdg',
|
1123 |
-
'tag' => '
|
1124 |
'labelIcon' => '<svg xmlns="http://www.w3.org/2000/svg" width="16.867" height="23" viewBox="0 0 640 512"><path d="M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"></path></svg>',
|
1125 |
'keyword' => ['social embed'],
|
1126 |
],
|
544 |
'demoUrl' => 'https://theplusaddons.com/widgets/caldera-forms',
|
545 |
'docUrl' => 'https://docs.posimyth.com/tpae/caldera-forms-widget/',
|
546 |
'videoUrl' => 'https://www.youtube.com/embed/8J8Qg2aMQqs',
|
547 |
+
'tag' => 'DEPRECATED',
|
548 |
'labelIcon' => '<svg xmlns="http://www.w3.org/2000/svg" width="16.867" height="23" viewBox="0 0 512 512"><path d="M349.32 52.26C328.278 35.495 292.938 0 256 0c-36.665 0-71.446 34.769-93.31 52.26-34.586 27.455-109.525 87.898-145.097 117.015A47.99 47.99 0 0 0 0 206.416V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V206.413a47.989 47.989 0 0 0-17.597-37.144C458.832 140.157 383.906 79.715 349.32 52.26zM464 480H48c-8.837 0-16-7.163-16-16V206.161c0-4.806 2.155-9.353 5.878-12.392C64.16 172.315 159.658 95.526 182.59 77.32 200.211 63.27 232.317 32 256 32c23.686 0 55.789 31.27 73.41 45.32 22.932 18.207 118.436 95.008 144.714 116.468a15.99 15.99 0 0 1 5.876 12.39V464c0 8.837-7.163 16-16 16zm-8.753-216.312c4.189 5.156 3.393 12.732-1.776 16.905-22.827 18.426-55.135 44.236-104.156 83.148-21.045 16.8-56.871 52.518-93.318 52.258-36.58.264-72.826-35.908-93.318-52.263-49.015-38.908-81.321-64.716-104.149-83.143-5.169-4.173-5.966-11.749-1.776-16.905l5.047-6.212c4.169-5.131 11.704-5.925 16.848-1.772 22.763 18.376 55.014 44.143 103.938 82.978 16.85 13.437 50.201 45.69 73.413 45.315 23.219.371 56.562-31.877 73.413-45.315 48.929-38.839 81.178-64.605 103.938-82.978 5.145-4.153 12.679-3.359 16.848 1.772l5.048 6.212z"/></svg>',
|
549 |
'keyword' => ['caldera forms','form'],
|
550 |
],
|
1120 |
'demoUrl' => 'https://theplusaddons.com/widgets/social-embed/',
|
1121 |
'docUrl' => 'https://docs.posimyth.com/tpae/social-embed/',
|
1122 |
'videoUrl' => 'https://youtu.be/MbopAQ85pdg',
|
1123 |
+
'tag' => 'free',
|
1124 |
'labelIcon' => '<svg xmlns="http://www.w3.org/2000/svg" width="16.867" height="23" viewBox="0 0 640 512"><path d="M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"></path></svg>',
|
1125 |
'keyword' => ['social embed'],
|
1126 |
],
|
includes/welcome-page.php
CHANGED
@@ -94,10 +94,10 @@ echo '<div class="theplus-panel-welcome-page">';
|
|
94 |
echo '<div class="theplus-sec-subtitle">'.esc_html__('Notable additions made to The Plus Addons for Elementor.','tpebl').'</div>';
|
95 |
echo '<div class="theplus-sec-border"></div>';
|
96 |
echo '<div class="theplus-changelog-list">';
|
97 |
-
echo '<div class="changelog-date">Sep
|
98 |
echo '<ul class="changelog-list">';
|
99 |
-
echo '<li>'.esc_html__('Added :
|
100 |
-
echo '<li>'.esc_html__('
|
101 |
echo '<li>'.esc_html__('Fix : Minor fixes and Improvements','tpebl').'</li>';
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
94 |
echo '<div class="theplus-sec-subtitle">'.esc_html__('Notable additions made to The Plus Addons for Elementor.','tpebl').'</div>';
|
95 |
echo '<div class="theplus-sec-border"></div>';
|
96 |
echo '<div class="theplus-changelog-list">';
|
97 |
+
echo '<div class="changelog-date">Sep 21,2022 <span class="changelog-version">Lite Version 5.1.12</span></div>';
|
98 |
echo '<ul class="changelog-list">';
|
99 |
+
echo '<li>'.esc_html__('Added : Social Embed Widget','tpebl').'</li>';
|
100 |
+
echo '<li>'.esc_html__('Update : Post Meta : Improved Content Alignment field','tpebl').'</li>';
|
101 |
echo '<li>'.esc_html__('Fix : Minor fixes and Improvements','tpebl').'</li>';
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
modules/enqueue/plus-library.php
CHANGED
@@ -69,6 +69,7 @@ Class L_Plus_Library
|
|
69 |
'tp_post_search' => 'tp-post-search',
|
70 |
'tp_progress_bar' => 'tp-progress-bar',
|
71 |
'tp_scroll_navigation' => 'tp-scroll-navigation',
|
|
|
72 |
'tp_social_icon' => 'tp-social-icon',
|
73 |
'tp_tabs_tours' => 'tp-tabs-tours',
|
74 |
'tp_team_member_listout' => 'tp-team-member-listout',
|
69 |
'tp_post_search' => 'tp-post-search',
|
70 |
'tp_progress_bar' => 'tp-progress-bar',
|
71 |
'tp_scroll_navigation' => 'tp-scroll-navigation',
|
72 |
+
'tp_social_embed' => 'tp-social-embed',
|
73 |
'tp_social_icon' => 'tp-social-icon',
|
74 |
'tp_tabs_tours' => 'tp-tabs-tours',
|
75 |
'tp_team_member_listout' => 'tp-team-member-listout',
|
modules/theplus-include-widgets.php
CHANGED
@@ -140,6 +140,7 @@ if ( ! class_exists( 'L_Theplus_Widgets_Include' ) ) {
|
|
140 |
'tp_progress_bar' => '\TheplusAddons\Widgets\L_ThePlus_Progress_Bar',
|
141 |
'tp_scroll_navigation' => '\TheplusAddons\Widgets\L_ThePlus_Scroll_Navigation',
|
142 |
'tp_social_icon' => '\TheplusAddons\Widgets\L_ThePlus_Social_Icon',
|
|
|
143 |
'tp_tabs_tours' => '\TheplusAddons\Widgets\L_ThePlus_Tabs_Tours',
|
144 |
'tp_team_member_listout' => '\TheplusAddons\Widgets\L_ThePlus_Team_Member_ListOut',
|
145 |
'tp_testimonial_listout' => '\TheplusAddons\Widgets\L_ThePlus_Testimonial_ListOut',
|
140 |
'tp_progress_bar' => '\TheplusAddons\Widgets\L_ThePlus_Progress_Bar',
|
141 |
'tp_scroll_navigation' => '\TheplusAddons\Widgets\L_ThePlus_Scroll_Navigation',
|
142 |
'tp_social_icon' => '\TheplusAddons\Widgets\L_ThePlus_Social_Icon',
|
143 |
+
'tp_social_embed' => '\TheplusAddons\Widgets\L_ThePlus_Social_Embed',
|
144 |
'tp_tabs_tours' => '\TheplusAddons\Widgets\L_ThePlus_Tabs_Tours',
|
145 |
'tp_team_member_listout' => '\TheplusAddons\Widgets\L_ThePlus_Team_Member_ListOut',
|
146 |
'tp_testimonial_listout' => '\TheplusAddons\Widgets\L_ThePlus_Testimonial_ListOut',
|
modules/widgets/tp_post_meta.php
CHANGED
@@ -187,9 +187,9 @@ class L_ThePlus_Post_Meta extends Widget_Base {
|
|
187 |
'title' => esc_html__( 'Right', 'tpebl' ),
|
188 |
'icon' => 'eicon-text-align-right',
|
189 |
],
|
190 |
-
],
|
191 |
'selectors' => [
|
192 |
-
'{{WRAPPER}} .tp-post-meta-info span' => 'align-items: {{VALUE}} !important;',
|
193 |
],
|
194 |
]
|
195 |
);
|
187 |
'title' => esc_html__( 'Right', 'tpebl' ),
|
188 |
'icon' => 'eicon-text-align-right',
|
189 |
],
|
190 |
+
],
|
191 |
'selectors' => [
|
192 |
+
'{{WRAPPER}} .tp-post-meta-info span' => 'align-items: {{VALUE}} !important;justify-content: {{VALUE}} !important;',
|
193 |
],
|
194 |
]
|
195 |
);
|
modules/widgets/tp_social_embed.php
ADDED
@@ -0,0 +1,3070 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Widget Name: Social Embed
|
4 |
+
Description: Social Embed
|
5 |
+
Author: Theplus
|
6 |
+
Author URI: https://posimyth.com
|
7 |
+
*/
|
8 |
+
namespace TheplusAddons\Widgets;
|
9 |
+
|
10 |
+
use Elementor\Widget_Base;
|
11 |
+
use Elementor\Controls_Manager;
|
12 |
+
use Elementor\Utils;
|
13 |
+
use Elementor\Core\Schemes\Color;
|
14 |
+
use Elementor\Group_Control_Border;
|
15 |
+
use Elementor\Group_Control_Background;
|
16 |
+
use Elementor\Group_Control_Box_Shadow;
|
17 |
+
|
18 |
+
use TheplusAddons\Theplus_Element_Load;
|
19 |
+
if (!defined('ABSPATH'))
|
20 |
+
exit; // Exit if accessed directly
|
21 |
+
|
22 |
+
|
23 |
+
class L_ThePlus_Social_Embed extends Widget_Base {
|
24 |
+
|
25 |
+
public function get_name() {
|
26 |
+
return 'tp-social-embed';
|
27 |
+
}
|
28 |
+
|
29 |
+
public function get_title() {
|
30 |
+
return esc_html__('Social Embed', 'tpebl');
|
31 |
+
}
|
32 |
+
|
33 |
+
public function get_icon() {
|
34 |
+
return 'fa fa-code theplus_backend_icon';
|
35 |
+
}
|
36 |
+
|
37 |
+
public function get_categories() {
|
38 |
+
return array('plus-essential');
|
39 |
+
}
|
40 |
+
|
41 |
+
protected function register_controls() {
|
42 |
+
/*Embed Option Start*/
|
43 |
+
$this->start_controls_section(
|
44 |
+
'content_section',
|
45 |
+
[
|
46 |
+
'label' => esc_html__( 'Embed Options', 'tpebl' ),
|
47 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
48 |
+
]
|
49 |
+
);
|
50 |
+
$this->add_control('EmbedType',
|
51 |
+
[
|
52 |
+
'label' => esc_html__( 'Type', 'tpebl' ),
|
53 |
+
'type' => Controls_Manager::SELECT,
|
54 |
+
'default' => 'facebook',
|
55 |
+
'options' => [
|
56 |
+
'facebook' => esc_html__( 'Facebook', 'tpebl' ),
|
57 |
+
'twitter' => esc_html__( 'Twitter', 'tpebl' ),
|
58 |
+
'vimeo' => esc_html__( 'Vimeo', 'tpebl' ),
|
59 |
+
'instagram' => esc_html__( 'Instagram', 'tpebl' ),
|
60 |
+
'youtube' => esc_html__( 'YouTube', 'tpebl' ),
|
61 |
+
'googlemap' => esc_html__( 'Google Map', 'tpebl' ),
|
62 |
+
],
|
63 |
+
]
|
64 |
+
);
|
65 |
+
$this->end_controls_section();
|
66 |
+
/*Embed Option End*/
|
67 |
+
/*Facebook Start*/
|
68 |
+
$this->start_controls_section(
|
69 |
+
'semd_Fb',
|
70 |
+
[
|
71 |
+
'label' => esc_html__( 'Facebook', 'tpebl' ),
|
72 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
73 |
+
'condition' => [
|
74 |
+
'EmbedType' => 'facebook',
|
75 |
+
],
|
76 |
+
]
|
77 |
+
);
|
78 |
+
$this->add_control(
|
79 |
+
'Type',
|
80 |
+
[
|
81 |
+
'label' => esc_html__( 'Type', 'tpebl' ),
|
82 |
+
'type' => Controls_Manager::SELECT,
|
83 |
+
'default' => 'videos',
|
84 |
+
'options' => [
|
85 |
+
'comments' => esc_html__( 'Comments', 'tpebl' ),
|
86 |
+
'posts' => esc_html__( 'Posts', 'tpebl' ),
|
87 |
+
'videos' => esc_html__( 'Videos', 'tpebl' ),
|
88 |
+
'page' => esc_html__( 'Page', 'tpebl' ),
|
89 |
+
'likebutton' => esc_html__( 'Like Button', 'tpebl' ),
|
90 |
+
'save' => esc_html__( 'Save Button', 'tpebl' ),
|
91 |
+
'share' => esc_html__( 'Share Button', 'tpebl' ),
|
92 |
+
],
|
93 |
+
'condition' => [
|
94 |
+
'EmbedType' => 'facebook',
|
95 |
+
],
|
96 |
+
]
|
97 |
+
);
|
98 |
+
$this->add_control(
|
99 |
+
'CommentType',
|
100 |
+
[
|
101 |
+
'label' => esc_html__( 'Options', 'tpebl' ),
|
102 |
+
'type' => Controls_Manager::SELECT,
|
103 |
+
'default' => 'viewcomment',
|
104 |
+
'options' => [
|
105 |
+
'viewcomment' => esc_html__( 'View Comments', 'tpebl' ),
|
106 |
+
'onlypost' => esc_html__( 'Add Comments', 'tpebl' ),
|
107 |
+
],
|
108 |
+
'condition' => [
|
109 |
+
'EmbedType' => 'facebook',
|
110 |
+
'Type' => 'comments',
|
111 |
+
],
|
112 |
+
'separator' => 'before',
|
113 |
+
]
|
114 |
+
);
|
115 |
+
$this->add_control(
|
116 |
+
'CommentTypeViewCommentDep',
|
117 |
+
[
|
118 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
119 |
+
'raw' => 'Note : The Embedded Comments has been deprecated.<a rel="noopener noreferrer" target="_blank" href="https://developers.facebook.com/docs/plugins/embedded-comments/" target="_blank">More Info</a>',
|
120 |
+
'content_classes' => 'tp-widget-description',
|
121 |
+
'condition' => [
|
122 |
+
'EmbedType' => 'facebook',
|
123 |
+
'Type' => 'comments',
|
124 |
+
'CommentType' => 'viewcomment',
|
125 |
+
],
|
126 |
+
]
|
127 |
+
);
|
128 |
+
$this->add_control(
|
129 |
+
'CommentURL',
|
130 |
+
[
|
131 |
+
'label' => __( 'Comment URL', 'tpebl' ),
|
132 |
+
'type' => Controls_Manager::URL,
|
133 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
134 |
+
'show_external' => true,
|
135 |
+
'dynamic' => [ 'active' => true ],
|
136 |
+
'default' => [
|
137 |
+
'url' => 'https://www.facebook.com/posimyth/posts/2107330979289233?comment_id=2107337105955287&reply_comment_id=2108417645847233',
|
138 |
+
'is_external' => true,
|
139 |
+
'nofollow' => true,
|
140 |
+
],
|
141 |
+
'condition' => [
|
142 |
+
'EmbedType' => 'facebook',
|
143 |
+
'Type' => 'comments',
|
144 |
+
'CommentType' => 'viewcomment',
|
145 |
+
],
|
146 |
+
]
|
147 |
+
);
|
148 |
+
$this->add_control(
|
149 |
+
'AppID',
|
150 |
+
[
|
151 |
+
'label' => esc_html__( 'App ID', 'tpebl' ),
|
152 |
+
'type' => Controls_Manager::TEXT,
|
153 |
+
'dynamic' => [ 'active' => true ],
|
154 |
+
'default' => '',
|
155 |
+
'condition' => [
|
156 |
+
'EmbedType' => 'facebook',
|
157 |
+
'Type' => 'comments',
|
158 |
+
'CommentType' => 'onlypost',
|
159 |
+
],
|
160 |
+
]
|
161 |
+
);
|
162 |
+
$this->add_control(
|
163 |
+
'AppIDFbPost',
|
164 |
+
[
|
165 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
166 |
+
'raw' => 'Note : How to <a href="https://developers.facebook.com/apps" target="_blank" rel="noopener noreferrer">Create App ID ?</a>',
|
167 |
+
'content_classes' => 'tp-widget-description',
|
168 |
+
'condition' => [
|
169 |
+
'EmbedType' => 'facebook',
|
170 |
+
'Type' => 'comments',
|
171 |
+
'CommentType' => 'onlypost',
|
172 |
+
],
|
173 |
+
]
|
174 |
+
);
|
175 |
+
$this->add_control(
|
176 |
+
'TargetC',
|
177 |
+
[
|
178 |
+
'label' => esc_html__( 'Target URL', 'tpebl' ),
|
179 |
+
'type' => Controls_Manager::SELECT,
|
180 |
+
'default' => 'custom',
|
181 |
+
'options' => [
|
182 |
+
'currentpage' => esc_html__( 'Current Page', 'tpebl' ),
|
183 |
+
'custom' => esc_html__( 'Custom', 'tpebl' ),
|
184 |
+
],
|
185 |
+
'condition' => [
|
186 |
+
'EmbedType' => 'facebook',
|
187 |
+
'Type' => 'comments',
|
188 |
+
'CommentType' => 'onlypost',
|
189 |
+
],
|
190 |
+
'separator' => 'before',
|
191 |
+
]
|
192 |
+
);
|
193 |
+
$this->add_control(
|
194 |
+
'URLFC',
|
195 |
+
[
|
196 |
+
'label' => esc_html__( 'URL Format', 'tpebl' ),
|
197 |
+
'type' => Controls_Manager::SELECT,
|
198 |
+
'default' => 'plain',
|
199 |
+
'options' => [
|
200 |
+
'plain' => esc_html__( 'Plain Permalink', 'tpebl' ),
|
201 |
+
'pretty' => esc_html__( 'Pretty Permalink', 'tpebl' ),
|
202 |
+
],
|
203 |
+
'condition' => [
|
204 |
+
'EmbedType' => 'facebook',
|
205 |
+
'Type' => 'comments',
|
206 |
+
'CommentType' => 'onlypost',
|
207 |
+
'TargetC' => 'currentpage',
|
208 |
+
],
|
209 |
+
]
|
210 |
+
);
|
211 |
+
$this->add_control(
|
212 |
+
'CommentAddURL',
|
213 |
+
[
|
214 |
+
'label' => __( 'Custom URL', 'tpebl' ),
|
215 |
+
'type' => Controls_Manager::URL,
|
216 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
217 |
+
'show_external' => true,
|
218 |
+
'dynamic' => [ 'active' => true ],
|
219 |
+
'default' => [
|
220 |
+
'url' => 'https://www.facebook.com/',
|
221 |
+
'is_external' => true,
|
222 |
+
'nofollow' => true,
|
223 |
+
],
|
224 |
+
'condition' => [
|
225 |
+
'EmbedType' => 'facebook',
|
226 |
+
'Type' => 'comments',
|
227 |
+
'CommentType' => 'onlypost',
|
228 |
+
'TargetC' => 'custom',
|
229 |
+
],
|
230 |
+
]
|
231 |
+
);
|
232 |
+
$this->add_control(
|
233 |
+
'PostURL',
|
234 |
+
[
|
235 |
+
'label' => __( 'Post URL', 'tpebl' ),
|
236 |
+
'type' => Controls_Manager::URL,
|
237 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
238 |
+
'show_external' => true,
|
239 |
+
'dynamic' => [ 'active' => true ],
|
240 |
+
'default' => [
|
241 |
+
'url' => 'https://www.facebook.com/posimyth/posts/3054603914561930',
|
242 |
+
'is_external' => true,
|
243 |
+
'nofollow' => true,
|
244 |
+
],
|
245 |
+
'condition' => [
|
246 |
+
'EmbedType' => 'facebook',
|
247 |
+
'Type' => 'posts',
|
248 |
+
],
|
249 |
+
'separator' => 'before',
|
250 |
+
]
|
251 |
+
);
|
252 |
+
$this->add_control(
|
253 |
+
'VideosURL',
|
254 |
+
[
|
255 |
+
'label' => __( 'Videos URL', 'tpebl' ),
|
256 |
+
'type' => Controls_Manager::URL,
|
257 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
258 |
+
'show_external' => true,
|
259 |
+
'dynamic' => [ 'active' => true ],
|
260 |
+
'default' => [
|
261 |
+
'url' => 'https://www.facebook.com/posimyth/videos/444986032863860/',
|
262 |
+
'is_external' => true,
|
263 |
+
'nofollow' => true,
|
264 |
+
],
|
265 |
+
'condition' => [
|
266 |
+
'EmbedType' => 'facebook',
|
267 |
+
'Type' => 'videos',
|
268 |
+
],
|
269 |
+
'separator' => 'before',
|
270 |
+
]
|
271 |
+
);
|
272 |
+
$this->add_control(
|
273 |
+
'URLP',
|
274 |
+
[
|
275 |
+
'label' => __( 'Page URL', 'tpebl' ),
|
276 |
+
'type' => Controls_Manager::URL,
|
277 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
278 |
+
'show_external' => true,
|
279 |
+
'dynamic' => [ 'active' => true ],
|
280 |
+
'default' => [
|
281 |
+
'url' => 'https://www.facebook.com/posimyth',
|
282 |
+
'is_external' => true,
|
283 |
+
'nofollow' => true,
|
284 |
+
],
|
285 |
+
'condition' => [
|
286 |
+
'EmbedType' => 'facebook',
|
287 |
+
'Type' => 'page',
|
288 |
+
],
|
289 |
+
'separator' => 'before',
|
290 |
+
]
|
291 |
+
);
|
292 |
+
$this->add_control(
|
293 |
+
'TargetLike',
|
294 |
+
[
|
295 |
+
'label' => esc_html__( 'Target URL', 'tpebl' ),
|
296 |
+
'type' => Controls_Manager::SELECT,
|
297 |
+
'default' => 'custom',
|
298 |
+
'options' => [
|
299 |
+
'currentpage' => esc_html__( 'Current Page', 'tpebl' ),
|
300 |
+
'custom' => esc_html__( 'Custom', 'tpebl' ),
|
301 |
+
],
|
302 |
+
'condition' => [
|
303 |
+
'EmbedType' => 'facebook',
|
304 |
+
'Type' => 'likebutton',
|
305 |
+
],
|
306 |
+
'separator' => 'before',
|
307 |
+
]
|
308 |
+
);
|
309 |
+
$this->add_control(
|
310 |
+
'FmtURLlb',
|
311 |
+
[
|
312 |
+
'label' => esc_html__( 'URL Format', 'tpebl' ),
|
313 |
+
'type' => Controls_Manager::SELECT,
|
314 |
+
'default' => 'plain',
|
315 |
+
'options' => [
|
316 |
+
'plain' => esc_html__( 'Plain Permalink', 'tpebl' ),
|
317 |
+
'pretty' => esc_html__( 'Pretty Permalink', 'tpebl' ),
|
318 |
+
],
|
319 |
+
'condition' => [
|
320 |
+
'EmbedType' => 'facebook',
|
321 |
+
'Type' => 'likebutton',
|
322 |
+
'TargetLike' => 'currentpage',
|
323 |
+
],
|
324 |
+
]
|
325 |
+
);
|
326 |
+
$this->add_control(
|
327 |
+
'likeBtnUrl',
|
328 |
+
[
|
329 |
+
'label' => __( 'Like Button URL', 'tpebl' ),
|
330 |
+
'type' => Controls_Manager::URL,
|
331 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
332 |
+
'show_external' => true,
|
333 |
+
'dynamic' => [ 'active' => true ],
|
334 |
+
'default' => [
|
335 |
+
'url' => 'https://www.facebook.com/posimyth',
|
336 |
+
'is_external' => true,
|
337 |
+
'nofollow' => true,
|
338 |
+
],
|
339 |
+
'condition' => [
|
340 |
+
'EmbedType' => 'facebook',
|
341 |
+
'Type' => 'likebutton',
|
342 |
+
'TargetLike' => 'custom',
|
343 |
+
],
|
344 |
+
]
|
345 |
+
);
|
346 |
+
$this->add_control(
|
347 |
+
'SaveURL',
|
348 |
+
[
|
349 |
+
'label' => __( 'Save URL', 'tpebl' ),
|
350 |
+
'type' => Controls_Manager::URL,
|
351 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
352 |
+
'show_external' => true,
|
353 |
+
'dynamic' => [ 'active' => true ],
|
354 |
+
'default' => [
|
355 |
+
'url' => 'https://www.facebook.com/',
|
356 |
+
'is_external' => true,
|
357 |
+
'nofollow' => true,
|
358 |
+
],
|
359 |
+
'condition' => [
|
360 |
+
'EmbedType' => 'facebook',
|
361 |
+
'Type' => 'save',
|
362 |
+
],
|
363 |
+
'separator' => 'before',
|
364 |
+
]
|
365 |
+
);
|
366 |
+
$this->add_control(
|
367 |
+
'ShareURL',
|
368 |
+
[
|
369 |
+
'label' => __( 'Share URL', 'tpebl' ),
|
370 |
+
'type' => Controls_Manager::URL,
|
371 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
372 |
+
'show_external' => true,
|
373 |
+
'dynamic' => [ 'active' => true ],
|
374 |
+
'default' => [
|
375 |
+
'url' => 'https://www.facebook.com/',
|
376 |
+
'is_external' => true,
|
377 |
+
'nofollow' => true,
|
378 |
+
],
|
379 |
+
'condition' => [
|
380 |
+
'EmbedType' => 'facebook',
|
381 |
+
'Type' => 'share',
|
382 |
+
],
|
383 |
+
'separator' => 'before',
|
384 |
+
]
|
385 |
+
);
|
386 |
+
$this->add_control(
|
387 |
+
'ReMrFbPost',
|
388 |
+
[
|
389 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
390 |
+
'raw' => 'Note : <a href="https://developers.facebook.com/docs/plugins" target="_blank" rel="noopener noreferrer">Read More About All Options</a>',
|
391 |
+
'content_classes' => 'tp-widget-description',
|
392 |
+
'condition' => [
|
393 |
+
'EmbedType' => 'facebook',
|
394 |
+
],
|
395 |
+
]
|
396 |
+
);
|
397 |
+
$this->end_controls_section();
|
398 |
+
/*Facebook End*/
|
399 |
+
/*Facebook Options Start*/
|
400 |
+
$this->start_controls_section(
|
401 |
+
'semd_Fb_opts',
|
402 |
+
[
|
403 |
+
'label' => esc_html__( 'Facebook Options', 'tpebl' ),
|
404 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
405 |
+
'condition' => [
|
406 |
+
'EmbedType' => 'facebook',
|
407 |
+
],
|
408 |
+
]
|
409 |
+
);
|
410 |
+
$this->add_control(
|
411 |
+
'PcomentcT',
|
412 |
+
[
|
413 |
+
'label' => esc_html__( 'Parent Comment', 'tpebl' ),
|
414 |
+
'type' => Controls_Manager::SWITCHER,
|
415 |
+
'default' => 'no',
|
416 |
+
'condition' => [
|
417 |
+
'EmbedType' => 'facebook',
|
418 |
+
'Type' => 'comments',
|
419 |
+
'CommentType' => 'viewcomment',
|
420 |
+
],
|
421 |
+
]
|
422 |
+
);
|
423 |
+
$this->add_responsive_control(
|
424 |
+
'wdCmt',
|
425 |
+
[
|
426 |
+
'type' => Controls_Manager::SLIDER,
|
427 |
+
'label' => esc_html__('Width', 'tpebl'),
|
428 |
+
'size_units' => [ 'px' ],
|
429 |
+
'range' => [
|
430 |
+
'px' => [
|
431 |
+
'min' => 0,
|
432 |
+
'max' => 1000,
|
433 |
+
'step' => 1,
|
434 |
+
],
|
435 |
+
],
|
436 |
+
'render_type' => 'ui',
|
437 |
+
'condition' => [
|
438 |
+
'EmbedType' => 'facebook',
|
439 |
+
'Type' => 'comments',
|
440 |
+
'CommentType' => 'viewcomment',
|
441 |
+
],
|
442 |
+
'selectors' => [
|
443 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
444 |
+
],
|
445 |
+
'separator' => 'before',
|
446 |
+
]
|
447 |
+
);
|
448 |
+
$this->add_responsive_control(
|
449 |
+
'HgCmt',
|
450 |
+
[
|
451 |
+
'type' => Controls_Manager::SLIDER,
|
452 |
+
'label' => esc_html__('Height', 'tpebl'),
|
453 |
+
'size_units' => [ 'px' ],
|
454 |
+
'range' => [
|
455 |
+
'px' => [
|
456 |
+
'min' => 0,
|
457 |
+
'max' => 2000,
|
458 |
+
'step' => 1,
|
459 |
+
],
|
460 |
+
],
|
461 |
+
'render_type' => 'ui',
|
462 |
+
'condition' => [
|
463 |
+
'EmbedType' => 'facebook',
|
464 |
+
'Type' => 'comments',
|
465 |
+
'CommentType' => 'viewcomment',
|
466 |
+
],
|
467 |
+
'selectors' => [
|
468 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
469 |
+
],
|
470 |
+
]
|
471 |
+
);
|
472 |
+
$this->add_control(
|
473 |
+
'CountC',
|
474 |
+
[
|
475 |
+
'label' => esc_html__( 'Comment Count', 'tpebl' ),
|
476 |
+
'type' => Controls_Manager::NUMBER,
|
477 |
+
'min' => 0,
|
478 |
+
'max' => 5000,
|
479 |
+
'step' => 100,
|
480 |
+
'default' => '',
|
481 |
+
'condition' => [
|
482 |
+
'EmbedType' => 'facebook',
|
483 |
+
'Type' => 'comments',
|
484 |
+
'CommentType' => 'onlypost',
|
485 |
+
],
|
486 |
+
]
|
487 |
+
);
|
488 |
+
$this->add_control(
|
489 |
+
'OrderByC',
|
490 |
+
[
|
491 |
+
'label' => esc_html__( 'Order By', 'tpebl' ),
|
492 |
+
'type' => Controls_Manager::SELECT,
|
493 |
+
'default' => 'social',
|
494 |
+
'options' => [
|
495 |
+
'social' => esc_html__( 'Social', 'tpebl' ),
|
496 |
+
'reversetime' => esc_html__( 'Reverse Time', 'tpebl' ),
|
497 |
+
'time' => esc_html__( 'Time', 'tpebl' ),
|
498 |
+
],
|
499 |
+
'condition' => [
|
500 |
+
'EmbedType' => 'facebook',
|
501 |
+
'Type' => 'comments',
|
502 |
+
'CommentType' => 'onlypost',
|
503 |
+
],
|
504 |
+
]
|
505 |
+
);
|
506 |
+
$this->add_control(
|
507 |
+
'FullPT',
|
508 |
+
[
|
509 |
+
'label' => esc_html__( 'Show Text', 'tpebl' ),
|
510 |
+
'type' => Controls_Manager::SWITCHER,
|
511 |
+
'default' => 'no',
|
512 |
+
'condition' => [
|
513 |
+
'EmbedType' => 'facebook',
|
514 |
+
'Type' => 'posts',
|
515 |
+
],
|
516 |
+
]
|
517 |
+
);
|
518 |
+
$this->add_responsive_control(
|
519 |
+
'wdPost',
|
520 |
+
[
|
521 |
+
'type' => Controls_Manager::SLIDER,
|
522 |
+
'label' => esc_html__('Width', 'tpebl'),
|
523 |
+
'size_units' => [ 'px' ],
|
524 |
+
'range' => [
|
525 |
+
'px' => [
|
526 |
+
'min' => 0,
|
527 |
+
'max' => 1000,
|
528 |
+
'step' => 1,
|
529 |
+
],
|
530 |
+
],
|
531 |
+
'render_type' => 'ui',
|
532 |
+
'condition' => [
|
533 |
+
'EmbedType' => 'facebook',
|
534 |
+
'Type' => 'posts',
|
535 |
+
],
|
536 |
+
'selectors' => [
|
537 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
538 |
+
],
|
539 |
+
'separator' => 'before',
|
540 |
+
]
|
541 |
+
);
|
542 |
+
$this->add_responsive_control(
|
543 |
+
'HgPost',
|
544 |
+
[
|
545 |
+
'type' => Controls_Manager::SLIDER,
|
546 |
+
'label' => esc_html__('Height', 'tpebl'),
|
547 |
+
'size_units' => [ 'px' ],
|
548 |
+
'range' => [
|
549 |
+
'px' => [
|
550 |
+
'min' => 0,
|
551 |
+
'max' => 2000,
|
552 |
+
'step' => 1,
|
553 |
+
],
|
554 |
+
],
|
555 |
+
'render_type' => 'ui',
|
556 |
+
'condition' => [
|
557 |
+
'EmbedType' => 'facebook',
|
558 |
+
'Type' => 'posts',
|
559 |
+
],
|
560 |
+
'selectors' => [
|
561 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
562 |
+
],
|
563 |
+
]
|
564 |
+
);
|
565 |
+
$this->add_control(
|
566 |
+
'FullVT',
|
567 |
+
[
|
568 |
+
'label' => esc_html__( 'Allow Full Screen', 'tpebl' ),
|
569 |
+
'type' => Controls_Manager::SWITCHER,
|
570 |
+
'default' => 'no',
|
571 |
+
'condition' => [
|
572 |
+
'EmbedType' => 'facebook',
|
573 |
+
'Type' => 'videos',
|
574 |
+
],
|
575 |
+
]
|
576 |
+
);
|
577 |
+
$this->add_control(
|
578 |
+
'AutoplayVT',
|
579 |
+
[
|
580 |
+
'label' => esc_html__( 'Autoplay', 'tpebl' ),
|
581 |
+
'type' => Controls_Manager::SWITCHER,
|
582 |
+
'default' => 'no',
|
583 |
+
'condition' => [
|
584 |
+
'EmbedType' => 'facebook',
|
585 |
+
'Type' => 'videos',
|
586 |
+
],
|
587 |
+
]
|
588 |
+
);
|
589 |
+
$this->add_control(
|
590 |
+
'CaptionVT',
|
591 |
+
[
|
592 |
+
'label' => esc_html__( 'Captions', 'tpebl' ),
|
593 |
+
'type' => Controls_Manager::SWITCHER,
|
594 |
+
'default' => 'no',
|
595 |
+
'condition' => [
|
596 |
+
'EmbedType' => 'facebook',
|
597 |
+
'Type' => 'videos',
|
598 |
+
],
|
599 |
+
]
|
600 |
+
);
|
601 |
+
$this->add_responsive_control(
|
602 |
+
'wdVideo',
|
603 |
+
[
|
604 |
+
'type' => Controls_Manager::SLIDER,
|
605 |
+
'label' => esc_html__('Width', 'tpebl'),
|
606 |
+
'size_units' => [ 'px' ],
|
607 |
+
'range' => [
|
608 |
+
'px' => [
|
609 |
+
'min' => 0,
|
610 |
+
'max' => 1000,
|
611 |
+
'step' => 1,
|
612 |
+
],
|
613 |
+
],
|
614 |
+
'render_type' => 'ui',
|
615 |
+
'condition' => [
|
616 |
+
'EmbedType' => 'facebook',
|
617 |
+
'Type' => 'videos',
|
618 |
+
],
|
619 |
+
'selectors' => [
|
620 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
621 |
+
],
|
622 |
+
'separator' => 'before',
|
623 |
+
]
|
624 |
+
);
|
625 |
+
$this->add_responsive_control(
|
626 |
+
'HgVideo',
|
627 |
+
[
|
628 |
+
'type' => Controls_Manager::SLIDER,
|
629 |
+
'label' => esc_html__('Height', 'tpebl'),
|
630 |
+
'size_units' => [ 'px' ],
|
631 |
+
'range' => [
|
632 |
+
'px' => [
|
633 |
+
'min' => 0,
|
634 |
+
'max' => 2000,
|
635 |
+
'step' => 1,
|
636 |
+
],
|
637 |
+
],
|
638 |
+
'render_type' => 'ui',
|
639 |
+
'condition' => [
|
640 |
+
'EmbedType' => 'facebook',
|
641 |
+
'Type' => 'videos',
|
642 |
+
],
|
643 |
+
'selectors' => [
|
644 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
645 |
+
],
|
646 |
+
]
|
647 |
+
);
|
648 |
+
$this->add_control(
|
649 |
+
'LayoutP',
|
650 |
+
[
|
651 |
+
'label' => esc_html__( 'Layout', 'tpebl' ),
|
652 |
+
'type' => Controls_Manager::SELECT,
|
653 |
+
'default' => 'timeline',
|
654 |
+
'options' => [
|
655 |
+
'timeline' => esc_html__( 'Timeline', 'tpebl' ),
|
656 |
+
'events' => esc_html__( 'Events', 'tpebl' ),
|
657 |
+
'messages' => esc_html__( 'Messages', 'tpebl' ),
|
658 |
+
],
|
659 |
+
'condition' => [
|
660 |
+
'EmbedType' => 'facebook',
|
661 |
+
'Type' => 'page',
|
662 |
+
],
|
663 |
+
]
|
664 |
+
);
|
665 |
+
$this->add_control(
|
666 |
+
'smallHP',
|
667 |
+
[
|
668 |
+
'label' => esc_html__( 'Small Header', 'tpebl' ),
|
669 |
+
'type' => Controls_Manager::SWITCHER,
|
670 |
+
'default' => 'no',
|
671 |
+
'condition' => [
|
672 |
+
'EmbedType' => 'facebook',
|
673 |
+
'Type' => 'page',
|
674 |
+
],
|
675 |
+
]
|
676 |
+
);
|
677 |
+
$this->add_control(
|
678 |
+
'CoverP',
|
679 |
+
[
|
680 |
+
'label' => esc_html__( 'Cover Photo', 'tpebl' ),
|
681 |
+
'type' => Controls_Manager::SWITCHER,
|
682 |
+
'default' => 'yes',
|
683 |
+
'condition' => [
|
684 |
+
'EmbedType' => 'facebook',
|
685 |
+
'Type' => 'page',
|
686 |
+
],
|
687 |
+
]
|
688 |
+
);
|
689 |
+
$this->add_control(
|
690 |
+
'ProfileP',
|
691 |
+
[
|
692 |
+
'label' => esc_html__( 'Show Friend\'s Faces', 'tpebl' ),
|
693 |
+
'type' => Controls_Manager::SWITCHER,
|
694 |
+
'default' => 'yes',
|
695 |
+
'condition' => [
|
696 |
+
'EmbedType' => 'facebook',
|
697 |
+
'Type' => 'page',
|
698 |
+
],
|
699 |
+
]
|
700 |
+
);
|
701 |
+
$this->add_control(
|
702 |
+
'CTABTN',
|
703 |
+
[
|
704 |
+
'label' => esc_html__( 'Custom CTA Button', 'tpebl' ),
|
705 |
+
'type' => Controls_Manager::SWITCHER,
|
706 |
+
'default' => 'yes',
|
707 |
+
'condition' => [
|
708 |
+
'EmbedType' => 'facebook',
|
709 |
+
'Type' => 'page',
|
710 |
+
],
|
711 |
+
]
|
712 |
+
);
|
713 |
+
$this->add_responsive_control(
|
714 |
+
'wdPage',
|
715 |
+
[
|
716 |
+
'type' => Controls_Manager::SLIDER,
|
717 |
+
'label' => esc_html__('Width', 'tpebl'),
|
718 |
+
'size_units' => [ 'px' ],
|
719 |
+
'range' => [
|
720 |
+
'px' => [
|
721 |
+
'min' => 0,
|
722 |
+
'max' => 1000,
|
723 |
+
'step' => 1,
|
724 |
+
],
|
725 |
+
],
|
726 |
+
'render_type' => 'ui',
|
727 |
+
'condition' => [
|
728 |
+
'EmbedType' => 'facebook',
|
729 |
+
'Type' => 'page',
|
730 |
+
],
|
731 |
+
'selectors' => [
|
732 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
733 |
+
],
|
734 |
+
'separator' => 'before',
|
735 |
+
]
|
736 |
+
);
|
737 |
+
$this->add_responsive_control(
|
738 |
+
'HgPage',
|
739 |
+
[
|
740 |
+
'type' => Controls_Manager::SLIDER,
|
741 |
+
'label' => esc_html__('Height', 'tpebl'),
|
742 |
+
'size_units' => [ 'px' ],
|
743 |
+
'range' => [
|
744 |
+
'px' => [
|
745 |
+
'min' => 0,
|
746 |
+
'max' => 2000,
|
747 |
+
'step' => 1,
|
748 |
+
],
|
749 |
+
],
|
750 |
+
'render_type' => 'ui',
|
751 |
+
'condition' => [
|
752 |
+
'EmbedType' => 'facebook',
|
753 |
+
'Type' => 'page',
|
754 |
+
],
|
755 |
+
'selectors' => [
|
756 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
757 |
+
],
|
758 |
+
]
|
759 |
+
);
|
760 |
+
$this->add_control(
|
761 |
+
'SizeLB',
|
762 |
+
[
|
763 |
+
'label' => esc_html__( 'Size', 'tpebl' ),
|
764 |
+
'type' => Controls_Manager::SELECT,
|
765 |
+
'default' => 'small',
|
766 |
+
'options' => [
|
767 |
+
'small' => esc_html__( 'Small', 'tpebl' ),
|
768 |
+
'large' => esc_html__( 'Large', 'tpebl' ),
|
769 |
+
],
|
770 |
+
'condition' => [
|
771 |
+
'EmbedType' => 'facebook',
|
772 |
+
'Type' => ['likebutton','save','share'],
|
773 |
+
],
|
774 |
+
]
|
775 |
+
);
|
776 |
+
$this->add_control(
|
777 |
+
'TypeLB',
|
778 |
+
[
|
779 |
+
'label' => esc_html__( 'Type', 'tpebl' ),
|
780 |
+
'type' => Controls_Manager::SELECT,
|
781 |
+
'default' => 'like',
|
782 |
+
'options' => [
|
783 |
+
'like' => esc_html__( 'Like', 'tpebl' ),
|
784 |
+
'recommend' => esc_html__( 'Recommend', 'tpebl' ),
|
785 |
+
],
|
786 |
+
'condition' => [
|
787 |
+
'EmbedType' => 'facebook',
|
788 |
+
'Type' => 'likebutton',
|
789 |
+
],
|
790 |
+
]
|
791 |
+
);
|
792 |
+
$this->add_control(
|
793 |
+
'BtnStyleLB',
|
794 |
+
[
|
795 |
+
'label' => esc_html__( 'Layout', 'tpebl' ),
|
796 |
+
'type' => Controls_Manager::SELECT,
|
797 |
+
'default' => 'button',
|
798 |
+
'options' => [
|
799 |
+
'standard' => esc_html__( 'Standard', 'tpebl' ),
|
800 |
+
'button' => esc_html__( 'Button', 'tpebl' ),
|
801 |
+
'button_count' => esc_html__( 'Button Count', 'tpebl' ),
|
802 |
+
'box_count' => esc_html__( 'Box Count', 'tpebl' ),
|
803 |
+
],
|
804 |
+
'condition' => [
|
805 |
+
'EmbedType' => 'facebook',
|
806 |
+
'Type' => 'likebutton',
|
807 |
+
],
|
808 |
+
]
|
809 |
+
);
|
810 |
+
$this->add_control(
|
811 |
+
'ColorSLB',
|
812 |
+
[
|
813 |
+
'label' => esc_html__( 'Color Scheme', 'tpebl' ),
|
814 |
+
'type' => Controls_Manager::SELECT,
|
815 |
+
'default' => 'light',
|
816 |
+
'options' => [
|
817 |
+
'light' => esc_html__( 'Light', 'tpebl' ),
|
818 |
+
'dark' => esc_html__( 'Dark', 'tpebl' ),
|
819 |
+
],
|
820 |
+
'condition' => [
|
821 |
+
'EmbedType' => 'facebook',
|
822 |
+
'Type' => 'likebutton',
|
823 |
+
'BtnStyleLB' => 'standard',
|
824 |
+
],
|
825 |
+
]
|
826 |
+
);
|
827 |
+
$this->add_control(
|
828 |
+
'SBtnLB',
|
829 |
+
[
|
830 |
+
'label' => esc_html__( 'Share Button', 'tpebl' ),
|
831 |
+
'type' => Controls_Manager::SWITCHER,
|
832 |
+
'default' => 'no',
|
833 |
+
'condition' => [
|
834 |
+
'EmbedType' => 'facebook',
|
835 |
+
'Type' => 'likebutton',
|
836 |
+
],
|
837 |
+
]
|
838 |
+
);
|
839 |
+
$this->add_control(
|
840 |
+
'FacesLBT',
|
841 |
+
[
|
842 |
+
'label' => esc_html__( 'Faces', 'tpebl' ),
|
843 |
+
'type' => Controls_Manager::SWITCHER,
|
844 |
+
'default' => 'no',
|
845 |
+
'condition' => [
|
846 |
+
'EmbedType' => 'facebook',
|
847 |
+
'Type' => 'likebutton',
|
848 |
+
],
|
849 |
+
]
|
850 |
+
);
|
851 |
+
$this->add_responsive_control(
|
852 |
+
'wdLikeBtn',
|
853 |
+
[
|
854 |
+
'type' => Controls_Manager::SLIDER,
|
855 |
+
'label' => esc_html__('Width', 'tpebl'),
|
856 |
+
'size_units' => [ 'px' ],
|
857 |
+
'range' => [
|
858 |
+
'px' => [
|
859 |
+
'min' => 0,
|
860 |
+
'max' => 1000,
|
861 |
+
'step' => 1,
|
862 |
+
],
|
863 |
+
],
|
864 |
+
'render_type' => 'ui',
|
865 |
+
'condition' => [
|
866 |
+
'EmbedType' => 'facebook',
|
867 |
+
'Type' => 'likebutton',
|
868 |
+
],
|
869 |
+
'selectors' => [
|
870 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
871 |
+
],
|
872 |
+
'separator' => 'before',
|
873 |
+
]
|
874 |
+
);
|
875 |
+
$this->add_responsive_control(
|
876 |
+
'HgLikeBtn',
|
877 |
+
[
|
878 |
+
'type' => Controls_Manager::SLIDER,
|
879 |
+
'label' => esc_html__('Height', 'tpebl'),
|
880 |
+
'size_units' => [ 'px' ],
|
881 |
+
'range' => [
|
882 |
+
'px' => [
|
883 |
+
'min' => 0,
|
884 |
+
'max' => 200,
|
885 |
+
'step' => 1,
|
886 |
+
],
|
887 |
+
],
|
888 |
+
'render_type' => 'ui',
|
889 |
+
'condition' => [
|
890 |
+
'EmbedType' => 'facebook',
|
891 |
+
'Type' => 'likebutton',
|
892 |
+
],
|
893 |
+
'selectors' => [
|
894 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
895 |
+
],
|
896 |
+
]
|
897 |
+
);
|
898 |
+
$this->add_control(
|
899 |
+
'ShareBTN',
|
900 |
+
[
|
901 |
+
'label' => esc_html__( 'Layout', 'tpebl' ),
|
902 |
+
'type' => Controls_Manager::SELECT,
|
903 |
+
'default' => 'button',
|
904 |
+
'options' => [
|
905 |
+
'button' => esc_html__( 'Button', 'tpebl' ),
|
906 |
+
'button_count' => esc_html__( 'Button Count', 'tpebl' ),
|
907 |
+
'box_count' => esc_html__( 'Box Count', 'tpebl' ),
|
908 |
+
],
|
909 |
+
'condition' => [
|
910 |
+
'EmbedType' => 'facebook',
|
911 |
+
'Type' => 'share',
|
912 |
+
],
|
913 |
+
]
|
914 |
+
);
|
915 |
+
$this->add_responsive_control(
|
916 |
+
'wdShareBtn',
|
917 |
+
[
|
918 |
+
'type' => Controls_Manager::SLIDER,
|
919 |
+
'label' => esc_html__('Width', 'tpebl'),
|
920 |
+
'size_units' => [ 'px' ],
|
921 |
+
'range' => [
|
922 |
+
'px' => [
|
923 |
+
'min' => 0,
|
924 |
+
'max' => 1000,
|
925 |
+
'step' => 1,
|
926 |
+
],
|
927 |
+
],
|
928 |
+
'render_type' => 'ui',
|
929 |
+
'condition' => [
|
930 |
+
'EmbedType' => 'facebook',
|
931 |
+
'Type' => 'share',
|
932 |
+
],
|
933 |
+
'selectors' => [
|
934 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'width: {{SIZE}}{{UNIT}}',
|
935 |
+
],
|
936 |
+
'separator' => 'before',
|
937 |
+
]
|
938 |
+
);
|
939 |
+
$this->add_responsive_control(
|
940 |
+
'HgShareBtn',
|
941 |
+
[
|
942 |
+
'type' => Controls_Manager::SLIDER,
|
943 |
+
'label' => esc_html__('Height', 'tpebl'),
|
944 |
+
'size_units' => [ 'px' ],
|
945 |
+
'range' => [
|
946 |
+
'px' => [
|
947 |
+
'min' => 0,
|
948 |
+
'max' => 100,
|
949 |
+
'step' => 1,
|
950 |
+
],
|
951 |
+
],
|
952 |
+
'render_type' => 'ui',
|
953 |
+
'condition' => [
|
954 |
+
'EmbedType' => 'facebook',
|
955 |
+
'Type' => 'share',
|
956 |
+
],
|
957 |
+
'selectors' => [
|
958 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-fb-iframe' => 'height: {{SIZE}}{{UNIT}}',
|
959 |
+
],
|
960 |
+
]
|
961 |
+
);
|
962 |
+
$this->end_controls_section();
|
963 |
+
/*Facebook Options End*/
|
964 |
+
/*Twitter Start*/
|
965 |
+
$this->start_controls_section(
|
966 |
+
'semd_Tw',
|
967 |
+
[
|
968 |
+
'label' => esc_html__( 'Twitter', 'tpebl' ),
|
969 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
970 |
+
'condition' => [
|
971 |
+
'EmbedType' => 'twitter',
|
972 |
+
],
|
973 |
+
]
|
974 |
+
);
|
975 |
+
$this->add_control(
|
976 |
+
'TweetType',
|
977 |
+
[
|
978 |
+
'label' => esc_html__( 'Embed Type', 'tpebl' ),
|
979 |
+
'type' => Controls_Manager::SELECT,
|
980 |
+
'default' => 'timelines',
|
981 |
+
'options' => [
|
982 |
+
'Tweets' => esc_html__( 'Tweets Embed', 'tpebl' ),
|
983 |
+
'timelines' => esc_html__( 'Timelines Embed', 'tpebl' ),
|
984 |
+
'buttons' => esc_html__( 'Buttons Embed', 'tpebl' ),
|
985 |
+
],
|
986 |
+
'condition' => [
|
987 |
+
'EmbedType' => 'twitter',
|
988 |
+
],
|
989 |
+
]
|
990 |
+
);
|
991 |
+
$repeater = new \Elementor\Repeater();
|
992 |
+
$repeater->add_control(
|
993 |
+
'TweetURl',
|
994 |
+
[
|
995 |
+
'label' => esc_html__( 'Tweet URL', 'tpebl' ),
|
996 |
+
'type' => Controls_Manager::URL,
|
997 |
+
'placeholder' => esc_html__( 'Paste URL Here', 'tpebl' ),
|
998 |
+
'show_external' => true,
|
999 |
+
'default' => [
|
1000 |
+
'url' => 'https://twitter.com/Interior/status/463440424141459456',
|
1001 |
+
],
|
1002 |
+
'dynamic' => [
|
1003 |
+
'active' => true,
|
1004 |
+
],
|
1005 |
+
]
|
1006 |
+
);
|
1007 |
+
$repeater->add_control(
|
1008 |
+
'TwMassage',
|
1009 |
+
[
|
1010 |
+
'label' => esc_html__( 'Loading Message', 'tpebl' ),
|
1011 |
+
'type' => Controls_Manager::TEXT,
|
1012 |
+
'default' => esc_html__( 'Loading', 'tpebl' ),
|
1013 |
+
'dynamic' => ['active' => true,],
|
1014 |
+
]
|
1015 |
+
);
|
1016 |
+
$this->add_control(
|
1017 |
+
'TwRepeater',
|
1018 |
+
[
|
1019 |
+
'label' => esc_html__( 'Tweets', 'tpebl' ),
|
1020 |
+
'type' => Controls_Manager::REPEATER,
|
1021 |
+
'default' => [
|
1022 |
+
[
|
1023 |
+
'TweetURl' => 'https://twitter.com/Interior/status/463440424141459456',
|
1024 |
+
'TwMassage' => '— Loading',
|
1025 |
+
],
|
1026 |
+
],
|
1027 |
+
'separator' => 'before',
|
1028 |
+
'fields' => $repeater->get_controls(),
|
1029 |
+
'title_field' => '{{{ TwMassage }}}',
|
1030 |
+
'condition' => [
|
1031 |
+
'EmbedType' => 'twitter',
|
1032 |
+
'TweetType' => 'Tweets',
|
1033 |
+
],
|
1034 |
+
]
|
1035 |
+
);
|
1036 |
+
$this->add_control(
|
1037 |
+
'TwGuides',
|
1038 |
+
[
|
1039 |
+
'label' => esc_html__( 'Guides Contents', 'tpebl' ),
|
1040 |
+
'type' => Controls_Manager::SELECT,
|
1041 |
+
'default' => 'Profile',
|
1042 |
+
'options' => [
|
1043 |
+
'Profile' => esc_html__( 'Profile Timeline', 'tpebl' ),
|
1044 |
+
'Likes' => esc_html__( 'Likes Timeline', 'tpebl' ),
|
1045 |
+
'List' => esc_html__( 'List Timeline', 'tpebl' ),
|
1046 |
+
'Collection' => esc_html__( 'Collection', 'tpebl' ),
|
1047 |
+
],
|
1048 |
+
'condition' => [
|
1049 |
+
'EmbedType' => 'twitter',
|
1050 |
+
'TweetType' => 'timelines',
|
1051 |
+
],
|
1052 |
+
]
|
1053 |
+
);
|
1054 |
+
$this->add_control(
|
1055 |
+
'Twstyle',
|
1056 |
+
[
|
1057 |
+
'label' => esc_html__( 'Layout', 'tpebl' ),
|
1058 |
+
'type' => Controls_Manager::SELECT,
|
1059 |
+
'default' => 'linear',
|
1060 |
+
'options' => [
|
1061 |
+
'grid' => esc_html__( 'Grid style', 'tpebl' ),
|
1062 |
+
'linear' => esc_html__( 'Linear style', 'tpebl' ),
|
1063 |
+
],
|
1064 |
+
'condition' => [
|
1065 |
+
'EmbedType' => 'twitter',
|
1066 |
+
'TweetType' => 'timelines',
|
1067 |
+
],
|
1068 |
+
]
|
1069 |
+
);
|
1070 |
+
$this->add_control(
|
1071 |
+
'Twlisturl',
|
1072 |
+
[
|
1073 |
+
'label' => __( 'List URL', 'tpebl' ),
|
1074 |
+
'type' => Controls_Manager::URL,
|
1075 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
1076 |
+
'show_external' => true,
|
1077 |
+
'dynamic' => [ 'active' => true ],
|
1078 |
+
'default' => [
|
1079 |
+
'url' => 'https://twitter.com/TwitterDev/lists/national-parks',
|
1080 |
+
'is_external' => true,
|
1081 |
+
'nofollow' => true,
|
1082 |
+
],
|
1083 |
+
'condition' => [
|
1084 |
+
'EmbedType' => 'twitter',
|
1085 |
+
'TweetType' => 'timelines',
|
1086 |
+
'TwGuides' => 'List',
|
1087 |
+
],
|
1088 |
+
'separator' => 'before',
|
1089 |
+
]
|
1090 |
+
);
|
1091 |
+
$this->add_control(
|
1092 |
+
'TwlisturlNote',
|
1093 |
+
[
|
1094 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1095 |
+
'raw' => 'Note : How to <a href="https://tweetdeck.twitter.com/" target="_blank" rel="noopener noreferrer">Create List ?</a>',
|
1096 |
+
'content_classes' => 'tp-widget-description',
|
1097 |
+
'condition' => [
|
1098 |
+
'EmbedType' => 'twitter',
|
1099 |
+
'TweetType' => 'timelines',
|
1100 |
+
'TwGuides' => 'List',
|
1101 |
+
],
|
1102 |
+
]
|
1103 |
+
);
|
1104 |
+
$this->add_control(
|
1105 |
+
'TwCollection',
|
1106 |
+
[
|
1107 |
+
'label' => __( 'Collection URL', 'tpebl' ),
|
1108 |
+
'type' => Controls_Manager::URL,
|
1109 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
1110 |
+
'show_external' => true,
|
1111 |
+
'dynamic' => [ 'active' => true ],
|
1112 |
+
'default' => [
|
1113 |
+
'url' => 'https://twitter.com/TwitterDev/timelines/539487832448843776',
|
1114 |
+
'is_external' => true,
|
1115 |
+
'nofollow' => true,
|
1116 |
+
],
|
1117 |
+
'condition' => [
|
1118 |
+
'EmbedType' => 'twitter',
|
1119 |
+
'TweetType' => 'timelines',
|
1120 |
+
'TwGuides' => 'Collection',
|
1121 |
+
],
|
1122 |
+
'separator' => 'before',
|
1123 |
+
]
|
1124 |
+
);
|
1125 |
+
$this->add_control(
|
1126 |
+
'TwCollectionNote',
|
1127 |
+
[
|
1128 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1129 |
+
'raw' => 'Note : How to <a href="https://tweetdeck.twitter.com/" target="_blank" rel="noopener noreferrer">Create Collections ?</a>',
|
1130 |
+
'content_classes' => 'tp-widget-description',
|
1131 |
+
'condition' => [
|
1132 |
+
'EmbedType' => 'twitter',
|
1133 |
+
'TweetType' => 'timelines',
|
1134 |
+
'TwGuides' => 'Collection',
|
1135 |
+
],
|
1136 |
+
]
|
1137 |
+
);
|
1138 |
+
$this->add_control(
|
1139 |
+
'Twbutton',
|
1140 |
+
[
|
1141 |
+
'label' => esc_html__( 'Button Type', 'tpebl' ),
|
1142 |
+
'type' => Controls_Manager::SELECT,
|
1143 |
+
'default' => 'follow',
|
1144 |
+
'options' => [
|
1145 |
+
'Tweets' => esc_html__( 'Tweets', 'tpebl' ),
|
1146 |
+
'follow' => esc_html__( 'Follow', 'tpebl' ),
|
1147 |
+
'Message' => esc_html__( 'Direct Message', 'tpebl' ),
|
1148 |
+
'like' => esc_html__( 'Like', 'tpebl' ),
|
1149 |
+
'Reply' => esc_html__( 'Reply', 'tpebl' ),
|
1150 |
+
'Retweet' => esc_html__( 'Retweet', 'tpebl' ),
|
1151 |
+
],
|
1152 |
+
'condition' => [
|
1153 |
+
'EmbedType' => 'twitter',
|
1154 |
+
'TweetType' => 'buttons',
|
1155 |
+
],
|
1156 |
+
]
|
1157 |
+
);
|
1158 |
+
$this->add_control(
|
1159 |
+
'Twname',
|
1160 |
+
[
|
1161 |
+
'label' => esc_html__( 'Username', 'tpebl' ),
|
1162 |
+
'type' => Controls_Manager::TEXT,
|
1163 |
+
'default' => esc_html__( 'TwitterDev', 'tpebl' ),
|
1164 |
+
'dynamic' => [
|
1165 |
+
'active' => true,
|
1166 |
+
],
|
1167 |
+
'separator' => 'before',
|
1168 |
+
'condition' => [
|
1169 |
+
'EmbedType' => 'twitter',
|
1170 |
+
],
|
1171 |
+
'conditions' => [
|
1172 |
+
'relation' => 'or',
|
1173 |
+
'terms' => [
|
1174 |
+
[
|
1175 |
+
'terms' => [
|
1176 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'timelines'],
|
1177 |
+
['name' => 'TwGuides', 'operator' => 'in', 'value' => ['Profile','Likes']],
|
1178 |
+
]
|
1179 |
+
],
|
1180 |
+
[
|
1181 |
+
'terms' => [
|
1182 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
1183 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['follow','Message']],
|
1184 |
+
]
|
1185 |
+
],
|
1186 |
+
]
|
1187 |
+
],
|
1188 |
+
]
|
1189 |
+
);
|
1190 |
+
$this->add_control(
|
1191 |
+
'TwRId',
|
1192 |
+
[
|
1193 |
+
'label' => esc_html__( 'Message ID', 'tpebl' ),
|
1194 |
+
'type' => Controls_Manager::TEXT,
|
1195 |
+
'default' => esc_html__( '3805104374', 'tpebl' ),
|
1196 |
+
'dynamic' => [
|
1197 |
+
'active' => true,
|
1198 |
+
],
|
1199 |
+
'condition' => [
|
1200 |
+
'EmbedType' => 'twitter',
|
1201 |
+
'TweetType' => 'buttons',
|
1202 |
+
'Twbutton' => 'Message',
|
1203 |
+
],
|
1204 |
+
]
|
1205 |
+
);
|
1206 |
+
$this->add_control(
|
1207 |
+
'TwTweetId',
|
1208 |
+
[
|
1209 |
+
'label' => esc_html__( 'Tweet ID', 'tpebl' ),
|
1210 |
+
'type' => Controls_Manager::TEXT,
|
1211 |
+
'default' => esc_html__( '463440424141459456', 'tpebl' ),
|
1212 |
+
'dynamic' => [
|
1213 |
+
'active' => true,
|
1214 |
+
],
|
1215 |
+
'condition' => [
|
1216 |
+
'EmbedType' => 'twitter',
|
1217 |
+
'TweetType' => 'buttons',
|
1218 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
1219 |
+
],
|
1220 |
+
]
|
1221 |
+
);
|
1222 |
+
$this->add_control(
|
1223 |
+
'ReMrTwPost',
|
1224 |
+
[
|
1225 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1226 |
+
'raw' => 'Note : <a href="https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/overview" target="_blank" rel="noopener noreferrer">Read More About All Options</a>',
|
1227 |
+
'content_classes' => 'tp-widget-description',
|
1228 |
+
'condition' => [
|
1229 |
+
'EmbedType' => 'twitter',
|
1230 |
+
],
|
1231 |
+
]
|
1232 |
+
);
|
1233 |
+
$this->end_controls_section();
|
1234 |
+
/*Twitter End*/
|
1235 |
+
/*Twitter Options Start*/
|
1236 |
+
$this->start_controls_section(
|
1237 |
+
'semd_Tw_opts',
|
1238 |
+
[
|
1239 |
+
'label' => esc_html__( 'Twitter Options', 'tpebl' ),
|
1240 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
1241 |
+
'condition' => [
|
1242 |
+
'EmbedType' => 'twitter',
|
1243 |
+
],
|
1244 |
+
]
|
1245 |
+
);
|
1246 |
+
$this->add_control(
|
1247 |
+
'TwColor',
|
1248 |
+
[
|
1249 |
+
'label' => esc_html__( 'Dark Mode', 'tpebl' ),
|
1250 |
+
'type' => Controls_Manager::SWITCHER,
|
1251 |
+
'default' => 'no',
|
1252 |
+
'condition' => [
|
1253 |
+
'EmbedType' => 'twitter',
|
1254 |
+
'TweetType' => ['Tweets','timelines'],
|
1255 |
+
],
|
1256 |
+
]
|
1257 |
+
);
|
1258 |
+
$this->add_control(
|
1259 |
+
'TwCards',
|
1260 |
+
[
|
1261 |
+
'label' => esc_html__( 'Disable Media', 'tpebl' ),
|
1262 |
+
'type' => Controls_Manager::SWITCHER,
|
1263 |
+
'default' => 'no',
|
1264 |
+
'condition' => [
|
1265 |
+
'EmbedType' => 'twitter',
|
1266 |
+
'TweetType' => 'Tweets',
|
1267 |
+
],
|
1268 |
+
]
|
1269 |
+
);
|
1270 |
+
$this->add_control(
|
1271 |
+
'Twconver',
|
1272 |
+
[
|
1273 |
+
'label' => esc_html__( 'Disable Conversation', 'tpebl' ),
|
1274 |
+
'type' => Controls_Manager::SWITCHER,
|
1275 |
+
'default' => 'no',
|
1276 |
+
'condition' => [
|
1277 |
+
'EmbedType' => 'twitter',
|
1278 |
+
'TweetType' => 'Tweets',
|
1279 |
+
],
|
1280 |
+
]
|
1281 |
+
);
|
1282 |
+
$this->add_control(
|
1283 |
+
'Twalign',
|
1284 |
+
[
|
1285 |
+
'label' => esc_html__( 'Alignment', 'tpebl' ),
|
1286 |
+
'type' => Controls_Manager::SELECT,
|
1287 |
+
'default' => 'center',
|
1288 |
+
'options' => [
|
1289 |
+
'left' => esc_html__( 'Left', 'tpebl' ),
|
1290 |
+
'center' => esc_html__( 'Center', 'tpebl' ),
|
1291 |
+
'right' => esc_html__( 'Right', 'tpebl' ),
|
1292 |
+
],
|
1293 |
+
'condition' => [
|
1294 |
+
'EmbedType' => 'twitter',
|
1295 |
+
'TweetType' => 'Tweets',
|
1296 |
+
],
|
1297 |
+
]
|
1298 |
+
);
|
1299 |
+
$this->add_control(
|
1300 |
+
'TwBrCr',
|
1301 |
+
[
|
1302 |
+
'label' => esc_html__( 'Separator Color', 'tpebl' ),
|
1303 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
1304 |
+
'separator' => 'before',
|
1305 |
+
'condition' => [
|
1306 |
+
'EmbedType' => 'twitter',
|
1307 |
+
'TweetType' => 'timelines',
|
1308 |
+
],
|
1309 |
+
]
|
1310 |
+
);
|
1311 |
+
$this->add_control(
|
1312 |
+
'TwDesign',
|
1313 |
+
[
|
1314 |
+
'label' => esc_html__( 'Button', 'tpebl' ),
|
1315 |
+
'type' => Controls_Manager::SELECT2,
|
1316 |
+
'multiple' => true,
|
1317 |
+
'default' => '',
|
1318 |
+
'options' => [
|
1319 |
+
'noheader' => esc_html__( 'No Header','tpebl' ),
|
1320 |
+
'nofooter' => esc_html__( 'No Footer','tpebl' ),
|
1321 |
+
'noborders' => esc_html__( 'No Borders','tpebl' ),
|
1322 |
+
'noscrollbar' => esc_html__( 'No Scrollbar','tpebl' ),
|
1323 |
+
'transparent' => esc_html__( 'Transparent','tpebl' ),
|
1324 |
+
],
|
1325 |
+
'label_block' => true,
|
1326 |
+
'condition' => [
|
1327 |
+
'EmbedType' => 'twitter',
|
1328 |
+
'TweetType' => 'timelines',
|
1329 |
+
],
|
1330 |
+
]
|
1331 |
+
);
|
1332 |
+
$this->add_responsive_control(
|
1333 |
+
'Twlimit',
|
1334 |
+
[
|
1335 |
+
'type' => Controls_Manager::SLIDER,
|
1336 |
+
'label' => esc_html__('Tweet Limit', 'tpebl'),
|
1337 |
+
'size_units' => [ 'px' ],
|
1338 |
+
'range' => [
|
1339 |
+
'px' => [
|
1340 |
+
'min' => 0,
|
1341 |
+
'max' => 20,
|
1342 |
+
'step' => 1,
|
1343 |
+
],
|
1344 |
+
],
|
1345 |
+
'default' => [
|
1346 |
+
'unit' => 'px',
|
1347 |
+
'size' => '',
|
1348 |
+
],
|
1349 |
+
'render_type' => 'ui',
|
1350 |
+
'condition' => [
|
1351 |
+
'EmbedType' => 'twitter',
|
1352 |
+
'TweetType' => 'timelines',
|
1353 |
+
],
|
1354 |
+
'separator' => 'before',
|
1355 |
+
]
|
1356 |
+
);
|
1357 |
+
$this->add_responsive_control(
|
1358 |
+
'Twwidth',
|
1359 |
+
[
|
1360 |
+
'type' => Controls_Manager::SLIDER,
|
1361 |
+
'label' => esc_html__('Width ( px )', 'tpebl'),
|
1362 |
+
'size_units' => [ 'px' ],
|
1363 |
+
'range' => [
|
1364 |
+
'px' => [
|
1365 |
+
'min' => 0,
|
1366 |
+
'max' => 1000,
|
1367 |
+
'step' => 1,
|
1368 |
+
],
|
1369 |
+
],
|
1370 |
+
'render_type' => 'ui',
|
1371 |
+
'condition' => [
|
1372 |
+
'EmbedType' => 'twitter',
|
1373 |
+
'TweetType' => ['Tweets','timelines'],
|
1374 |
+
],
|
1375 |
+
'separator' => 'before',
|
1376 |
+
]
|
1377 |
+
);
|
1378 |
+
$this->add_responsive_control(
|
1379 |
+
'Twheight',
|
1380 |
+
[
|
1381 |
+
'type' => Controls_Manager::SLIDER,
|
1382 |
+
'label' => esc_html__('Height ( px )', 'tpebl'),
|
1383 |
+
'size_units' => [ 'px' ],
|
1384 |
+
'range' => [
|
1385 |
+
'px' => [
|
1386 |
+
'min' => 0,
|
1387 |
+
'max' => 2000,
|
1388 |
+
'step' => 10,
|
1389 |
+
],
|
1390 |
+
],
|
1391 |
+
'render_type' => 'ui',
|
1392 |
+
'condition' => [
|
1393 |
+
'EmbedType' => 'twitter',
|
1394 |
+
'TweetType' => 'timelines',
|
1395 |
+
'Twstyle' => 'linear',
|
1396 |
+
],
|
1397 |
+
'separator' => 'before',
|
1398 |
+
]
|
1399 |
+
);
|
1400 |
+
$this->add_control(
|
1401 |
+
'TwBtnSize',
|
1402 |
+
[
|
1403 |
+
'label' => esc_html__( 'Button Size', 'tpebl' ),
|
1404 |
+
'type' => Controls_Manager::SELECT,
|
1405 |
+
'default' => '',
|
1406 |
+
'options' => [
|
1407 |
+
'' => esc_html__( 'Normal', 'tpebl' ),
|
1408 |
+
'large' => esc_html__( 'Large', 'tpebl' ),
|
1409 |
+
],
|
1410 |
+
'condition' => [
|
1411 |
+
'EmbedType' => 'twitter',
|
1412 |
+
'TweetType' => 'buttons',
|
1413 |
+
'Twbutton' => ['Tweets','follow','Message'],
|
1414 |
+
],
|
1415 |
+
]
|
1416 |
+
);
|
1417 |
+
$this->add_control(
|
1418 |
+
'TwTextBtn',
|
1419 |
+
[
|
1420 |
+
'label' => esc_html__( 'Tweet Text', 'tpebl' ),
|
1421 |
+
'type' => Controls_Manager::TEXTAREA,
|
1422 |
+
'rows' => 3,
|
1423 |
+
'default' => esc_html__( 'Hello', 'tpebl' ),
|
1424 |
+
'dynamic' => [
|
1425 |
+
'active' => true,
|
1426 |
+
],
|
1427 |
+
'condition' => [
|
1428 |
+
'EmbedType' => 'twitter',
|
1429 |
+
'TweetType' => 'buttons',
|
1430 |
+
'Twbutton' => ['Tweets'],
|
1431 |
+
],
|
1432 |
+
]
|
1433 |
+
);
|
1434 |
+
$this->add_control(
|
1435 |
+
'TwTweetUrl',
|
1436 |
+
[
|
1437 |
+
'label' => __( 'Page URL', 'tpebl' ),
|
1438 |
+
'type' => Controls_Manager::URL,
|
1439 |
+
'placeholder' => __( 'Paste URL Here', 'tpebl' ),
|
1440 |
+
'show_external' => true,
|
1441 |
+
'dynamic' => [ 'active' => true ],
|
1442 |
+
'default' => [
|
1443 |
+
'url' => '',
|
1444 |
+
'is_external' => true,
|
1445 |
+
'nofollow' => true,
|
1446 |
+
],
|
1447 |
+
'condition' => [
|
1448 |
+
'EmbedType' => 'twitter',
|
1449 |
+
'TweetType' => 'buttons',
|
1450 |
+
'Twbutton' => ['Tweets'],
|
1451 |
+
],
|
1452 |
+
]
|
1453 |
+
);
|
1454 |
+
$this->add_control(
|
1455 |
+
'TwHashtags',
|
1456 |
+
[
|
1457 |
+
'label' => esc_html__( 'Hashtags ( Tag1 #Tag2 )', 'tpebl' ),
|
1458 |
+
'type' => Controls_Manager::TEXT,
|
1459 |
+
'default' => esc_html__( 'Twitter', 'tpebl' ),
|
1460 |
+
'placeholder' => esc_html__( '#Tag1 #Tag2 #tag3', 'tpebl' ),
|
1461 |
+
'dynamic' => [
|
1462 |
+
'active' => true,
|
1463 |
+
],
|
1464 |
+
'label_block' => true,
|
1465 |
+
'condition' => [
|
1466 |
+
'EmbedType' => 'twitter',
|
1467 |
+
'TweetType' => 'buttons',
|
1468 |
+
'Twbutton' => ['Tweets'],
|
1469 |
+
],
|
1470 |
+
]
|
1471 |
+
);
|
1472 |
+
$this->add_control(
|
1473 |
+
'TwVia',
|
1474 |
+
[
|
1475 |
+
'label' => esc_html__( 'Via ( Tag1 @Tag2 )', 'tpebl' ),
|
1476 |
+
'type' => Controls_Manager::TEXT,
|
1477 |
+
'default' => esc_html__( 'Twitter', 'tpebl' ),
|
1478 |
+
'placeholder' => esc_html__( 'Tag1 @Tag2 @tag3', 'tpebl' ),
|
1479 |
+
'dynamic' => [
|
1480 |
+
'active' => true,
|
1481 |
+
],
|
1482 |
+
'label_block' => true,
|
1483 |
+
'condition' => [
|
1484 |
+
'EmbedType' => 'twitter',
|
1485 |
+
'TweetType' => 'buttons',
|
1486 |
+
'Twbutton' => ['Tweets'],
|
1487 |
+
],
|
1488 |
+
]
|
1489 |
+
);
|
1490 |
+
$this->add_control(
|
1491 |
+
'TwCount',
|
1492 |
+
[
|
1493 |
+
'label' => esc_html__( 'Followers Count', 'tpebl' ),
|
1494 |
+
'type' => Controls_Manager::SWITCHER,
|
1495 |
+
'default' => 'yes',
|
1496 |
+
'condition' => [
|
1497 |
+
'EmbedType' => 'twitter',
|
1498 |
+
'TweetType' => 'buttons',
|
1499 |
+
'Twbutton' => ['follow'],
|
1500 |
+
],
|
1501 |
+
]
|
1502 |
+
);
|
1503 |
+
$this->add_control(
|
1504 |
+
'TwHideUname',
|
1505 |
+
[
|
1506 |
+
'label' => esc_html__( 'Disable Username', 'tpebl' ),
|
1507 |
+
'type' => Controls_Manager::SWITCHER,
|
1508 |
+
'default' => 'no',
|
1509 |
+
'condition' => [
|
1510 |
+
'EmbedType' => 'twitter',
|
1511 |
+
'TweetType' => 'buttons',
|
1512 |
+
'Twbutton' => ['follow','Message'],
|
1513 |
+
],
|
1514 |
+
]
|
1515 |
+
);
|
1516 |
+
$this->add_control(
|
1517 |
+
'TwMessage',
|
1518 |
+
[
|
1519 |
+
'label' => esc_html__( 'Message Text', 'tpebl' ),
|
1520 |
+
'type' => Controls_Manager::TEXTAREA,
|
1521 |
+
'rows' => 3,
|
1522 |
+
'default' => esc_html__( 'Hello', 'tpebl' ),
|
1523 |
+
'dynamic' => [
|
1524 |
+
'active' => true,
|
1525 |
+
],
|
1526 |
+
'condition' => [
|
1527 |
+
'EmbedType' => 'twitter',
|
1528 |
+
'TweetType' => 'buttons',
|
1529 |
+
'Twbutton' => ['Message'],
|
1530 |
+
],
|
1531 |
+
]
|
1532 |
+
);
|
1533 |
+
$this->add_control(
|
1534 |
+
'TwIcon',
|
1535 |
+
[
|
1536 |
+
'label' => esc_html__( 'Disable Icon', 'tpebl' ),
|
1537 |
+
'type' => Controls_Manager::SWITCHER,
|
1538 |
+
'default' => 'no',
|
1539 |
+
'condition' => [
|
1540 |
+
'EmbedType' => 'twitter',
|
1541 |
+
'TweetType' => 'buttons',
|
1542 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
1543 |
+
],
|
1544 |
+
]
|
1545 |
+
);
|
1546 |
+
$this->add_control(
|
1547 |
+
'likeBtn',
|
1548 |
+
[
|
1549 |
+
'label' => esc_html__( 'Button Text', 'tpebl' ),
|
1550 |
+
'type' => Controls_Manager::TEXT,
|
1551 |
+
'default' => esc_html__( 'Like', 'tpebl' ),
|
1552 |
+
'dynamic' => [
|
1553 |
+
'active' => true,
|
1554 |
+
],
|
1555 |
+
'condition' => [
|
1556 |
+
'EmbedType' => 'twitter',
|
1557 |
+
'TweetType' => 'buttons',
|
1558 |
+
'Twbutton' => ['like'],
|
1559 |
+
],
|
1560 |
+
]
|
1561 |
+
);
|
1562 |
+
$this->add_control(
|
1563 |
+
'ReplyBtn',
|
1564 |
+
[
|
1565 |
+
'label' => esc_html__( 'Button Text', 'tpebl' ),
|
1566 |
+
'type' => Controls_Manager::TEXT,
|
1567 |
+
'default' => esc_html__( 'Reply', 'tpebl' ),
|
1568 |
+
'dynamic' => [
|
1569 |
+
'active' => true,
|
1570 |
+
],
|
1571 |
+
'condition' => [
|
1572 |
+
'EmbedType' => 'twitter',
|
1573 |
+
'TweetType' => 'buttons',
|
1574 |
+
'Twbutton' => ['Reply'],
|
1575 |
+
],
|
1576 |
+
]
|
1577 |
+
);
|
1578 |
+
$this->add_control(
|
1579 |
+
'RetweetBtn',
|
1580 |
+
[
|
1581 |
+
'label' => esc_html__( 'Button Text', 'tpebl' ),
|
1582 |
+
'type' => Controls_Manager::TEXT,
|
1583 |
+
'default' => esc_html__( 'Retweet', 'tpebl' ),
|
1584 |
+
'dynamic' => [
|
1585 |
+
'active' => true,
|
1586 |
+
],
|
1587 |
+
'condition' => [
|
1588 |
+
'EmbedType' => 'twitter',
|
1589 |
+
'TweetType' => 'buttons',
|
1590 |
+
'Twbutton' => ['Retweet'],
|
1591 |
+
],
|
1592 |
+
]
|
1593 |
+
);
|
1594 |
+
$this->add_control(
|
1595 |
+
'TwMsg',
|
1596 |
+
[
|
1597 |
+
'label' => esc_html__( 'Loading Message', 'tpebl' ),
|
1598 |
+
'type' => Controls_Manager::TEXT,
|
1599 |
+
'default' => esc_html__( 'Loading', 'tpebl' ),
|
1600 |
+
'dynamic' => [
|
1601 |
+
'active' => true,
|
1602 |
+
],
|
1603 |
+
'label_block' => true,
|
1604 |
+
'condition' => [
|
1605 |
+
'EmbedType' => 'twitter',
|
1606 |
+
'TweetType' => 'buttons',
|
1607 |
+
],
|
1608 |
+
'separator' => 'before',
|
1609 |
+
]
|
1610 |
+
);
|
1611 |
+
$this->end_controls_section();
|
1612 |
+
/*Twitter Options End*/
|
1613 |
+
/*Vimeo Start*/
|
1614 |
+
$this->start_controls_section(
|
1615 |
+
'semd_Vm',
|
1616 |
+
[
|
1617 |
+
'label' => esc_html__( 'Vimeo', 'tpebl' ),
|
1618 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
1619 |
+
'condition' => [
|
1620 |
+
'EmbedType' => 'vimeo',
|
1621 |
+
],
|
1622 |
+
]
|
1623 |
+
);
|
1624 |
+
$this->add_control(
|
1625 |
+
'ViId',
|
1626 |
+
[
|
1627 |
+
'label' => esc_html__( 'Vimeo ID', 'tpebl' ),
|
1628 |
+
'type' => Controls_Manager::TEXT,
|
1629 |
+
'default' => esc_html__( '288344114', 'tpebl' ),
|
1630 |
+
'dynamic' => [
|
1631 |
+
'active' => true,
|
1632 |
+
],
|
1633 |
+
'condition' => [
|
1634 |
+
'EmbedType' => 'vimeo',
|
1635 |
+
],
|
1636 |
+
]
|
1637 |
+
);
|
1638 |
+
$this->add_control(
|
1639 |
+
'ViOption',
|
1640 |
+
[
|
1641 |
+
'label' => esc_html__( 'Vimeo Option', 'tpebl' ),
|
1642 |
+
'type' => Controls_Manager::SELECT2,
|
1643 |
+
'multiple' => true,
|
1644 |
+
'default' => '',
|
1645 |
+
'options' => [
|
1646 |
+
'loop' => esc_html__( 'Loop','tpebl' ),
|
1647 |
+
'muted' => esc_html__( 'Muted','tpebl' ),
|
1648 |
+
'speed' => esc_html__( 'Speed (Pro Account)','tpebl' ),
|
1649 |
+
'title' => esc_html__( 'Title','tpebl' ),
|
1650 |
+
'autoplay' => esc_html__( 'Autoplay','tpebl' ),
|
1651 |
+
'autopause' => esc_html__( 'AutoPause','tpebl' ),
|
1652 |
+
'portrait' => esc_html__( 'Portrait','tpebl' ),
|
1653 |
+
'fullscreen' => esc_html__( 'FullScreen','tpebl' ),
|
1654 |
+
'background' => esc_html__( 'Background (Plus Account)','tpebl' ),
|
1655 |
+
'playsinline' => esc_html__( 'PlaysInline','tpebl' ),
|
1656 |
+
'byline' => esc_html__( 'Byline (Username)','tpebl' ),
|
1657 |
+
'transparent' => esc_html__( 'Transparent','tpebl' ),
|
1658 |
+
'dnt' => esc_html__( 'Do Not Track (DNT)','tpebl' ),
|
1659 |
+
'pip' => esc_html__( 'Picture In Picture (PIP)','tpebl' ),
|
1660 |
+
],
|
1661 |
+
'label_block' => true,
|
1662 |
+
'condition' => [
|
1663 |
+
'EmbedType' => 'vimeo',
|
1664 |
+
],
|
1665 |
+
]
|
1666 |
+
);
|
1667 |
+
$this->add_control(
|
1668 |
+
'VmAutoplayNote',
|
1669 |
+
[
|
1670 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1671 |
+
'raw' => 'Note : The <b>mute</b> option should be required when you select the <b>autoplay</b> option.',
|
1672 |
+
'content_classes' => 'tp-widget-description',
|
1673 |
+
'condition' => [
|
1674 |
+
'EmbedType' => 'vimeo',
|
1675 |
+
],
|
1676 |
+
]
|
1677 |
+
);
|
1678 |
+
$this->add_control(
|
1679 |
+
'ReMrVmPost',
|
1680 |
+
[
|
1681 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1682 |
+
'raw' => 'Note : <a href="https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters" target="_blank" rel="noopener noreferrer">Read More About All Options</a>',
|
1683 |
+
'content_classes' => 'tp-widget-description',
|
1684 |
+
'condition' => [
|
1685 |
+
'EmbedType' => 'vimeo',
|
1686 |
+
],
|
1687 |
+
]
|
1688 |
+
);
|
1689 |
+
$this->add_control(
|
1690 |
+
'VmStime',
|
1691 |
+
[
|
1692 |
+
'label' => esc_html__( 'Video Start Time', 'tpebl' ),
|
1693 |
+
'type' => Controls_Manager::TEXT,
|
1694 |
+
'default' => '',
|
1695 |
+
'placeholder' => esc_html__( 'E.g : 5m0s', 'tpebl' ),
|
1696 |
+
'dynamic' => [
|
1697 |
+
'active' => true,
|
1698 |
+
],
|
1699 |
+
'condition' => [
|
1700 |
+
'EmbedType' => 'vimeo',
|
1701 |
+
],
|
1702 |
+
]
|
1703 |
+
);
|
1704 |
+
$this->add_control(
|
1705 |
+
'VmColor',
|
1706 |
+
[
|
1707 |
+
'label' => esc_html__( 'Text Color', 'tpebl' ),
|
1708 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
1709 |
+
'condition' => [
|
1710 |
+
'EmbedType' => 'vimeo',
|
1711 |
+
],
|
1712 |
+
]
|
1713 |
+
);
|
1714 |
+
$this->end_controls_section();
|
1715 |
+
/*Vimeo End*/
|
1716 |
+
/*Instagram Start*/
|
1717 |
+
$this->start_controls_section(
|
1718 |
+
'semd_Ig',
|
1719 |
+
[
|
1720 |
+
'label' => esc_html__( 'Instagram', 'tpebl' ),
|
1721 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
1722 |
+
'condition' => [
|
1723 |
+
'EmbedType' => 'instagram',
|
1724 |
+
],
|
1725 |
+
]
|
1726 |
+
);
|
1727 |
+
$this->add_control(
|
1728 |
+
'IGType',
|
1729 |
+
[
|
1730 |
+
'label' => esc_html__( 'Instagram Type', 'tpebl' ),
|
1731 |
+
'type' => Controls_Manager::SELECT,
|
1732 |
+
'default' => 'posts',
|
1733 |
+
'options' => [
|
1734 |
+
'posts' => esc_html__( 'Posts', 'tpebl' ),
|
1735 |
+
'reels' => esc_html__( 'Reels', 'tpebl' ),
|
1736 |
+
'igtv' => esc_html__( 'IGTV', 'tpebl' ),
|
1737 |
+
],
|
1738 |
+
'condition' => [
|
1739 |
+
'EmbedType' => 'instagram',
|
1740 |
+
],
|
1741 |
+
]
|
1742 |
+
);
|
1743 |
+
$this->add_control(
|
1744 |
+
'IGId',
|
1745 |
+
[
|
1746 |
+
'label' => esc_html__( 'Instagram ID', 'tpebl' ),
|
1747 |
+
'type' => Controls_Manager::TEXT,
|
1748 |
+
'default' => esc_html__( 'CGAvnLcA3zb', 'tpebl' ),
|
1749 |
+
'dynamic' => [
|
1750 |
+
'active' => true,
|
1751 |
+
],
|
1752 |
+
'condition' => [
|
1753 |
+
'EmbedType' => 'instagram',
|
1754 |
+
],
|
1755 |
+
]
|
1756 |
+
);
|
1757 |
+
$this->add_control(
|
1758 |
+
'IGCaptione',
|
1759 |
+
[
|
1760 |
+
'label' => esc_html__( 'Disable Captioned', 'tpebl' ),
|
1761 |
+
'type' => Controls_Manager::SWITCHER,
|
1762 |
+
'default' => 'no',
|
1763 |
+
'condition' => [
|
1764 |
+
'EmbedType' => 'instagram',
|
1765 |
+
],
|
1766 |
+
]
|
1767 |
+
);
|
1768 |
+
$this->add_control(
|
1769 |
+
'ReMrIgPost',
|
1770 |
+
[
|
1771 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1772 |
+
'raw' => 'Note : <a href="https://developers.facebook.com/docs/instagram" target="_blank" rel="noopener noreferrer">Read More About All Options</a>',
|
1773 |
+
'content_classes' => 'tp-widget-description',
|
1774 |
+
'condition' => [
|
1775 |
+
'EmbedType' => 'instagram',
|
1776 |
+
],
|
1777 |
+
]
|
1778 |
+
);
|
1779 |
+
$this->end_controls_section();
|
1780 |
+
/*Instagram End*/
|
1781 |
+
/*YouTube Start*/
|
1782 |
+
$this->start_controls_section(
|
1783 |
+
'semd_Yt',
|
1784 |
+
[
|
1785 |
+
'label' => esc_html__( 'YouTube', 'tpebl' ),
|
1786 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
1787 |
+
'condition' => [
|
1788 |
+
'EmbedType' => 'youtube',
|
1789 |
+
],
|
1790 |
+
]
|
1791 |
+
);
|
1792 |
+
$this->add_control(
|
1793 |
+
'YtType',
|
1794 |
+
[
|
1795 |
+
'label' => esc_html__( 'YouTube Type', 'tpebl' ),
|
1796 |
+
'type' => Controls_Manager::SELECT,
|
1797 |
+
'default' => 'YtSV',
|
1798 |
+
'options' => [
|
1799 |
+
'YtSV' => esc_html__( 'Single Video', 'tpebl' ),
|
1800 |
+
'YtPlayV' => esc_html__( 'Playlist Video', 'tpebl' ),
|
1801 |
+
'YtuserV' => esc_html__( 'Users Video', 'tpebl' ),
|
1802 |
+
],
|
1803 |
+
'condition' => [
|
1804 |
+
'EmbedType' => 'youtube',
|
1805 |
+
],
|
1806 |
+
]
|
1807 |
+
);
|
1808 |
+
$this->add_control(
|
1809 |
+
'YtVideoId',
|
1810 |
+
[
|
1811 |
+
'label' => esc_html__( 'Video ID', 'tpebl' ),
|
1812 |
+
'type' => Controls_Manager::TEXT,
|
1813 |
+
'default' => esc_html__( 'XmtXC_n6X6Q', 'tpebl' ),
|
1814 |
+
'dynamic' => [
|
1815 |
+
'active' => true,
|
1816 |
+
],
|
1817 |
+
'label_block' => true,
|
1818 |
+
'condition' => [
|
1819 |
+
'EmbedType' => 'youtube',
|
1820 |
+
'YtType' => 'YtSV',
|
1821 |
+
],
|
1822 |
+
]
|
1823 |
+
);
|
1824 |
+
$this->add_control(
|
1825 |
+
'YtPlaylistId',
|
1826 |
+
[
|
1827 |
+
'label' => esc_html__( 'Playlist ID', 'tpebl' ),
|
1828 |
+
'type' => Controls_Manager::TEXT,
|
1829 |
+
'default' => esc_html__( 'PLivjPDlt6ApQgylktXlL2AhuPvRtDiN1S', 'tpebl' ),
|
1830 |
+
'dynamic' => [
|
1831 |
+
'active' => true,
|
1832 |
+
],
|
1833 |
+
'label_block' => true,
|
1834 |
+
'condition' => [
|
1835 |
+
'EmbedType' => 'youtube',
|
1836 |
+
'YtType' => 'YtPlayV',
|
1837 |
+
],
|
1838 |
+
]
|
1839 |
+
);
|
1840 |
+
$this->add_control(
|
1841 |
+
'YtUsername',
|
1842 |
+
[
|
1843 |
+
'label' => esc_html__( 'Username', 'tpebl' ),
|
1844 |
+
'type' => Controls_Manager::TEXT,
|
1845 |
+
'default' => esc_html__( 'NationalGeographic', 'tpebl' ),
|
1846 |
+
'dynamic' => [
|
1847 |
+
'active' => true,
|
1848 |
+
],
|
1849 |
+
'label_block' => true,
|
1850 |
+
'condition' => [
|
1851 |
+
'EmbedType' => 'youtube',
|
1852 |
+
'YtType' => 'YtuserV',
|
1853 |
+
],
|
1854 |
+
]
|
1855 |
+
);
|
1856 |
+
$this->add_control(
|
1857 |
+
'YtOption',
|
1858 |
+
[
|
1859 |
+
'label' => esc_html__( 'YouTube Option', 'tpebl' ),
|
1860 |
+
'type' => Controls_Manager::SELECT2,
|
1861 |
+
'multiple' => true,
|
1862 |
+
'default' => '',
|
1863 |
+
'options' => [
|
1864 |
+
'loop' => esc_html__( 'Loop','tpebl' ),
|
1865 |
+
'fs' => esc_html__( 'FullScreen','tpebl' ),
|
1866 |
+
'autoplay' => esc_html__( 'Autoplay','tpebl' ),
|
1867 |
+
'mute' => esc_html__( 'Muted','tpebl' ),
|
1868 |
+
'controls' => esc_html__( 'Controls Enable','tpebl' ),
|
1869 |
+
'disablekb' => esc_html__( 'Disable Keyboard','tpebl' ),
|
1870 |
+
'modestbranding' => esc_html__( 'Disable Youtube Icon','tpebl' ),
|
1871 |
+
'playsinline' => esc_html__( 'PlaysInline','tpebl' ),
|
1872 |
+
'rel' => esc_html__( 'Related Video','tpebl' ),
|
1873 |
+
],
|
1874 |
+
'label_block' => true,
|
1875 |
+
'condition' => [
|
1876 |
+
'EmbedType' => 'youtube',
|
1877 |
+
],
|
1878 |
+
]
|
1879 |
+
);
|
1880 |
+
$this->add_control(
|
1881 |
+
'YtAutoplayNote',
|
1882 |
+
[
|
1883 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1884 |
+
'raw' => 'Note : The <b>mute</b> option should be required when you select the <b>autoplay</b> option.',
|
1885 |
+
'content_classes' => 'tp-widget-description',
|
1886 |
+
'condition' => [
|
1887 |
+
'EmbedType' => 'youtube',
|
1888 |
+
],
|
1889 |
+
]
|
1890 |
+
);
|
1891 |
+
$this->add_control(
|
1892 |
+
'ReMrYtPost',
|
1893 |
+
[
|
1894 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1895 |
+
'raw' => 'Note : <a href="https://developers.google.com/youtube/player_parameters" target="_blank" rel="noopener noreferrer">Read More About All Options</a>',
|
1896 |
+
'content_classes' => 'tp-widget-description',
|
1897 |
+
'condition' => [
|
1898 |
+
'EmbedType' => 'youtube',
|
1899 |
+
],
|
1900 |
+
]
|
1901 |
+
);
|
1902 |
+
$this->add_control(
|
1903 |
+
'YtSTime',
|
1904 |
+
[
|
1905 |
+
'label' => esc_html__( 'Start Time', 'tpebl' ),
|
1906 |
+
'type' => Controls_Manager::TEXT,
|
1907 |
+
'default' => '',
|
1908 |
+
'placeholder' => esc_html__( 'E.g : 60', 'tpebl' ),
|
1909 |
+
'dynamic' => [
|
1910 |
+
'active' => true,
|
1911 |
+
],
|
1912 |
+
'condition' => [
|
1913 |
+
'EmbedType' => 'youtube',
|
1914 |
+
],
|
1915 |
+
]
|
1916 |
+
);
|
1917 |
+
$this->add_control(
|
1918 |
+
'YtETime',
|
1919 |
+
[
|
1920 |
+
'label' => esc_html__( 'End Time', 'tpebl' ),
|
1921 |
+
'type' => Controls_Manager::TEXT,
|
1922 |
+
'default' => '',
|
1923 |
+
'placeholder' => esc_html__( 'E.g : 60', 'tpebl' ),
|
1924 |
+
'dynamic' => [
|
1925 |
+
'active' => true,
|
1926 |
+
],
|
1927 |
+
'condition' => [
|
1928 |
+
'EmbedType' => 'youtube',
|
1929 |
+
],
|
1930 |
+
]
|
1931 |
+
);
|
1932 |
+
$this->add_control(
|
1933 |
+
'Ytlanguage',
|
1934 |
+
[
|
1935 |
+
'label' => esc_html__( 'Language', 'tpebl' ),
|
1936 |
+
'type' => Controls_Manager::TEXT,
|
1937 |
+
'default' => '',
|
1938 |
+
'placeholder' => esc_html__( 'E.g : en', 'tpebl' ),
|
1939 |
+
'dynamic' => [
|
1940 |
+
'active' => true,
|
1941 |
+
],
|
1942 |
+
'condition' => [
|
1943 |
+
'EmbedType' => 'youtube',
|
1944 |
+
],
|
1945 |
+
]
|
1946 |
+
);
|
1947 |
+
$this->add_control(
|
1948 |
+
'YtLangNote',
|
1949 |
+
[
|
1950 |
+
'type' => \Elementor\Controls_Manager::RAW_HTML,
|
1951 |
+
'raw' => 'Note : <a href="http://www.loc.gov/standards/iso639-2/php/code_list.php" target="_blank" rel="noopener noreferrer">Language ISO 639-1 Code</a>',
|
1952 |
+
'content_classes' => 'tp-widget-description',
|
1953 |
+
'condition' => [
|
1954 |
+
'EmbedType' => 'youtube',
|
1955 |
+
],
|
1956 |
+
]
|
1957 |
+
);
|
1958 |
+
$this->end_controls_section();
|
1959 |
+
/*YouTube End*/
|
1960 |
+
|
1961 |
+
/*Google Map Start*/
|
1962 |
+
$this->start_controls_section('Map_section',
|
1963 |
+
[
|
1964 |
+
'label'=>esc_html__('Google Map','tpebl'),
|
1965 |
+
'tab'=>Controls_Manager::TAB_CONTENT,
|
1966 |
+
'condition'=>[
|
1967 |
+
'EmbedType'=>'googlemap',
|
1968 |
+
],
|
1969 |
+
]
|
1970 |
+
);
|
1971 |
+
$this->add_control('Mapaccesstoken',
|
1972 |
+
[
|
1973 |
+
'label'=>esc_html__('Map Type','tpebl'),
|
1974 |
+
'type'=>Controls_Manager::SELECT,
|
1975 |
+
'default'=>'default',
|
1976 |
+
'options'=>[
|
1977 |
+
'default'=>esc_html__('Default','tpebl'),
|
1978 |
+
'accesstoken'=>esc_html__('Access Token','tpebl'),
|
1979 |
+
],
|
1980 |
+
]
|
1981 |
+
);
|
1982 |
+
$this->add_control('GAccesstoken',
|
1983 |
+
[
|
1984 |
+
'label'=>__('AccessToken','tpebl'),
|
1985 |
+
'type'=>Controls_Manager::TEXTAREA,
|
1986 |
+
'rows'=>2,
|
1987 |
+
'default'=>'',
|
1988 |
+
'placeholder'=>__('Enter AccessToken','tpebl'),
|
1989 |
+
'condition'=>[
|
1990 |
+
'Mapaccesstoken'=>'accesstoken',
|
1991 |
+
],
|
1992 |
+
]
|
1993 |
+
);
|
1994 |
+
$this->add_control('GMapModes',
|
1995 |
+
[
|
1996 |
+
'label'=>esc_html__('Map Modes','tpebl'),
|
1997 |
+
'type'=>Controls_Manager::SELECT,
|
1998 |
+
'default'=>'search',
|
1999 |
+
'options'=>[
|
2000 |
+
'place'=>esc_html__('Place Mode','tpebl'),
|
2001 |
+
'directions'=>esc_html__('Directions Mode','tpebl'),
|
2002 |
+
'streetview'=>esc_html__('Streetview Mode','tpebl'),
|
2003 |
+
'search'=>esc_html__('Search Mode','tpebl'),
|
2004 |
+
],
|
2005 |
+
'condition'=>[
|
2006 |
+
'Mapaccesstoken'=>'accesstoken',
|
2007 |
+
],
|
2008 |
+
]
|
2009 |
+
);
|
2010 |
+
$this->add_control('GSearchText',
|
2011 |
+
[
|
2012 |
+
'label'=>__('Search Text','tpebl'),
|
2013 |
+
'type'=>Controls_Manager::TEXT,
|
2014 |
+
'default'=>__('New York, NY, USA','tpebl'),
|
2015 |
+
'placeholder'=>__('Enter Location Text','tpebl'),
|
2016 |
+
'condition'=>[
|
2017 |
+
'GMapModes'=>['place','search'],
|
2018 |
+
],
|
2019 |
+
]
|
2020 |
+
);
|
2021 |
+
$this->add_control('GOrigin',
|
2022 |
+
[
|
2023 |
+
'label'=>__('Starting point','tpebl'),
|
2024 |
+
'type'=>Controls_Manager::TEXT,
|
2025 |
+
'default'=>__('LosAngeles+California+USA','tpebl'),
|
2026 |
+
'placeholder'=>__('Enter Starting Point','tpebl'),
|
2027 |
+
'separator'=>'before',
|
2028 |
+
'condition'=>[
|
2029 |
+
'Mapaccesstoken'=>'accesstoken',
|
2030 |
+
'GMapModes'=>'directions',
|
2031 |
+
],
|
2032 |
+
]
|
2033 |
+
);
|
2034 |
+
$this->add_control('GDestination',
|
2035 |
+
[
|
2036 |
+
'label'=>__('End Point','tpebl'),
|
2037 |
+
'type'=>Controls_Manager::TEXT,
|
2038 |
+
'default'=>__('Corona+California+USA','tpebl'),
|
2039 |
+
'placeholder'=>__('Enter Starting Point','tpebl'),
|
2040 |
+
'condition'=>[
|
2041 |
+
'Mapaccesstoken'=>'accesstoken',
|
2042 |
+
'GMapModes'=>'directions',
|
2043 |
+
],
|
2044 |
+
]
|
2045 |
+
);
|
2046 |
+
$this->add_control('GWaypoints',
|
2047 |
+
[
|
2048 |
+
'label'=>__('Way Points','tpebl'),
|
2049 |
+
'type'=>Controls_Manager::TEXTAREA,
|
2050 |
+
'rows'=>3,
|
2051 |
+
'default'=>__('Huntington+Beach+California+US | Santa Ana+California+USA','tpebl'),
|
2052 |
+
'placeholder'=>__( 'Type your description here','tpebl'),
|
2053 |
+
'condition'=>[
|
2054 |
+
'Mapaccesstoken'=>'accesstoken',
|
2055 |
+
'GMapModes'=>'directions',
|
2056 |
+
],
|
2057 |
+
]
|
2058 |
+
);
|
2059 |
+
$this->add_control('GTravelMode',
|
2060 |
+
[
|
2061 |
+
'label'=>esc_html__('Travel Mode','tpebl'),
|
2062 |
+
'type'=>Controls_Manager::SELECT,
|
2063 |
+
'default'=>'driving',
|
2064 |
+
'options'=>[
|
2065 |
+
'driving'=>esc_html__('Driving Mode','tpebl'),
|
2066 |
+
'bicycling'=>esc_html__('Bicycling','tpebl'),
|
2067 |
+
'flying'=>esc_html__('Flying','tpebl'),
|
2068 |
+
'transit'=>esc_html__('Transit','tpebl'),
|
2069 |
+
'walking'=>esc_html__('Walking Mode','tpebl'),
|
2070 |
+
],
|
2071 |
+
'condition'=>[
|
2072 |
+
'Mapaccesstoken'=>'accesstoken',
|
2073 |
+
'GMapModes'=>'directions',
|
2074 |
+
],
|
2075 |
+
]
|
2076 |
+
);
|
2077 |
+
$this->add_control('Gavoid',
|
2078 |
+
[
|
2079 |
+
'label'=>esc_html__('Avoid Elements','tpebl'),
|
2080 |
+
'type'=>Controls_Manager::SELECT2,
|
2081 |
+
'multiple'=>true,
|
2082 |
+
'default'=>'',
|
2083 |
+
'options'=>[
|
2084 |
+
'tolls'=>__('Tolls','tpebl'),
|
2085 |
+
'highways'=>__('Highways','tpebl'),
|
2086 |
+
],
|
2087 |
+
'label_block'=>true,
|
2088 |
+
'condition'=>[
|
2089 |
+
'Mapaccesstoken'=>'accesstoken',
|
2090 |
+
'GMapModes'=>'directions',
|
2091 |
+
],
|
2092 |
+
]
|
2093 |
+
);
|
2094 |
+
$this->add_control('GstreetviewText',
|
2095 |
+
[
|
2096 |
+
'label'=>__('latitude and longitude','tpebl'),
|
2097 |
+
'type'=>Controls_Manager::TEXT,
|
2098 |
+
'default'=>__('23.0489,72.5160','tpebl'),
|
2099 |
+
'placeholder'=>__('let,long','tpebl'),
|
2100 |
+
'condition'=>[
|
2101 |
+
'Mapaccesstoken'=>'accesstoken',
|
2102 |
+
'GMapModes'=>'streetview',
|
2103 |
+
],
|
2104 |
+
]
|
2105 |
+
);
|
2106 |
+
$this->add_control('Pluscodelink',
|
2107 |
+
[
|
2108 |
+
'type'=>Controls_Manager::RAW_HTML,
|
2109 |
+
'raw'=>'Note : <a href="https://plus.codes/7JMJ2GP6+9F" target="_blank" rel="noopener noreferrer">Get latitude and longitude</a>',
|
2110 |
+
'content_classes'=>'tp-widget-description',
|
2111 |
+
'condition'=>[
|
2112 |
+
'EmbedType'=>'googlemap',
|
2113 |
+
],
|
2114 |
+
]
|
2115 |
+
);
|
2116 |
+
$this->end_controls_section();
|
2117 |
+
/*Google Map End*/
|
2118 |
+
|
2119 |
+
/*Map option start*/
|
2120 |
+
$this->start_controls_section('MapOption_section',
|
2121 |
+
[
|
2122 |
+
'label'=>esc_html__('Map Option','tpebl'),
|
2123 |
+
'tab'=>Controls_Manager::TAB_CONTENT,
|
2124 |
+
'condition'=>[
|
2125 |
+
'EmbedType'=>'googlemap',
|
2126 |
+
],
|
2127 |
+
]
|
2128 |
+
);
|
2129 |
+
$this->add_control('MapViews',
|
2130 |
+
[
|
2131 |
+
'label'=>esc_html__('Map View','tpebl'),
|
2132 |
+
'type'=>Controls_Manager::SELECT,
|
2133 |
+
'default'=>'roadmap',
|
2134 |
+
'options'=>[
|
2135 |
+
'roadmap'=>esc_html__('Roadmap','tpebl'),
|
2136 |
+
'satellite'=>esc_html__('Satellite','tpebl'),
|
2137 |
+
],
|
2138 |
+
'condition'=>[
|
2139 |
+
'Mapaccesstoken'=>'accesstoken',
|
2140 |
+
'EmbedType'=>'googlemap',
|
2141 |
+
'GMapModes!'=>'streetview',
|
2142 |
+
],
|
2143 |
+
]
|
2144 |
+
);
|
2145 |
+
$this->add_control('MapZoom',
|
2146 |
+
[
|
2147 |
+
'label'=>__('Zoom','tpebl'),
|
2148 |
+
'type'=>Controls_Manager::SLIDER,
|
2149 |
+
'size_units'=>['px'],
|
2150 |
+
'range' => [
|
2151 |
+
'px'=>[
|
2152 |
+
'min' => 0,
|
2153 |
+
'max' => 21,
|
2154 |
+
'step' => 1,
|
2155 |
+
],
|
2156 |
+
],
|
2157 |
+
'default' => [
|
2158 |
+
'unit'=>'px',
|
2159 |
+
'size'=>3,
|
2160 |
+
],
|
2161 |
+
'condition'=>[
|
2162 |
+
'GMapModes!'=>'streetview',
|
2163 |
+
],
|
2164 |
+
]
|
2165 |
+
);
|
2166 |
+
$this->add_control('GMwidth',
|
2167 |
+
[
|
2168 |
+
'label'=>__('Width','tpebl'),
|
2169 |
+
'type'=>Controls_Manager::SLIDER,
|
2170 |
+
'size_units' => ['px'],
|
2171 |
+
'range' => [
|
2172 |
+
'px' => [
|
2173 |
+
'min' => 0,
|
2174 |
+
'max' => 1000,
|
2175 |
+
'step' => 5,
|
2176 |
+
],
|
2177 |
+
],
|
2178 |
+
'default' => [
|
2179 |
+
'unit'=>'px',
|
2180 |
+
'size'=>600,
|
2181 |
+
],
|
2182 |
+
'selectors' => [
|
2183 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'width:{{SIZE}}{{UNIT}}',
|
2184 |
+
],
|
2185 |
+
]
|
2186 |
+
);
|
2187 |
+
$this->add_control('GMHeight',
|
2188 |
+
[
|
2189 |
+
'label'=>__('Height','tpebl'),
|
2190 |
+
'type'=>Controls_Manager::SLIDER,
|
2191 |
+
'size_units' => ['px'],
|
2192 |
+
'range' => [
|
2193 |
+
'px' => [
|
2194 |
+
'min' => 0,
|
2195 |
+
'max' => 1000,
|
2196 |
+
'step' => 5,
|
2197 |
+
],
|
2198 |
+
],
|
2199 |
+
'default' => [
|
2200 |
+
'unit'=>'px',
|
2201 |
+
'size'=>450,
|
2202 |
+
],
|
2203 |
+
|
2204 |
+
'selectors' => [
|
2205 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'height:{{SIZE}}{{UNIT}}',
|
2206 |
+
],
|
2207 |
+
]
|
2208 |
+
);
|
2209 |
+
$this->end_controls_section();
|
2210 |
+
/*Map option End*/
|
2211 |
+
|
2212 |
+
/*Extra Options Start*/
|
2213 |
+
$this->start_controls_section(
|
2214 |
+
'semd_Extra_opts',
|
2215 |
+
[
|
2216 |
+
'label' => esc_html__( 'Extra Options', 'tpebl' ),
|
2217 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
2218 |
+
'condition' => [
|
2219 |
+
'EmbedType' => ['vimeo','youtube'],
|
2220 |
+
],
|
2221 |
+
]
|
2222 |
+
);
|
2223 |
+
$this->add_responsive_control(
|
2224 |
+
'ExWidth',
|
2225 |
+
[
|
2226 |
+
'type' => Controls_Manager::SLIDER,
|
2227 |
+
'label' => esc_html__('Width', 'tpebl'),
|
2228 |
+
'size_units' => [ 'px' ],
|
2229 |
+
'range' => [
|
2230 |
+
'px' => [
|
2231 |
+
'min' => 0,
|
2232 |
+
'max' => 1500,
|
2233 |
+
'step' => 640,
|
2234 |
+
],
|
2235 |
+
],
|
2236 |
+
'render_type' => 'ui',
|
2237 |
+
'condition' => [
|
2238 |
+
'EmbedType' => ['vimeo','youtube'],
|
2239 |
+
],
|
2240 |
+
'selectors' => [
|
2241 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-frame-set' => 'width: {{SIZE}}{{UNIT}}',
|
2242 |
+
],
|
2243 |
+
]
|
2244 |
+
);
|
2245 |
+
$this->add_responsive_control(
|
2246 |
+
'ExHeight',
|
2247 |
+
[
|
2248 |
+
'type' => Controls_Manager::SLIDER,
|
2249 |
+
'label' => esc_html__('Height', 'tpebl'),
|
2250 |
+
'size_units' => [ 'px' ],
|
2251 |
+
'range' => [
|
2252 |
+
'px' => [
|
2253 |
+
'min' => 0,
|
2254 |
+
'max' => 1500,
|
2255 |
+
'step' => 360,
|
2256 |
+
],
|
2257 |
+
],
|
2258 |
+
'render_type' => 'ui',
|
2259 |
+
'condition' => [
|
2260 |
+
'EmbedType' => ['vimeo','youtube'],
|
2261 |
+
],
|
2262 |
+
'selectors' => [
|
2263 |
+
'{{WRAPPER}} .tp-social-embed iframe.tp-frame-set' => 'height: {{SIZE}}{{UNIT}}',
|
2264 |
+
],
|
2265 |
+
]
|
2266 |
+
);
|
2267 |
+
$this->end_controls_section();
|
2268 |
+
/*Extra Options End*/
|
2269 |
+
|
2270 |
+
/*Embed Options Style Start*/
|
2271 |
+
$this->start_controls_section(
|
2272 |
+
'section_EmdOpt_styling',
|
2273 |
+
[
|
2274 |
+
'label' => esc_html__('Embed Options', 'tpebl'),
|
2275 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
2276 |
+
]
|
2277 |
+
);
|
2278 |
+
$this->add_responsive_control(
|
2279 |
+
'AlignmentBG',
|
2280 |
+
[
|
2281 |
+
'label' => esc_html__( 'Content Alignment', 'tpebl' ),
|
2282 |
+
'type' => Controls_Manager::CHOOSE,
|
2283 |
+
'default' => 'center',
|
2284 |
+
'options' => [
|
2285 |
+
'left' => [
|
2286 |
+
'title' => esc_html__( 'Left', 'tpebl' ),
|
2287 |
+
'icon' => 'eicon-text-align-left',
|
2288 |
+
],
|
2289 |
+
'center' => [
|
2290 |
+
'title' => esc_html__( 'Center', 'tpebl' ),
|
2291 |
+
'icon' => 'eicon-text-align-center',
|
2292 |
+
],
|
2293 |
+
'right' => [
|
2294 |
+
'title' => esc_html__( 'Right', 'tpebl' ),
|
2295 |
+
'icon' => 'eicon-text-align-right',
|
2296 |
+
],
|
2297 |
+
],
|
2298 |
+
'selectors' => [
|
2299 |
+
'{{WRAPPER}} .tp-social-embed' => 'text-align: {{VALUE}}',
|
2300 |
+
],
|
2301 |
+
]
|
2302 |
+
);
|
2303 |
+
$this->start_controls_tabs( 'tabs_EmdOpt_stl' );
|
2304 |
+
$this->start_controls_tab(
|
2305 |
+
'tab_EmdOpt_Nml',
|
2306 |
+
[
|
2307 |
+
'label' => esc_html__( 'Normal', 'tpebl' ),
|
2308 |
+
'conditions' => [
|
2309 |
+
'relation' => 'or',
|
2310 |
+
'terms' => [
|
2311 |
+
[
|
2312 |
+
'terms' => [
|
2313 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2314 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2315 |
+
]
|
2316 |
+
],
|
2317 |
+
[
|
2318 |
+
'terms' => [
|
2319 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2320 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2321 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2322 |
+
]
|
2323 |
+
],
|
2324 |
+
]
|
2325 |
+
],
|
2326 |
+
]
|
2327 |
+
);
|
2328 |
+
$this->add_control(
|
2329 |
+
'TwBtnCr',
|
2330 |
+
[
|
2331 |
+
'label' => esc_html__('Color', 'tpebl'),
|
2332 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
2333 |
+
'selectors' => [
|
2334 |
+
'{{WRAPPER}} .tw-button' => 'color:{{VALUE}};',
|
2335 |
+
],
|
2336 |
+
'condition' => [
|
2337 |
+
'EmbedType' => 'twitter',
|
2338 |
+
'TweetType' => 'buttons',
|
2339 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
2340 |
+
],
|
2341 |
+
]
|
2342 |
+
);
|
2343 |
+
$this->add_group_control(
|
2344 |
+
Group_Control_Background::get_type(),
|
2345 |
+
[
|
2346 |
+
'name' => 'TwBtnBg',
|
2347 |
+
'types' => [ 'classic', 'gradient' ],
|
2348 |
+
'selector' => '{{WRAPPER}} .tw-button',
|
2349 |
+
'condition' => [
|
2350 |
+
'EmbedType' => 'twitter',
|
2351 |
+
'TweetType' => 'buttons',
|
2352 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
2353 |
+
],
|
2354 |
+
]
|
2355 |
+
);
|
2356 |
+
$this->add_group_control(
|
2357 |
+
Group_Control_Border::get_type(),
|
2358 |
+
[
|
2359 |
+
'name' => 'BorderPost',
|
2360 |
+
'label' => esc_html__( 'Border', 'tpebl' ),
|
2361 |
+
'selector' => '{{WRAPPER}} .tp-fb-iframe,{{WRAPPER}} .tw-button',
|
2362 |
+
'conditions' => [
|
2363 |
+
'relation' => 'or',
|
2364 |
+
'terms' => [
|
2365 |
+
[
|
2366 |
+
'terms' => [
|
2367 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2368 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2369 |
+
]
|
2370 |
+
],
|
2371 |
+
[
|
2372 |
+
'terms' => [
|
2373 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2374 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2375 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2376 |
+
]
|
2377 |
+
],
|
2378 |
+
]
|
2379 |
+
],
|
2380 |
+
]
|
2381 |
+
);
|
2382 |
+
$this->add_responsive_control(
|
2383 |
+
'BorderRs',
|
2384 |
+
[
|
2385 |
+
'label' => esc_html__( 'Border Radius', 'tpebl' ),
|
2386 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2387 |
+
'size_units' => [ 'px', '%' ],
|
2388 |
+
'selectors' => [
|
2389 |
+
'{{WRAPPER}} .tp-fb-iframe,{{WRAPPER}} .tw-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2390 |
+
],
|
2391 |
+
'conditions' => [
|
2392 |
+
'relation' => 'or',
|
2393 |
+
'terms' => [
|
2394 |
+
[
|
2395 |
+
'terms' => [
|
2396 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2397 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2398 |
+
]
|
2399 |
+
],
|
2400 |
+
[
|
2401 |
+
'terms' => [
|
2402 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2403 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2404 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2405 |
+
]
|
2406 |
+
],
|
2407 |
+
]
|
2408 |
+
],
|
2409 |
+
]
|
2410 |
+
);
|
2411 |
+
$this->add_group_control(
|
2412 |
+
Group_Control_Box_Shadow::get_type(),
|
2413 |
+
[
|
2414 |
+
'name' => 'BoxS',
|
2415 |
+
'selector' => '{{WRAPPER}} .tp-fb-iframe,{{WRAPPER}} .tw-button',
|
2416 |
+
'conditions' => [
|
2417 |
+
'relation' => 'or',
|
2418 |
+
'terms' => [
|
2419 |
+
[
|
2420 |
+
'terms' => [
|
2421 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2422 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2423 |
+
]
|
2424 |
+
],
|
2425 |
+
[
|
2426 |
+
'terms' => [
|
2427 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2428 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2429 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2430 |
+
]
|
2431 |
+
],
|
2432 |
+
]
|
2433 |
+
],
|
2434 |
+
]
|
2435 |
+
);
|
2436 |
+
$this->end_controls_tab();
|
2437 |
+
$this->start_controls_tab(
|
2438 |
+
'tab_EmdOpt_Hvr',
|
2439 |
+
[
|
2440 |
+
'label' => esc_html__( 'Hover', 'tpebl' ),
|
2441 |
+
'conditions' => [
|
2442 |
+
'relation' => 'or',
|
2443 |
+
'terms' => [
|
2444 |
+
[
|
2445 |
+
'terms' => [
|
2446 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2447 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2448 |
+
]
|
2449 |
+
],
|
2450 |
+
[
|
2451 |
+
'terms' => [
|
2452 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2453 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2454 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2455 |
+
]
|
2456 |
+
],
|
2457 |
+
]
|
2458 |
+
],
|
2459 |
+
]
|
2460 |
+
);
|
2461 |
+
$this->add_control(
|
2462 |
+
'TwBtnCrH',
|
2463 |
+
[
|
2464 |
+
'label' => esc_html__('Color', 'tpebl'),
|
2465 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
2466 |
+
'selectors' => [
|
2467 |
+
'{{WRAPPER}} .tw-button:hover' => 'color:{{VALUE}};',
|
2468 |
+
],
|
2469 |
+
'condition' => [
|
2470 |
+
'EmbedType' => 'twitter',
|
2471 |
+
'TweetType' => 'buttons',
|
2472 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
2473 |
+
],
|
2474 |
+
]
|
2475 |
+
);
|
2476 |
+
$this->add_group_control(
|
2477 |
+
Group_Control_Background::get_type(),
|
2478 |
+
[
|
2479 |
+
'name' => 'TwBtnBgH',
|
2480 |
+
'types' => [ 'classic', 'gradient' ],
|
2481 |
+
'selector' => '{{WRAPPER}} .tw-button:hover',
|
2482 |
+
'condition' => [
|
2483 |
+
'EmbedType' => 'twitter',
|
2484 |
+
'TweetType' => 'buttons',
|
2485 |
+
'Twbutton' => ['like','Reply','Retweet'],
|
2486 |
+
],
|
2487 |
+
]
|
2488 |
+
);
|
2489 |
+
$this->add_group_control(
|
2490 |
+
Group_Control_Border::get_type(),
|
2491 |
+
[
|
2492 |
+
'name' => 'BorderPostHr',
|
2493 |
+
'label' => esc_html__( 'Border', 'tpebl' ),
|
2494 |
+
'selector' => '{{WRAPPER}} .tp-fb-iframe:hover,{{WRAPPER}} .tw-button:hover',
|
2495 |
+
'conditions' => [
|
2496 |
+
'relation' => 'or',
|
2497 |
+
'terms' => [
|
2498 |
+
[
|
2499 |
+
'terms' => [
|
2500 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2501 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2502 |
+
]
|
2503 |
+
],
|
2504 |
+
[
|
2505 |
+
'terms' => [
|
2506 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2507 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2508 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2509 |
+
]
|
2510 |
+
],
|
2511 |
+
]
|
2512 |
+
],
|
2513 |
+
]
|
2514 |
+
);
|
2515 |
+
$this->add_responsive_control(
|
2516 |
+
'BorderHRs',
|
2517 |
+
[
|
2518 |
+
'label' => esc_html__( 'Border Radius', 'tpebl' ),
|
2519 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2520 |
+
'size_units' => [ 'px', '%' ],
|
2521 |
+
'selectors' => [
|
2522 |
+
'{{WRAPPER}} .tp-fb-iframe:hover,{{WRAPPER}} .tw-button:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2523 |
+
],
|
2524 |
+
'conditions' => [
|
2525 |
+
'relation' => 'or',
|
2526 |
+
'terms' => [
|
2527 |
+
[
|
2528 |
+
'terms' => [
|
2529 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2530 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2531 |
+
]
|
2532 |
+
],
|
2533 |
+
[
|
2534 |
+
'terms' => [
|
2535 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2536 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2537 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2538 |
+
]
|
2539 |
+
],
|
2540 |
+
]
|
2541 |
+
],
|
2542 |
+
]
|
2543 |
+
);
|
2544 |
+
$this->add_group_control(
|
2545 |
+
Group_Control_Box_Shadow::get_type(),
|
2546 |
+
[
|
2547 |
+
'name' => 'BoxSHr',
|
2548 |
+
'selector' => '{{WRAPPER}} .tp-fb-iframe:hover,{{WRAPPER}} .tw-button:hover',
|
2549 |
+
'conditions' => [
|
2550 |
+
'relation' => 'or',
|
2551 |
+
'terms' => [
|
2552 |
+
[
|
2553 |
+
'terms' => [
|
2554 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'facebook'],
|
2555 |
+
['name' => 'Type', 'operator' => 'in', 'value' => ['comments','posts','videos','page']],
|
2556 |
+
]
|
2557 |
+
],
|
2558 |
+
[
|
2559 |
+
'terms' => [
|
2560 |
+
['name' => 'EmbedType', 'operator' => '===', 'value' => 'twitter'],
|
2561 |
+
['name' => 'TweetType', 'operator' => '===', 'value' => 'buttons'],
|
2562 |
+
['name' => 'Twbutton', 'operator' => 'in', 'value' => ['like','Reply','Retweet']],
|
2563 |
+
]
|
2564 |
+
],
|
2565 |
+
]
|
2566 |
+
],
|
2567 |
+
]
|
2568 |
+
);
|
2569 |
+
$this->end_controls_tab();
|
2570 |
+
$this->end_controls_tabs();
|
2571 |
+
$this->add_control(
|
2572 |
+
'EmbedBrstyle',
|
2573 |
+
[
|
2574 |
+
'label' => esc_html__( 'Border Style', 'tpebl' ),
|
2575 |
+
'type' => Controls_Manager::SELECT,
|
2576 |
+
'default' => '',
|
2577 |
+
'options' => [
|
2578 |
+
'' => esc_html__( 'None', 'tpebl' ),
|
2579 |
+
'solid' => esc_html__( 'Solid', 'tpebl' ),
|
2580 |
+
'dashed' => esc_html__( 'Dashed', 'tpebl' ),
|
2581 |
+
'dotted' => esc_html__( 'Dotted', 'tpebl' ),
|
2582 |
+
'groove' => esc_html__( 'Groove', 'tpebl' ),
|
2583 |
+
'inset' => esc_html__( 'Inset','tpebl' ),
|
2584 |
+
'outset' => esc_html__( 'Outset','tpebl' ),
|
2585 |
+
'ridge' => esc_html__( 'Ridge', 'tpebl' ),
|
2586 |
+
],
|
2587 |
+
'condition' => [
|
2588 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2589 |
+
],
|
2590 |
+
'selectors' => [
|
2591 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'border-style: {{VALUE}} !important',
|
2592 |
+
],
|
2593 |
+
]
|
2594 |
+
);
|
2595 |
+
$this->add_responsive_control(
|
2596 |
+
'EmbedBrwidth',
|
2597 |
+
[
|
2598 |
+
'label' => esc_html__( 'Border Width', 'tpebl' ),
|
2599 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2600 |
+
'size_units' => [ 'px', '%' ],
|
2601 |
+
'condition' => [
|
2602 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2603 |
+
'EmbedBrstyle!' => '',
|
2604 |
+
],
|
2605 |
+
'selectors' => [
|
2606 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
|
2607 |
+
],
|
2608 |
+
]
|
2609 |
+
);
|
2610 |
+
$this->add_control(
|
2611 |
+
'EmbedBrcolor',
|
2612 |
+
[
|
2613 |
+
'label' => esc_html__( 'Border Color', 'tpebl' ),
|
2614 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
2615 |
+
'condition' => [
|
2616 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2617 |
+
'EmbedBrstyle!' => '',
|
2618 |
+
],
|
2619 |
+
'selectors' => [
|
2620 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'border-color: {{VALUE}} !important',
|
2621 |
+
],
|
2622 |
+
]
|
2623 |
+
);
|
2624 |
+
$this->add_control(
|
2625 |
+
'EmbedBsd',
|
2626 |
+
[
|
2627 |
+
'label' => esc_html__( 'Box Shadow', 'tpebl' ),
|
2628 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
2629 |
+
'label_off' => __( 'Default', 'tpebl' ),
|
2630 |
+
'label_on' => __( 'Custom', 'tpebl' ),
|
2631 |
+
'return_value' => 'yes',
|
2632 |
+
'condition' => [
|
2633 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2634 |
+
],
|
2635 |
+
]
|
2636 |
+
);
|
2637 |
+
$this->start_popover();
|
2638 |
+
$this->add_control(
|
2639 |
+
'EmbedBsd_color',
|
2640 |
+
[
|
2641 |
+
'label' => esc_html__( 'Color', 'tpebl' ),
|
2642 |
+
'type' => \Elementor\Controls_Manager::COLOR,
|
2643 |
+
'default' => 'rgba(0,0,0,0.5)',
|
2644 |
+
'condition' => [
|
2645 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2646 |
+
'EmbedBsd' => 'yes',
|
2647 |
+
],
|
2648 |
+
]
|
2649 |
+
);
|
2650 |
+
$this->add_control(
|
2651 |
+
'EmbedBsd_horizontal',
|
2652 |
+
[
|
2653 |
+
'label' => esc_html__( 'Horizontal', 'tpebl' ),
|
2654 |
+
'type' => Controls_Manager::SLIDER,
|
2655 |
+
'size_units' => [ 'px' ],
|
2656 |
+
'range' => [
|
2657 |
+
'px' => [
|
2658 |
+
'max' => 100,
|
2659 |
+
'min' => -100,
|
2660 |
+
'step' => 2,
|
2661 |
+
],
|
2662 |
+
],
|
2663 |
+
'default' => [
|
2664 |
+
'unit' => 'px',
|
2665 |
+
'size' => 0,
|
2666 |
+
],
|
2667 |
+
'condition' => [
|
2668 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2669 |
+
'EmbedBsd' => 'yes',
|
2670 |
+
],
|
2671 |
+
]
|
2672 |
+
);
|
2673 |
+
$this->add_control(
|
2674 |
+
'EmbedBsd_vertical',
|
2675 |
+
[
|
2676 |
+
'label' => esc_html__( 'Vertical', 'tpebl' ),
|
2677 |
+
'type' => Controls_Manager::SLIDER,
|
2678 |
+
'size_units' => [ 'px' ],
|
2679 |
+
'range' => [
|
2680 |
+
'px' => [
|
2681 |
+
'max' => 100,
|
2682 |
+
'min' => -100,
|
2683 |
+
'step' => 2,
|
2684 |
+
],
|
2685 |
+
],
|
2686 |
+
'default' => [
|
2687 |
+
'unit' => 'px',
|
2688 |
+
'size' => 0,
|
2689 |
+
],
|
2690 |
+
'condition' => [
|
2691 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2692 |
+
'EmbedBsd' => 'yes',
|
2693 |
+
],
|
2694 |
+
]
|
2695 |
+
);
|
2696 |
+
$this->add_control(
|
2697 |
+
'EmbedBsd_blur',
|
2698 |
+
[
|
2699 |
+
'label' => esc_html__( 'Blur', 'tpebl' ),
|
2700 |
+
'type' => Controls_Manager::SLIDER,
|
2701 |
+
'size_units' => [ 'px' ],
|
2702 |
+
'range' => [
|
2703 |
+
'px' => [
|
2704 |
+
'max' => 100,
|
2705 |
+
'min' => 0,
|
2706 |
+
'step' => 1,
|
2707 |
+
],
|
2708 |
+
],
|
2709 |
+
'default' => [
|
2710 |
+
'unit' => 'px',
|
2711 |
+
'size' => 10,
|
2712 |
+
],
|
2713 |
+
'condition' => [
|
2714 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2715 |
+
'EmbedBsd' => 'yes',
|
2716 |
+
],
|
2717 |
+
]
|
2718 |
+
);
|
2719 |
+
$this->add_control(
|
2720 |
+
'EmbedBsd_spread',
|
2721 |
+
[
|
2722 |
+
'label' => esc_html__( 'Spread', 'tpebl' ),
|
2723 |
+
'type' => Controls_Manager::SLIDER,
|
2724 |
+
'size_units' => [ 'px' ],
|
2725 |
+
'range' => [
|
2726 |
+
'px' => [
|
2727 |
+
'max' => 100,
|
2728 |
+
'min' => -100,
|
2729 |
+
'step' => 2,
|
2730 |
+
],
|
2731 |
+
],
|
2732 |
+
'default' => [
|
2733 |
+
'unit' => 'px',
|
2734 |
+
'size' => 0,
|
2735 |
+
],
|
2736 |
+
'selectors' => [
|
2737 |
+
'{{WRAPPER}} .tp-social-embed iframe' => 'box-shadow: {{EmbedBsd_horizontal.SIZE}}{{EmbedBsd_horizontal.UNIT}} {{EmbedBsd_vertical.SIZE}}{{EmbedBsd_vertical.UNIT}} {{EmbedBsd_blur.SIZE}}{{EmbedBsd_blur.UNIT}} {{EmbedBsd_spread.SIZE}}{{EmbedBsd_spread.UNIT}} {{EmbedBsd_color.VALUE}} !important',
|
2738 |
+
],
|
2739 |
+
'condition' => [
|
2740 |
+
'EmbedType' => ['vimeo','instagram','youtube'],
|
2741 |
+
'EmbedBsd' => 'yes',
|
2742 |
+
],
|
2743 |
+
]
|
2744 |
+
);
|
2745 |
+
$this->end_popover();
|
2746 |
+
$this->add_control(
|
2747 |
+
'SemdBgOpt',
|
2748 |
+
[
|
2749 |
+
'label' => esc_html__( 'Outer Background Option', 'tpebl' ),
|
2750 |
+
'type' => Controls_Manager::HEADING,
|
2751 |
+
'separator' => 'before',
|
2752 |
+
]
|
2753 |
+
);
|
2754 |
+
$this->add_group_control(
|
2755 |
+
Group_Control_Background::get_type(),
|
2756 |
+
[
|
2757 |
+
'name' => 'SocialBg',
|
2758 |
+
'types' => [ 'classic', 'gradient' ],
|
2759 |
+
'selector' => '{{WRAPPER}} .tp-social-embed',
|
2760 |
+
]
|
2761 |
+
);
|
2762 |
+
$this->end_controls_section();
|
2763 |
+
/*Embed Options Style End*/
|
2764 |
+
}
|
2765 |
+
|
2766 |
+
protected function render() {
|
2767 |
+
|
2768 |
+
$settings = $this->get_settings_for_display();
|
2769 |
+
$uid_sembed = uniqid("tp-sembed");
|
2770 |
+
$EmbedType = !empty($settings['EmbedType']) ? $settings['EmbedType'] : 'facebook';
|
2771 |
+
|
2772 |
+
$output = '';
|
2773 |
+
$lz2 = function_exists('tp_has_lazyload') ? tp_bg_lazyLoad($settings['SocialBg_image']) : '';
|
2774 |
+
$output .= '<div class="tp-widget-'.esc_attr($uid_sembed).' tp-social-embed '.$lz2.'">';
|
2775 |
+
if($EmbedType == 'vimeo' || $EmbedType == 'youtube'){
|
2776 |
+
$ExWidth = !empty($settings['ExWidth']['size']) ? $settings['ExWidth']['size'] : 640;
|
2777 |
+
$ExHeight = !empty($settings['ExHeight']['size']) ? $settings['ExHeight']['size'] : 360;
|
2778 |
+
}
|
2779 |
+
if( $EmbedType == 'facebook' ){
|
2780 |
+
$Type = !empty($settings['Type']) ? $settings['Type'] : '';
|
2781 |
+
$SizeBtn = !empty($settings['SizeLB']) ? $settings['SizeLB'] : '';
|
2782 |
+
if( $Type == 'comments' ){
|
2783 |
+
$CommentType = !empty($settings['CommentType']) ? $settings['CommentType'] : 'viewcomment';
|
2784 |
+
if( $CommentType == 'viewcomment' ){
|
2785 |
+
$CommentURL = !empty($settings['CommentURL']) && !empty($settings['CommentURL']['url']) ? urlencode($settings['CommentURL']['url']) : '';
|
2786 |
+
$FBwdCmt = !empty($settings['wdCmt']['size']) ? $settings['wdCmt']['size'] : 560;
|
2787 |
+
$FBHgCmt = !empty($settings['HgCmt']['size']) ? $settings['HgCmt']['size'] : 300;
|
2788 |
+
$PcomentcT = !empty($settings['PcomentcT'] == 'yes') ? true : false;
|
2789 |
+
if( $CommentURL ){
|
2790 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/comment_embed.php?href='.esc_attr($CommentURL).'&include_parent='.esc_attr($PcomentcT).'&width='.esc_attr($FBwdCmt).'&height='.esc_attr($FBHgCmt).'&appId=" width="'.esc_attr($FBwdCmt).'" height="'.esc_attr($FBHgCmt).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" ></iframe>';
|
2791 |
+
}else{
|
2792 |
+
$output .= 'URL Empty';
|
2793 |
+
}
|
2794 |
+
}else if( $CommentType == 'onlypost' ){
|
2795 |
+
$FBCommentAdd = !empty($settings['CommentAddURL']) && !empty($settings['CommentAddURL']['url']) ? $settings['CommentAddURL']['url'] : '';
|
2796 |
+
$TargetC = !empty($settings['TargetC']) ? $settings['TargetC'] : 'custom';
|
2797 |
+
if( $TargetC == 'currentpage' ){
|
2798 |
+
$URLFC = !empty($settings['URLFC']) ? $settings['URLFC'] : 'plain';
|
2799 |
+
$post_id = get_the_ID();
|
2800 |
+
if( $URLFC == 'plain' ){
|
2801 |
+
$PlainURL = get_permalink( $post_id );
|
2802 |
+
$output .= '<div class="fb-comments tp-fb-iframe" data-href="'.esc_url($PlainURL).'" data-width="" data-numposts="'.esc_attr($settings['CountC']).'" data-order-by="'.esc_attr($settings['OrderByC']).'" ></div>';
|
2803 |
+
}else if( $URLFC == 'pretty' ){
|
2804 |
+
$PrettyURL = add_query_arg('p', $post_id, home_url());
|
2805 |
+
$output .= '<div class="fb-comments tp-fb-iframe" data-href="'.esc_url($PrettyURL).'" data-width="" data-numposts="'.esc_attr($settings['CountC']).'" data-order-by="'.esc_attr($settings['OrderByC']).'" ></div>';
|
2806 |
+
}
|
2807 |
+
}else{
|
2808 |
+
$output .= '<div class="fb-comments tp-fb-iframe" data-href="'.esc_url($FBCommentAdd).'" data-width="" data-numposts="'.esc_attr($settings['CountC']).'" data-order-by="'.esc_attr($settings['OrderByC']).'" ></div>';
|
2809 |
+
}
|
2810 |
+
$output .= '<script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"></script>';
|
2811 |
+
}
|
2812 |
+
}
|
2813 |
+
if( $Type == 'posts' ){
|
2814 |
+
$PostURL = !empty($settings['PostURL']) && !empty($settings['PostURL']['url']) ? $settings['PostURL']['url'] : '';
|
2815 |
+
$wdPost = !empty($settings['wdPost']['size']) ? $settings['wdPost']['size'] : 500;
|
2816 |
+
$HgPost = !empty($settings['HgPost']['size']) ? $settings['HgPost']['size'] : 560;
|
2817 |
+
$FullPT = !empty($settings['FullPT'] == 'yes') ? true : false;
|
2818 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/post.php?href='.esc_url($PostURL).'&show_text='.esc_attr($FullPT).'&width='.esc_attr($wdPost).'&height='.esc_attr($HgPost).'&appId=" width="'.esc_attr($wdPost).'" height="'.esc_attr($HgPost).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" ></iframe>';
|
2819 |
+
}
|
2820 |
+
if( $Type == 'videos' ){
|
2821 |
+
$VideosURL = !empty($settings['VideosURL']) && !empty($settings['VideosURL']['url']) ? $settings['VideosURL']['url'] : '';
|
2822 |
+
$wdVideo = !empty($settings['wdVideo']['size']) ? $settings['wdVideo']['size'] : 500;
|
2823 |
+
$HgVideo = !empty($settings['HgVideo']['size']) ? $settings['HgVideo']['size'] : 560;
|
2824 |
+
$CaptionVT = !empty($settings['CaptionVT'] == 'yes') ? true : false;
|
2825 |
+
$AutoplayVT = !empty($settings['AutoplayVT'] == 'yes') ? true : false;
|
2826 |
+
$FullVideo = '';
|
2827 |
+
if(isset($settings['FullVT']) && $settings['FullVT'] =='yes'){
|
2828 |
+
$FullVideo = 'allowFullScreen';
|
2829 |
+
}
|
2830 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/video.php?href='.esc_url($VideosURL).'&show_text='.esc_attr($CaptionVT).'&width='.esc_attr($wdVideo).'&height='.esc_attr($HgVideo).'&autoplay='.esc_attr($AutoplayVT).'&appId=" width="'.esc_attr($wdVideo).'" height="'.esc_attr($HgVideo).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" '.$FullVideo.' ></iframe>';
|
2831 |
+
}
|
2832 |
+
if( $Type == 'likebutton' ){
|
2833 |
+
$FBLikeBtn = !empty($settings['likeBtnUrl']) && !empty($settings['likeBtnUrl']['url']) ? $settings['likeBtnUrl']['url'] : '';
|
2834 |
+
$FacesLBT = !empty($settings['FacesLBT'] == 'yes') ? true : false;
|
2835 |
+
$FBHgLike = !empty($settings['HgLikeBtn']['size']) ? $settings['HgLikeBtn']['size'] : 70;
|
2836 |
+
$FBwdLike = !empty($settings['wdLikeBtn']['size']) ? $settings['wdLikeBtn']['size'] : 350;
|
2837 |
+
$SBtnLB = !empty($settings['SBtnLB'] == 'yes') ? true : false;
|
2838 |
+
if( $settings['TargetLike'] == 'currentpage' ){
|
2839 |
+
$FmtURLlb = !empty($settings['FmtURLlb']) ? $settings['FmtURLlb'] : 'plain';
|
2840 |
+
$post_id = get_the_ID();
|
2841 |
+
if( $FmtURLlb == 'plain' ){
|
2842 |
+
$PlainLURL = get_permalink( $post_id );
|
2843 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/like.php?href='.esc_url($PlainLURL).'&layout='.esc_attr($settings['BtnStyleLB']).'&action='.esc_attr($settings['TypeLB']).'&size='.esc_attr($SizeBtn).'&share='.esc_attr($SBtnLB).'&height='.esc_attr($FBHgLike).'&show_faces='.esc_attr($FacesLBT).'&colorscheme='.esc_attr($settings['ColorSLB']).'&width='.esc_attr($FBwdLike).'&appId=" width="'.esc_attr($FBwdLike).'" height="'.esc_attr($FBHgLike).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>';
|
2844 |
+
}else if( $FmtURLlb == 'pretty' ){
|
2845 |
+
$PrettyLURL = add_query_arg('p', $post_id, home_url());
|
2846 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/like.php?href='.esc_url($PrettyLURL).'&layout='.esc_attr($settings['BtnStyleLB']).'&action='.esc_attr($settings['TypeLB']).'&size='.esc_attr($SizeBtn).'&share='.esc_attr($SBtnLB).'&height='.esc_attr($FBHgLike).'&show_faces='.esc_attr($FacesLBT).'&colorscheme='.esc_attr($settings['ColorSLB']).'&width='.esc_attr($FBwdLike).'&appId=" width="'.esc_attr($FBwdLike).'" height="'.esc_attr($FBHgLike).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>';
|
2847 |
+
}
|
2848 |
+
}else{
|
2849 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/like.php?href='.esc_url($FBLikeBtn).'&layout='.esc_attr($settings['BtnStyleLB']).'&action='.esc_attr($settings['TypeLB']).'&size='.esc_attr($SizeBtn).'&share='.esc_attr($SBtnLB).'&height='.esc_attr($FBHgLike).'&show_faces='.esc_attr($FacesLBT).'&colorscheme='.esc_attr($settings['ColorSLB']).'&width='.esc_attr($FBwdLike).'&appId=" width="'.esc_attr($FBwdLike).'" height="'.esc_attr($FBHgLike).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>';
|
2850 |
+
}
|
2851 |
+
}
|
2852 |
+
if( $Type == 'page' ){
|
2853 |
+
$URLP = !empty($settings['URLP']) && !empty($settings['URLP']['url']) ? $settings['URLP']['url'] : '';
|
2854 |
+
$wdPage = !empty($settings['wdPage']['size']) ? $settings['wdPage']['size'] : 340;
|
2855 |
+
$HgPage = !empty($settings['HgPage']['size']) ? $settings['HgPage']['size'] : 500;
|
2856 |
+
$smallHP = !empty($settings['smallHP'] == 'yes') ? true : false;
|
2857 |
+
|
2858 |
+
$CoverP = true;
|
2859 |
+
if(!empty($settings['CoverP']) && $settings['CoverP']==='yes'){
|
2860 |
+
$CoverP = false;
|
2861 |
+
}
|
2862 |
+
|
2863 |
+
$ProfileP = !empty($settings['ProfileP'] == 'yes') ? true : false;
|
2864 |
+
|
2865 |
+
$CTABTN = !empty($settings['CTABTN'] == 'yes') ? true : false;
|
2866 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/page.php?href='.esc_url($URLP).'&tabs='.esc_attr($settings['LayoutP']).'&width='.esc_attr($wdPage).'&height='.esc_attr($HgPage).'&small_header='.esc_attr($smallHP).'&hide_cover='.esc_attr($CoverP).'&show-facepile='.esc_attr($ProfileP).'&hide_cta='.esc_attr($CTABTN).'&lazy=true&adapt_container_width=true&appId=" width="'.esc_attr($wdPage).'" height="'.esc_attr($HgPage).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" ></iframe>';
|
2867 |
+
}
|
2868 |
+
if( $Type == 'save' ){
|
2869 |
+
$SaveURL = !empty($settings['SaveURL']) && !empty($settings['SaveURL']['url']) ? $settings['SaveURL']['url'] : '';
|
2870 |
+
|
2871 |
+
$output .= '<div class="fb-save" data-uri="'.esc_url($SaveURL).'" data-size="'.esc_attr($SizeBtn).'"></div>';
|
2872 |
+
$output .= '<script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"></script>';
|
2873 |
+
}
|
2874 |
+
if( $Type == 'share' ){
|
2875 |
+
$ShareURL = !empty($settings['ShareURL']) && !empty($settings['ShareURL']['url']) ? $settings['ShareURL']['url'] : '';
|
2876 |
+
$ShareHbt = !empty($settings['HgShareBtn']['size']) ? $settings['HgShareBtn']['size'] : 50;
|
2877 |
+
$ShareWbt = !empty($settings['wdShareBtn']['size']) ? $settings['wdShareBtn']['size'] : 96;
|
2878 |
+
$output .= '<iframe class="tp-fb-iframe" src="https://www.facebook.com/plugins/share_button.php?href='.esc_url($ShareURL).'&layout='.esc_attr($settings['ShareBTN']).'&size='.esc_attr($SizeBtn).'&width='.esc_attr($ShareWbt).'&height='.esc_attr($ShareHbt).'&appId=" width="'.esc_attr($ShareWbt).'" height="'.esc_attr($ShareHbt).'" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>';
|
2879 |
+
}
|
2880 |
+
}else if( $EmbedType == 'twitter' ){
|
2881 |
+
$TweetType = !empty($settings['TweetType']) ? $settings['TweetType'] : 'timelines';
|
2882 |
+
$Twname = !empty($settings['Twname']) ? $settings['Twname'] : '';
|
2883 |
+
$TwColor = !empty($settings['TwColor'] == 'yes') ? 'dark' : 'light';
|
2884 |
+
$Twwidth = !empty($settings['Twwidth']['size']) ? $settings['Twwidth']['size'] : '';
|
2885 |
+
$Twconver = !empty($settings['Twconver'] == 'yes') ? 'none' : '';
|
2886 |
+
$TwMsg = !empty($settings['TwMsg']) ? $settings['TwMsg'] : '';
|
2887 |
+
if( $TweetType == 'Tweets' ){
|
2888 |
+
$TwRepeater = !empty($settings['TwRepeater']) ? $settings['TwRepeater'] : [];
|
2889 |
+
$TwCards = !empty($settings['TwCards'] == 'yes') ? 'hidden' : '';
|
2890 |
+
$TwAlign = !empty($settings['Twalign']) ? $settings['Twalign'] : 'center';
|
2891 |
+
foreach ( $TwRepeater as $index => $Tweet ) {
|
2892 |
+
$TwURl = !empty($Tweet['TweetURl']) && !empty($Tweet['TweetURl']['url']) ? $Tweet['TweetURl']['url'] : '';
|
2893 |
+
$TwMassage = !empty($Tweet['TwMassage']) ? $Tweet['TwMassage'] : '';
|
2894 |
+
$output .= '<blockquote class="twitter-tweet" data-theme="'.esc_attr($TwColor).'" data-width="'.esc_attr($Twwidth).'" data-cards="'.esc_attr($TwCards).'" data-align="'.esc_attr($TwAlign).'" data-conversation="'.esc_attr($Twconver).'" >';
|
2895 |
+
$output .= '<p lang="en" dir="ltr">'.wp_kses_post($TwMassage).'</p>';
|
2896 |
+
$output .= '<a href="'.esc_attr($TwURl).'"></a>';
|
2897 |
+
$output .= '</blockquote>';
|
2898 |
+
}
|
2899 |
+
}
|
2900 |
+
if( $TweetType == 'timelines' ){
|
2901 |
+
$TwURl = '';
|
2902 |
+
$Twclass = 'twitter-timeline';
|
2903 |
+
$TwGuides = !empty($settings['TwGuides']) ? $settings['TwGuides'] : 'Profile';
|
2904 |
+
$TwBrCr = !empty($settings['TwBrCr']) ? $settings['TwBrCr'] : '';
|
2905 |
+
$Twlimit = !empty($settings['Twlimit']['size']) ? $settings['Twlimit']['size'] : '';
|
2906 |
+
$Twstyle = !empty($settings['Twstyle']) ? $settings['Twstyle'] : 'linear';
|
2907 |
+
$TwDesign = !empty($settings['TwDesign']) ? $settings['TwDesign'] : [];
|
2908 |
+
$Twheight = ( $Twstyle == 'linear' ) ? $settings['Twheight']['size'] : '';
|
2909 |
+
$DesignBTN = array();
|
2910 |
+
if (is_array($TwDesign)) {
|
2911 |
+
foreach ($TwDesign as $value) {
|
2912 |
+
$DesignBTN[] = $value;
|
2913 |
+
}
|
2914 |
+
}
|
2915 |
+
$TwDesign = json_encode($DesignBTN);
|
2916 |
+
if($TwGuides == 'Profile'){
|
2917 |
+
$TwURl = 'https://twitter.com/'.esc_attr($Twname);
|
2918 |
+
}else if($TwGuides == 'List'){
|
2919 |
+
$TwURl = !empty($settings['Twlisturl']) && !empty($settings['Twlisturl']['url']) ? $settings['Twlisturl']['url'] : '';
|
2920 |
+
}else if($TwGuides == 'Likes'){
|
2921 |
+
$TwURl = 'https://twitter.com/'.esc_attr($Twname).'/likes';
|
2922 |
+
}else if($TwGuides == 'Collection'){
|
2923 |
+
$Twclass = 'twitter-grid';
|
2924 |
+
$TwURl = !empty($settings['TwCollection']) && !empty($settings['TwCollection']['url']) ? $settings['TwCollection']['url'] : '';
|
2925 |
+
}
|
2926 |
+
$output .= '<a class="'.esc_attr($Twclass).'" href="'.esc_url($TwURl).'" data-width="'.esc_attr($Twwidth).'" data-height="'.esc_attr($Twheight).'" data-theme="'.esc_attr($TwColor).'" data-chrome="'.esc_attr($TwDesign).'" data-border-color="'.esc_attr($TwBrCr).'" data-tweet-limit="'.esc_attr($Twlimit).'" data-aria-polite="" >'.wp_kses_post($TwMsg).'</a>';
|
2927 |
+
}
|
2928 |
+
if( $TweetType == 'buttons' ){
|
2929 |
+
$Twbutton = !empty($settings['Twbutton']) ? $settings['Twbutton'] : 'follow';
|
2930 |
+
$TwBtnSize = !empty($settings['TwBtnSize']) ? $settings['TwBtnSize'] : '';
|
2931 |
+
$TwTweetId = !empty($settings['TwTweetId']) ? $settings['TwTweetId'] : '';
|
2932 |
+
$Twicon = !empty($settings['TwIcon'] == 'yes') ? '' : '<i class="fab fa-twitter"></i>';
|
2933 |
+
|
2934 |
+
$lz1 = function_exists('tp_has_lazyload') ? tp_bg_lazyLoad($settings['TwBtnBg_image'],$settings['TwBtnBgH_image']) : '';
|
2935 |
+
if( $Twbutton == 'Tweets' ){
|
2936 |
+
$TwVia = !empty($settings['TwVia']) ? $settings['TwVia'] : '';
|
2937 |
+
$TwTextBtn = !empty($settings['TwTextBtn']) ? $settings['TwTextBtn'] : '';
|
2938 |
+
$TwHashtags = !empty($settings['TwHashtags']) ? $settings['TwHashtags'] : '';
|
2939 |
+
$TwTweetUrl = !empty($settings['TwTweetUrl']) && !empty($settings['TwTweetUrl']['url']) ? $settings['TwTweetUrl']['url'] : '';
|
2940 |
+
$output .= '<a class="twitter-share-button" href="https://twitter.com/intent/tweet" data-size="'.esc_attr($TwBtnSize).'" data-text="'.esc_attr($TwTextBtn).'" data-url="'.esc_url($TwTweetUrl).'" data-via="'.esc_attr($TwVia).'" data-hashtags="'.esc_attr($TwHashtags).'" >'.wp_kses_post($TwMsg).'</a></br>';
|
2941 |
+
}else if( $Twbutton == 'follow' ){
|
2942 |
+
$TwCount = !empty($settings['TwCount']) ? $settings['TwCount'] : 'false';
|
2943 |
+
$TwHideUname = !empty($settings['TwHideUname'] == 'yes') ? 'false' : $settings['TwHideUname'];
|
2944 |
+
$output .= '<a class="twitter-follow-button" href="https://twitter.com/'.esc_attr($Twname).'" data-size="'.esc_attr($TwBtnSize).'" data-show-screen-name="'.esc_attr($TwHideUname).'" data-show-count="'.esc_attr($TwCount).'" >'.wp_kses_post($TwMsg).'</a></br>';
|
2945 |
+
}else if( $Twbutton == 'Message' ){
|
2946 |
+
$TwRId = !empty($settings['TwRId']) ? $settings['TwRId'] : '';
|
2947 |
+
$TwMessage = !empty($settings['TwMessage']) ? $settings['TwMessage'] : '';
|
2948 |
+
$TwHideUname = !empty($settings['TwHideUname']) ? '@' : '';
|
2949 |
+
$output .= '<a class="twitter-dm-button" href="https://twitter.com/messages/compose?recipient_id='.esc_attr($TwRId).'" data-text="'.esc_attr($TwMessage).'" data-size="'.esc_attr($TwBtnSize).'" data-screen-name="'.esc_attr($TwHideUname.$Twname).'">'.wp_kses_post($TwMsg).'</a>';
|
2950 |
+
}else if( $Twbutton == 'like' ){
|
2951 |
+
$output .= '<a class="tw-button '.esc_attr($lz1).'" href="https://twitter.com/intent/like?tweet_id='.esc_attr($TwTweetId).'" >'.wp_kses_post($Twicon.' '.$settings['likeBtn']).'</a>';
|
2952 |
+
}else if( $Twbutton == 'Reply' ){
|
2953 |
+
$output .= '<a class="tw-button '.esc_attr($lz1).'" href="https://twitter.com/intent/tweet?in_reply_to='.esc_attr($TwTweetId).'">'.wp_kses_post($Twicon.' '.$settings['ReplyBtn']).'</a>';
|
2954 |
+
}else if( $Twbutton == 'Retweet' ){
|
2955 |
+
$output .= '<a class="tw-button '.esc_attr($lz1).'" href="https://twitter.com/intent/retweet?tweet_id='.esc_attr($TwTweetId).'">'.wp_kses_post($Twicon.' '.$settings['RetweetBtn']).'</a>';
|
2956 |
+
}
|
2957 |
+
}
|
2958 |
+
$output .= '<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>';
|
2959 |
+
}else if( $EmbedType == 'vimeo' ){
|
2960 |
+
$VmId = !empty($settings['ViId']) ? $settings['ViId'] : '';
|
2961 |
+
$VmStime = !empty($settings['VmStime']) ? $settings['VmStime'] : '';
|
2962 |
+
$VmColor = !empty($settings['VmColor']) ? ltrim($settings['VmColor'], '#') : 'ffffff';
|
2963 |
+
$VmSelect = !empty($settings['ViOption']) ? $settings['ViOption'] : [];
|
2964 |
+
$VmALL = [];
|
2965 |
+
if (is_array($VmSelect)) {
|
2966 |
+
foreach ($VmSelect as $value) {
|
2967 |
+
$VmALL[] = $value;
|
2968 |
+
}
|
2969 |
+
}
|
2970 |
+
$Vm_FullScreen = (in_array('fullscreen', $VmALL)) ? 'webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true"' : '';
|
2971 |
+
$Vm_AutoPlay = (in_array('autoplay', $VmALL)) ? 1 : 0;
|
2972 |
+
$Vm_loop = (in_array('loop', $VmALL)) ? 1 : 0;
|
2973 |
+
$Vm_Muted = (in_array('muted', $VmALL)) ? 1 : 0;
|
2974 |
+
$Vm_AutoPause = (in_array('autopause', $VmALL)) ? 1 : 0;
|
2975 |
+
$Vm_BackGround = (in_array('background', $VmALL)) ? 1 : 0;
|
2976 |
+
$Vm_Byline = (in_array('byline', $VmALL)) ? 1 : 0;
|
2977 |
+
$Vm_Speed = (in_array('speed', $VmALL)) ? 1 : 0;
|
2978 |
+
$Vm_Title = (in_array('title', $VmALL)) ? 1 : 0;
|
2979 |
+
$Vm_Portrait = (in_array('portrait', $VmALL)) ? 1 : 0;
|
2980 |
+
$Vm_PlaySinline = (in_array('playsinline', $VmALL)) ? 1 : 0;
|
2981 |
+
$Vm_Dnt = (in_array('dnt', $VmALL)) ? 1 : 0;
|
2982 |
+
$Vm_PiP = (in_array('pip', $VmALL)) ? 1 : 0;
|
2983 |
+
$Vm_transparent = (in_array('transparent', $VmALL)) ? 1 : 0;
|
2984 |
+
$output .= '<iframe class="tp-frame-set" src="https://player.vimeo.com/video/'.esc_attr($VmId).'?autoplay='.esc_attr($Vm_AutoPlay).'&loop='.esc_attr($Vm_loop).'&muted='.esc_attr($Vm_Muted).'&autopause='.esc_attr($Vm_AutoPause).'&background='.esc_attr($Vm_BackGround).'&byline='.esc_attr($Vm_Byline).'&playsinline='.esc_attr($Vm_PlaySinline).'&speed='.esc_attr($Vm_Speed).'&title='.esc_attr($Vm_Title).'&portrait='.esc_attr($Vm_Portrait).'&dnt='.esc_attr($Vm_Dnt).'&pip='.esc_attr($Vm_PiP).'&transparent='.esc_attr($Vm_transparent).'&color='.esc_attr($VmColor).'&#t='.esc_attr($VmStime).'" width="'.esc_attr($ExWidth).'" height="'.esc_attr($ExHeight).'" frameborder="0" '.esc_attr($Vm_FullScreen).' ></iframe>';
|
2985 |
+
}else if( $EmbedType == 'instagram' ){
|
2986 |
+
$IGType = !empty($settings['IGType']) ? $settings['IGType'] : 'posts';
|
2987 |
+
$IGId = !empty($settings['IGId']) ? $settings['IGId'] : 'CGAvnLcA3zb';
|
2988 |
+
$IGCap = '';
|
2989 |
+
if(isset($settings['IGCaptione']) && $settings['IGCaptione']!='yes'){
|
2990 |
+
$IGCap = 'data-instgrm-captioned';
|
2991 |
+
}
|
2992 |
+
if($IGType == "posts"){
|
2993 |
+
$IG_id = 'p/'.$IGId;
|
2994 |
+
}else if($IGType == "reels"){
|
2995 |
+
$IG_id = 'reel/'.$IGId;
|
2996 |
+
}else if($IGType == "igtv"){
|
2997 |
+
$IG_id = 'tv/'.$IGId;
|
2998 |
+
}
|
2999 |
+
$output .= '<blockquote class="instagram-media" '.esc_attr($IGCap).' data-instgrm-version="13" data-instgrm-permalink="https://www.instagram.com/'.esc_attr($IG_id).'/?utm_source=ig_embed"></blockquote><script async src="//www.instagram.com/embed.js"></script>';
|
3000 |
+
}else if( $EmbedType == 'youtube' ){
|
3001 |
+
$YtType = !empty($settings['YtType']) ? $settings['YtType'] : 'YtSV';
|
3002 |
+
$YtOption = !empty($settings['YtOption']) ? $settings['YtOption'] : [];
|
3003 |
+
$YtSTime = !empty($settings['YtSTime']) ? $settings['YtSTime'] : '';
|
3004 |
+
$YtETime = !empty($settings['YtETime']) ? $settings['YtETime'] : '';
|
3005 |
+
$Ytlanguage = !empty($settings['Ytlanguage']) ? $settings['Ytlanguage'] : '';
|
3006 |
+
$YtSelect = [];
|
3007 |
+
if (is_array($YtOption)) {
|
3008 |
+
foreach ($YtOption as $value) {
|
3009 |
+
$YtSelect[] = $value;
|
3010 |
+
}
|
3011 |
+
}
|
3012 |
+
$Yt_loop = (in_array('loop', $YtSelect)) ? 1 : 0;
|
3013 |
+
$Yt_fs = (in_array('fs', $YtSelect)) ? 1 : 0;
|
3014 |
+
$Yt_autoplay = (in_array('autoplay', $YtSelect)) ? 1 : 0;
|
3015 |
+
$Yt_muted = (in_array('mute', $YtSelect)) ? 1 : 0;
|
3016 |
+
$Yt_controls = (in_array('controls', $YtSelect)) ? 1 : 0;
|
3017 |
+
$Yt_disablekb = (in_array('disablekb', $YtSelect)) ? 1 : 0;
|
3018 |
+
$Yt_modestbranding = (in_array('modestbranding', $YtSelect)) ? 1 : 0;
|
3019 |
+
$Yt_playsinline = (in_array('playsinline', $YtSelect)) ? 1 : 0;
|
3020 |
+
$Yt_rel = (in_array('rel', $YtSelect)) ? 1 : 0;
|
3021 |
+
$YT_Parameters = 'autoplay='.esc_attr($Yt_autoplay).'&mute='.esc_attr($Yt_muted).'&controls='.esc_attr($Yt_controls).'&disablekb='.esc_attr($Yt_disablekb).'&fs='.esc_attr($Yt_fs).'&modestbranding='.esc_attr($Yt_modestbranding).'&loop='.esc_attr($Yt_loop).'&rel='.esc_attr($Yt_rel).'&playsinline='.esc_attr($Yt_playsinline).'&start='.esc_attr($YtSTime).'&end='.esc_attr($YtETime).'&hl='.esc_attr($Ytlanguage);
|
3022 |
+
if($YtType == "YtSV"){
|
3023 |
+
$YtVideoId = !empty($settings['YtVideoId']) ? $settings['YtVideoId'] : '';
|
3024 |
+
$YtSrc = 'https://www.youtube.com/embed/'.esc_attr($YtVideoId).'?playlist='.esc_attr($YtVideoId).'&'.esc_attr($YT_Parameters);
|
3025 |
+
}else if($YtType == "YtPlayV"){
|
3026 |
+
$YtPlaylistId = !empty($settings['YtPlaylistId']) ? $settings['YtPlaylistId'] : '';
|
3027 |
+
$YtSrc = 'https://www.youtube.com/embed?listType=playlist&list='.esc_attr($YtPlaylistId).'&'.esc_attr($YT_Parameters);
|
3028 |
+
}else if($YtType == "YtuserV"){
|
3029 |
+
$YtUsername = !empty($settings['YtUsername']) ? $settings['YtUsername'] : '';
|
3030 |
+
$YtSrc = 'https://www.youtube.com/embed?listType=user_uploads&list='.esc_attr($YtUsername).'&'.esc_attr($YT_Parameters);
|
3031 |
+
}
|
3032 |
+
$output .= '<iframe class="tp-frame-set" width="'.esc_attr($ExWidth).'" height="'.esc_attr($ExHeight).'" src="'.esc_attr($YtSrc).'" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';
|
3033 |
+
}else if( $EmbedType == 'googlemap' ){
|
3034 |
+
$Mapaccesstoken = !empty($settings['Mapaccesstoken']) ? $settings['Mapaccesstoken'] : 'default';
|
3035 |
+
$GSearchText = !empty($settings['GSearchText']) ? $settings['GSearchText'] : 'Goa+India';
|
3036 |
+
$MapZoom = (!empty($settings['MapZoom']) && !empty($settings['MapZoom']['size']) ) ? (int)$settings['MapZoom']['size'] : 1;
|
3037 |
+
|
3038 |
+
if($Mapaccesstoken == 'default'){
|
3039 |
+
$output .= '<iframe src="https://maps.google.com/maps?q='.esc_attr($GSearchText).'&z='.esc_attr($MapZoom).'&output=embed" loading="lazy" allowfullscreen frameborder="0" scrolling="no"></iframe>';
|
3040 |
+
}else if($Mapaccesstoken == 'accesstoken'){
|
3041 |
+
$GAccesstoken = !empty($settings['GAccesstoken']) ? $settings['GAccesstoken'] : '';
|
3042 |
+
$GMapModes = !empty($settings['GMapModes']) ? $settings['GMapModes'] : 'search';
|
3043 |
+
$MapViews = !empty($settings['MapViews']) ? $settings['MapViews'] : 'roadmap';
|
3044 |
+
|
3045 |
+
if($GMapModes == "place"){
|
3046 |
+
$output .= '<iframe src="https://www.google.com/maps/embed/v1/place?key='.esc_attr($GAccesstoken).'&q='.esc_attr($GSearchText).'&zoom='.esc_attr($MapZoom).'&maptype='.esc_attr($MapViews).'&language=En" loading="lazy" allowfullscreen></iframe>';
|
3047 |
+
}else if($GMapModes == "directions"){
|
3048 |
+
$GOrigin = !empty($settings['GOrigin']) ? '&origin='.$settings['GOrigin'] : '&origin=""';
|
3049 |
+
$GDestination = !empty($settings['GDestination']) ? '&destination='.$settings['GDestination'] : '&destination=""';
|
3050 |
+
$GWaypoints = !empty($settings['GWaypoints']) ? '&waypoints='.$settings['GWaypoints'] : '';
|
3051 |
+
$GTravelMode = !empty($settings['GTravelMode']) ? $settings['GTravelMode'] : 'GTravelMode';
|
3052 |
+
$Gavoid = !empty($settings['Gavoid']) ? '&avoid='.implode("|", $settings['Gavoid']) : '';
|
3053 |
+
|
3054 |
+
$output .= '<iframe src="https://www.google.com/maps/embed/v1/directions?key='.esc_attr($GAccesstoken).esc_attr($GOrigin).esc_attr($GDestination).esc_attr($GWaypoints).esc_attr($Gavoid).'&mode='.esc_attr($GTravelMode).'&zoom='.esc_attr($MapZoom).'&maptype='.esc_attr($MapViews).'&language=En" loading="lazy" allowfullscreen ></iframe>';
|
3055 |
+
}else if($GMapModes == "streetview"){
|
3056 |
+
$GstreetviewText = !empty($settings['GstreetviewText']) ? $settings['GstreetviewText'] : '';
|
3057 |
+
|
3058 |
+
$output .= '<iframe src="https://www.google.com/maps/embed/v1/streetview?key='.esc_attr($GAccesstoken).'&location='.esc_attr($GstreetviewText).'&heading=210&pitch=10&fov=90" loading="lazy" allowfullscreen></iframe>';
|
3059 |
+
}else if($GMapModes == "search"){
|
3060 |
+
$output .= '<iframe src="https://www.google.com/maps/embed/v1/search?key='.esc_attr($GAccesstoken).'&q='.esc_attr($GSearchText).'&zoom='.esc_attr($MapZoom).'&maptype='.esc_attr($MapViews).'&language=En" loading="lazy" allowfullscreen ></iframe>';
|
3061 |
+
}
|
3062 |
+
}
|
3063 |
+
}
|
3064 |
+
$output .= '</div>';
|
3065 |
+
echo $output;
|
3066 |
+
}
|
3067 |
+
|
3068 |
+
protected function content_template() {
|
3069 |
+
}
|
3070 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: Elementor, elementor widgets, elements, elementor addon, elementor templat
|
|
4 |
Requires at least: 5.7.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 5.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
@@ -279,6 +279,11 @@ We have the most advanced caching architecture, Which will never bloat your site
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
|
|
|
|
282 |
= 5.1.11 =
|
283 |
Added : Button Widget
|
284 |
Added : Social Icons Widget
|
4 |
Requires at least: 5.7.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.1.12
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 5.1.12 =
|
283 |
+
Added : Social Embed Widget
|
284 |
+
Update : Post Meta : Improved Content Alignment field
|
285 |
+
Fix : Minor bug fixes and Improvements
|
286 |
+
|
287 |
= 5.1.11 =
|
288 |
Added : Button Widget
|
289 |
Added : Social Icons Widget
|
theplus_elementor_addon.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: The Plus Addons for Elementor
|
4 |
* Plugin URI: https://theplusaddons.com/
|
5 |
* Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
|
6 |
-
* Version: 5.1.
|
7 |
* Author: POSIMYTH
|
8 |
* Author URI: https://posimyth.com/
|
9 |
* Text Domain: tpebl
|
@@ -14,7 +14,7 @@
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit;
|
16 |
}
|
17 |
-
defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '5.1.
|
18 |
define( 'L_THEPLUS_FILE__', __FILE__ );
|
19 |
|
20 |
define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
|
3 |
* Plugin Name: The Plus Addons for Elementor
|
4 |
* Plugin URI: https://theplusaddons.com/
|
5 |
* Description: Biggest collection of Widgets & Features to supercharge your Elementor Page builder in WordPress.
|
6 |
+
* Version: 5.1.12
|
7 |
* Author: POSIMYTH
|
8 |
* Author URI: https://posimyth.com/
|
9 |
* Text Domain: tpebl
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit;
|
16 |
}
|
17 |
+
defined( 'L_THEPLUS_VERSION' ) or define( 'L_THEPLUS_VERSION', '5.1.12' );
|
18 |
define( 'L_THEPLUS_FILE__', __FILE__ );
|
19 |
|
20 |
define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
|