Version Description
Added : Blockquote : Tweet button with Page URL Added : Blockquote : Dropcap(First Character) option Update : Welcome Page Change log Update Fix : Minor fix and Improvement
Download this release
Release Info
Code changes from version 5.1.2 to 5.1.3
- includes/welcome-page.php +4 -4
- modules/widgets/tp_blockquote.php +466 -4
- readme.txt +7 -1
- theplus_elementor_addon.php +2 -2
includes/welcome-page.php
CHANGED
@@ -94,11 +94,11 @@ 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">July
|
98 |
echo '<ul class="changelog-list">';
|
99 |
-
echo '<li>'.esc_html__('Added : Blockquote :
|
100 |
-
echo '<li>'.esc_html__('Added : Blockquote :
|
101 |
-
echo '<li>'.esc_html__('
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
104 |
echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Lite Full Change log','tpebl').'</a>';
|
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">July 27,2022 <span class="changelog-version">Lite Version 5.1.3</span></div>';
|
98 |
echo '<ul class="changelog-list">';
|
99 |
+
echo '<li>'.esc_html__('Added : Blockquote : Tweet button with Page URL','tpebl').'</li>';
|
100 |
+
echo '<li>'.esc_html__('Added : Blockquote : Dropcap(First Character) option','tpebl').'</li>';
|
101 |
+
echo '<li>'.esc_html__('Update : Welcome Page Change log Update','tpebl').'</li>';
|
102 |
echo '</ul>';
|
103 |
echo '</div>';
|
104 |
echo '<a href="https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/#developers" class="theplus-panel-btn theplus-mt-8" title="'.esc_attr__('change log','tpebl').'" target="_blank">'.esc_html__('Lite Full Change log','tpebl').'</a>';
|
modules/widgets/tp_blockquote.php
CHANGED
@@ -179,6 +179,55 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
179 |
],
|
180 |
]
|
181 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
$this->add_control(
|
183 |
'quote_iamge_switch',[
|
184 |
'label' => esc_html__( 'Image', 'tpebl' ),
|
@@ -241,7 +290,19 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
241 |
'label' => esc_html__( 'Extra Options', 'tpebl' ),
|
242 |
'tab' => Controls_Manager::TAB_CONTENT,
|
243 |
]
|
244 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
$this->add_control(
|
246 |
'border_layout',
|
247 |
[
|
@@ -390,7 +451,77 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
390 |
],
|
391 |
]
|
392 |
);
|
393 |
-
$this->end_controls_section();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
|
395 |
/*desc start*/
|
396 |
$this->start_controls_section(
|
@@ -1194,6 +1325,295 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
1194 |
$this->end_controls_section();
|
1195 |
/*icon start*/
|
1196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1197 |
/*Border Layout 1 start*/
|
1198 |
$this->start_controls_section(
|
1199 |
'section_border_l1_styling',
|
@@ -1894,7 +2314,44 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
1894 |
$quote_icon_pos_align = !empty($settings['quote_icon_pos_align']) ? $settings['quote_icon_pos_align'] : 'qipa_left';
|
1895 |
$quote_icon_pos_align_both = !empty($settings['quote_icon_pos_align_both']) ? $settings['quote_icon_pos_align_both'] : 'qipa_opposite';
|
1896 |
|
1897 |
-
$quote_icon_s=$quote_icon_pos_s=$quote_icon_pos_align_s=$quote_img=$tweetlink=$twt_btn=$udata=$quote_author_desccon='';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1898 |
|
1899 |
/*image*/
|
1900 |
if(isset($settings['quote_iamge_switch']) && $settings['quote_iamge_switch']=='yes' && !empty($settings['quote_image']['url'])){
|
@@ -1966,7 +2423,12 @@ class L_ThePlus_Block_Quote extends Widget_Base {
|
|
1966 |
}
|
1967 |
}
|
1968 |
|
1969 |
-
$
|
|
|
|
|
|
|
|
|
|
|
1970 |
|
1971 |
if($quote_style=='style-2' && !empty($quote_author)){
|
1972 |
if(!empty($quote_author_desc)){
|
179 |
],
|
180 |
]
|
181 |
);
|
182 |
+
$this->add_control(
|
183 |
+
'quote_tweet',[
|
184 |
+
'label' => esc_html__( 'Tweet', 'tpebl' ),
|
185 |
+
'type' => Controls_Manager::SWITCHER,
|
186 |
+
'default' => 'no',
|
187 |
+
'label_on' => esc_html__( 'Enable', 'tpebl' ),
|
188 |
+
'label_off' => esc_html__( 'Disable', 'tpebl' ),
|
189 |
+
'separator' => 'before',
|
190 |
+
]
|
191 |
+
);
|
192 |
+
$this->add_control(
|
193 |
+
'quote_tweet_icon_select',
|
194 |
+
[
|
195 |
+
'label' => esc_html__( 'Tweet Icon', 'tpebl' ),
|
196 |
+
'type' => Controls_Manager::ICONS,
|
197 |
+
'default' => [
|
198 |
+
'value' => 'fab fa-twitter',
|
199 |
+
'library' => 'solid',
|
200 |
+
],
|
201 |
+
'condition' => [
|
202 |
+
'quote_tweet' => 'yes',
|
203 |
+
],
|
204 |
+
]
|
205 |
+
);
|
206 |
+
$this->add_control(
|
207 |
+
'quote_tweet_text',
|
208 |
+
[
|
209 |
+
'label' => esc_html__( 'Text', 'tpebl' ),
|
210 |
+
'type' => Controls_Manager::TEXT,
|
211 |
+
'default' => esc_html__( 'Tweet', 'tpebl' ),
|
212 |
+
'dynamic' => ['active' => true,],
|
213 |
+
'condition' => [
|
214 |
+
'quote_tweet' => 'yes',
|
215 |
+
],
|
216 |
+
]
|
217 |
+
);
|
218 |
+
$this->add_control(
|
219 |
+
'quote_tweet_link',[
|
220 |
+
'label' => esc_html__( 'Tweet Current Page', 'tpebl' ),
|
221 |
+
'type' => Controls_Manager::SWITCHER,
|
222 |
+
'default' => 'no',
|
223 |
+
'label_on' => esc_html__( 'Enable', 'tpebl' ),
|
224 |
+
'label_off' => esc_html__( 'Disable', 'tpebl' ),
|
225 |
+
'description' => 'Note : If disable, It will tweet content of blockquote instead of current page URL.',
|
226 |
+
'condition' => [
|
227 |
+
'quote_tweet' => 'yes',
|
228 |
+
],
|
229 |
+
]
|
230 |
+
);
|
231 |
$this->add_control(
|
232 |
'quote_iamge_switch',[
|
233 |
'label' => esc_html__( 'Image', 'tpebl' ),
|
290 |
'label' => esc_html__( 'Extra Options', 'tpebl' ),
|
291 |
'tab' => Controls_Manager::TAB_CONTENT,
|
292 |
]
|
293 |
+
);
|
294 |
+
$this->add_control(
|
295 |
+
'quote_dropcap',[
|
296 |
+
'label' => esc_html__( 'Drop Cap', 'tpebl' ),
|
297 |
+
'type' => Controls_Manager::SWITCHER,
|
298 |
+
'default' => 'no',
|
299 |
+
'label_on' => esc_html__( 'Enable', 'tpebl' ),
|
300 |
+
'label_off' => esc_html__( 'Disable', 'tpebl' ),
|
301 |
+
'condition' => [
|
302 |
+
'style!' => 'style-2',
|
303 |
+
],
|
304 |
+
]
|
305 |
+
);
|
306 |
$this->add_control(
|
307 |
'border_layout',
|
308 |
[
|
451 |
],
|
452 |
]
|
453 |
);
|
454 |
+
$this->end_controls_section();
|
455 |
+
|
456 |
+
/*dropcap start*/
|
457 |
+
$this->start_controls_section(
|
458 |
+
'section_dropcap_styling',
|
459 |
+
[
|
460 |
+
'label' => esc_html__('Drop Cap', 'tpebl'),
|
461 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
462 |
+
'condition' => [
|
463 |
+
'style!' => 'style-2',
|
464 |
+
'quote_dropcap' => 'yes',
|
465 |
+
],
|
466 |
+
]
|
467 |
+
);
|
468 |
+
$this->add_responsive_control(
|
469 |
+
'dropcap_padding',
|
470 |
+
[
|
471 |
+
'label' => esc_html__( 'Padding', 'tpebl' ),
|
472 |
+
'type' => Controls_Manager::DIMENSIONS,
|
473 |
+
'size_units' => [ 'px','%','em'],
|
474 |
+
'selectors' => [
|
475 |
+
'{{WRAPPER}} .pt-plus-text-block-wrapper .tp-blockquote-dropcap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
476 |
+
],
|
477 |
+
'separator' => 'before',
|
478 |
+
]
|
479 |
+
);
|
480 |
+
$this->add_group_control(
|
481 |
+
Group_Control_Typography::get_type(),
|
482 |
+
[
|
483 |
+
'name' => 'dropcap_typography',
|
484 |
+
'selector' => '{{WRAPPER}} .pt-plus-text-block-wrapper .tp-blockquote-dropcap',
|
485 |
+
]
|
486 |
+
);
|
487 |
+
$this->start_controls_tabs( 'tabs_dropcap' );
|
488 |
+
$this->start_controls_tab(
|
489 |
+
'tab_dropcap_n',
|
490 |
+
[
|
491 |
+
'label' => esc_html__( 'Normal', 'tpebl' ),
|
492 |
+
]
|
493 |
+
);
|
494 |
+
$this->add_control(
|
495 |
+
'dropcap_color_n',
|
496 |
+
[
|
497 |
+
'label' => esc_html__( 'Color', 'tpebl' ),
|
498 |
+
'type' => Controls_Manager::COLOR,
|
499 |
+
'selectors' => [
|
500 |
+
'{{WRAPPER}} .pt-plus-text-block-wrapper .tp-blockquote-dropcap' => 'color: {{VALUE}};',
|
501 |
+
],
|
502 |
+
]
|
503 |
+
);
|
504 |
+
$this->end_controls_tab();
|
505 |
+
$this->start_controls_tab(
|
506 |
+
'tab_dropcap_h',
|
507 |
+
[
|
508 |
+
'label' => esc_html__( 'Hover', 'tpebl' ),
|
509 |
+
]
|
510 |
+
);
|
511 |
+
$this->add_control(
|
512 |
+
'dropcap_color_h',
|
513 |
+
[
|
514 |
+
'label' => esc_html__( 'Color', 'tpebl' ),
|
515 |
+
'type' => Controls_Manager::COLOR,
|
516 |
+
'selectors' => [
|
517 |
+
'{{WRAPPER}} .pt-plus-text-block-wrapper .plus_blockquote:hover .tp-blockquote-dropcap' => 'color: {{VALUE}};',
|
518 |
+
],
|
519 |
+
]
|
520 |
+
);
|
521 |
+
$this->end_controls_tab();
|
522 |
+
$this->end_controls_tabs();
|
523 |
+
$this->end_controls_section();
|
524 |
+
/*dropcap start*/
|
525 |
|
526 |
/*desc start*/
|
527 |
$this->start_controls_section(
|
1325 |
$this->end_controls_section();
|
1326 |
/*icon start*/
|
1327 |
|
1328 |
+
/*Tweet start*/
|
1329 |
+
$this->start_controls_section(
|
1330 |
+
'section_tweet_styling',
|
1331 |
+
[
|
1332 |
+
'label' => esc_html__('Tweet Button', 'tpebl'),
|
1333 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1334 |
+
'condition' => [
|
1335 |
+
'quote_tweet' => 'yes',
|
1336 |
+
],
|
1337 |
+
]
|
1338 |
+
);
|
1339 |
+
$this->add_responsive_control(
|
1340 |
+
'tweet_align',
|
1341 |
+
[
|
1342 |
+
'label' => esc_html__( 'Alignment', 'tpebl' ),
|
1343 |
+
'type' => Controls_Manager::CHOOSE,
|
1344 |
+
'options' => [
|
1345 |
+
'flex-start' => [
|
1346 |
+
'title' => esc_html__( 'Left', 'tpebl' ),
|
1347 |
+
'icon' => 'eicon-text-align-left',
|
1348 |
+
],
|
1349 |
+
'center' => [
|
1350 |
+
'title' => esc_html__( 'Center', 'tpebl' ),
|
1351 |
+
'icon' => 'eicon-text-align-center',
|
1352 |
+
],
|
1353 |
+
'flex-end' => [
|
1354 |
+
'title' => esc_html__( 'Right', 'tpebl' ),
|
1355 |
+
'icon' => 'eicon-text-align-right',
|
1356 |
+
],
|
1357 |
+
],
|
1358 |
+
'default' => 'flex-start',
|
1359 |
+
'selectors' => [
|
1360 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper' => 'justify-content: {{VALUE}};',
|
1361 |
+
],
|
1362 |
+
]
|
1363 |
+
);
|
1364 |
+
$this->add_responsive_control(
|
1365 |
+
'tweet_padding',
|
1366 |
+
[
|
1367 |
+
'label' => esc_html__( 'Padding', 'tpebl' ),
|
1368 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1369 |
+
'size_units' => [ 'px','%','em'],
|
1370 |
+
'selectors' => [
|
1371 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1372 |
+
],
|
1373 |
+
'separator' => 'before',
|
1374 |
+
]
|
1375 |
+
);
|
1376 |
+
$this->add_responsive_control(
|
1377 |
+
'tweet_margin',
|
1378 |
+
[
|
1379 |
+
'label' => esc_html__( 'Margin', 'tpebl' ),
|
1380 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1381 |
+
'size_units' => [ 'px','%','em'],
|
1382 |
+
'selectors' => [
|
1383 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1384 |
+
],
|
1385 |
+
]
|
1386 |
+
);
|
1387 |
+
$this->add_group_control(
|
1388 |
+
Group_Control_Typography::get_type(),
|
1389 |
+
[
|
1390 |
+
'name' => 'tweet_typography',
|
1391 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet',
|
1392 |
+
]
|
1393 |
+
);
|
1394 |
+
$this->add_responsive_control(
|
1395 |
+
'tweet_svg_size',
|
1396 |
+
[
|
1397 |
+
'type' => Controls_Manager::SLIDER,
|
1398 |
+
'label' => esc_html__('Icon Size', 'tpebl'),
|
1399 |
+
'size_units' => [ 'px' ],
|
1400 |
+
'range' => [
|
1401 |
+
'px' => [
|
1402 |
+
'min' => 1,
|
1403 |
+
'max' => 300,
|
1404 |
+
'step' => 1,
|
1405 |
+
],
|
1406 |
+
],
|
1407 |
+
'render_type' => 'ui',
|
1408 |
+
'selectors' => [
|
1409 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet svg' => 'width: {{SIZE}}{{UNIT}};height:{{SIZE}}{{UNIT}}',
|
1410 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet i' => 'font-size: {{SIZE}}{{UNIT}};',
|
1411 |
+
],
|
1412 |
+
]
|
1413 |
+
);
|
1414 |
+
$this->add_responsive_control(
|
1415 |
+
'tweet_svg_offset',
|
1416 |
+
[
|
1417 |
+
'type' => Controls_Manager::SLIDER,
|
1418 |
+
'label' => esc_html__('Icon Offset', 'tpebl'),
|
1419 |
+
'size_units' => [ 'px' ],
|
1420 |
+
'range' => [
|
1421 |
+
'px' => [
|
1422 |
+
'min' => 0,
|
1423 |
+
'max' => 50,
|
1424 |
+
'step' => 1,
|
1425 |
+
],
|
1426 |
+
],
|
1427 |
+
'render_type' => 'ui',
|
1428 |
+
'selectors' => [
|
1429 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet i,{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet svg' => 'margin-right:{{SIZE}}{{UNIT}}',
|
1430 |
+
],
|
1431 |
+
]
|
1432 |
+
);
|
1433 |
+
$this->start_controls_tabs( 'tabs_tweet' );
|
1434 |
+
$this->start_controls_tab(
|
1435 |
+
'tab_tweet_n',
|
1436 |
+
[
|
1437 |
+
'label' => esc_html__( 'Normal', 'tpebl' ),
|
1438 |
+
]
|
1439 |
+
);
|
1440 |
+
$this->add_control(
|
1441 |
+
'tweet_color_n',
|
1442 |
+
[
|
1443 |
+
'label' => esc_html__( 'Color', 'tpebl' ),
|
1444 |
+
'type' => Controls_Manager::COLOR,
|
1445 |
+
'selectors' => [
|
1446 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'color: {{VALUE}};',
|
1447 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet svg' => 'fill: {{VALUE}};',
|
1448 |
+
],
|
1449 |
+
]
|
1450 |
+
);
|
1451 |
+
$this->add_group_control(
|
1452 |
+
Group_Control_Background::get_type(),
|
1453 |
+
[
|
1454 |
+
'name' => 'tweet_background_n',
|
1455 |
+
'label' => esc_html__( 'Background', 'tpebl' ),
|
1456 |
+
'types' => [ 'classic', 'gradient'],
|
1457 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet',
|
1458 |
+
]
|
1459 |
+
);
|
1460 |
+
$this->add_group_control(
|
1461 |
+
Group_Control_Border::get_type(),
|
1462 |
+
[
|
1463 |
+
'name' => 'tweet_border_n',
|
1464 |
+
'label' => esc_html__( 'Border', 'tpebl' ),
|
1465 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet',
|
1466 |
+
]
|
1467 |
+
);
|
1468 |
+
$this->add_responsive_control(
|
1469 |
+
'tweet_br_n',
|
1470 |
+
[
|
1471 |
+
'label' => esc_html__( 'Border Radius', 'tpebl' ),
|
1472 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1473 |
+
'size_units' => [ 'px', '%' ],
|
1474 |
+
'selectors' => [
|
1475 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1476 |
+
],
|
1477 |
+
]
|
1478 |
+
);
|
1479 |
+
$this->add_group_control(
|
1480 |
+
Group_Control_Box_Shadow::get_type(),
|
1481 |
+
[
|
1482 |
+
'name' => 'tweet_shadow_n',
|
1483 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet',
|
1484 |
+
]
|
1485 |
+
);
|
1486 |
+
$this->end_controls_tab();
|
1487 |
+
$this->start_controls_tab(
|
1488 |
+
'tab_tweet_h',
|
1489 |
+
[
|
1490 |
+
'label' => esc_html__( 'Hover', 'tpebl' ),
|
1491 |
+
]
|
1492 |
+
);
|
1493 |
+
$this->add_control(
|
1494 |
+
'tweet_color_h',
|
1495 |
+
[
|
1496 |
+
'label' => esc_html__( 'Color', 'tpebl' ),
|
1497 |
+
'type' => Controls_Manager::COLOR,
|
1498 |
+
'selectors' => [
|
1499 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover' => 'color: {{VALUE}};',
|
1500 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover svg' => 'fill: {{VALUE}};',
|
1501 |
+
],
|
1502 |
+
]
|
1503 |
+
);
|
1504 |
+
$this->add_group_control(
|
1505 |
+
Group_Control_Background::get_type(),
|
1506 |
+
[
|
1507 |
+
'name' => 'tweet_background_h',
|
1508 |
+
'label' => esc_html__( 'Background', 'tpebl' ),
|
1509 |
+
'types' => [ 'classic', 'gradient'],
|
1510 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover',
|
1511 |
+
]
|
1512 |
+
);
|
1513 |
+
$this->add_group_control(
|
1514 |
+
Group_Control_Border::get_type(),
|
1515 |
+
[
|
1516 |
+
'name' => 'tweet_border_h',
|
1517 |
+
'label' => esc_html__( 'Border', 'tpebl' ),
|
1518 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover',
|
1519 |
+
]
|
1520 |
+
);
|
1521 |
+
$this->add_responsive_control(
|
1522 |
+
'tweet_br_h',
|
1523 |
+
[
|
1524 |
+
'label' => esc_html__( 'Border Radius', 'tpebl' ),
|
1525 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1526 |
+
'size_units' => [ 'px', '%' ],
|
1527 |
+
'selectors' => [
|
1528 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1529 |
+
],
|
1530 |
+
]
|
1531 |
+
);
|
1532 |
+
$this->add_group_control(
|
1533 |
+
Group_Control_Box_Shadow::get_type(),
|
1534 |
+
[
|
1535 |
+
'name' => 'tweet_shadow_h',
|
1536 |
+
'selector' => '{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet:hover',
|
1537 |
+
]
|
1538 |
+
);
|
1539 |
+
$this->end_controls_tab();
|
1540 |
+
$this->end_controls_tabs();
|
1541 |
+
$this->add_control(
|
1542 |
+
'tweet_extras_heading',
|
1543 |
+
[
|
1544 |
+
'label' => esc_html__( 'Tweet Extras', 'tpebl' ),
|
1545 |
+
'type' => \Elementor\Controls_Manager::SWITCHER,
|
1546 |
+
'label_on' => esc_html__( 'Enable', 'tpebl' ),
|
1547 |
+
'label_off' => esc_html__( 'Disable', 'tpebl' ),
|
1548 |
+
'default' => 'no',
|
1549 |
+
'separator' => 'before',
|
1550 |
+
]
|
1551 |
+
);
|
1552 |
+
$this->add_control(
|
1553 |
+
'tweet_extras_position',
|
1554 |
+
[
|
1555 |
+
'label' => esc_html__( 'Position', 'tpebl' ),
|
1556 |
+
'type' => \Elementor\Controls_Manager::SWITCHER,
|
1557 |
+
'label_on' => esc_html__( 'Absolute', 'tpebl' ),
|
1558 |
+
'label_off' => esc_html__( 'Relative', 'tpebl' ),
|
1559 |
+
'default' => 'no',
|
1560 |
+
'selectors' => [
|
1561 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'position: absolute;',
|
1562 |
+
],
|
1563 |
+
'condition' => [
|
1564 |
+
'tweet_extras_heading' => 'yes',
|
1565 |
+
],
|
1566 |
+
]
|
1567 |
+
);
|
1568 |
+
$this->add_responsive_control(
|
1569 |
+
'tw_left',
|
1570 |
+
[
|
1571 |
+
'type' => Controls_Manager::SLIDER,
|
1572 |
+
'label' => esc_html__('Left', 'tpebl'),
|
1573 |
+
'size_units' => [ 'px' ],
|
1574 |
+
'range' => [
|
1575 |
+
'px' => [
|
1576 |
+
'min' => -700,
|
1577 |
+
'max' => 700,
|
1578 |
+
'step' => 1,
|
1579 |
+
],
|
1580 |
+
],
|
1581 |
+
'render_type' => 'ui',
|
1582 |
+
'selectors' => [
|
1583 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'left:{{SIZE}}{{UNIT}}',
|
1584 |
+
],
|
1585 |
+
'condition' => [
|
1586 |
+
'tweet_extras_heading' => 'yes',
|
1587 |
+
'tweet_extras_position' => 'yes',
|
1588 |
+
],
|
1589 |
+
]
|
1590 |
+
);
|
1591 |
+
$this->add_responsive_control(
|
1592 |
+
'tw_right',
|
1593 |
+
[
|
1594 |
+
'type' => Controls_Manager::SLIDER,
|
1595 |
+
'label' => esc_html__('Top', 'tpebl'),
|
1596 |
+
'size_units' => [ 'px' ],
|
1597 |
+
'range' => [
|
1598 |
+
'px' => [
|
1599 |
+
'min' => -700,
|
1600 |
+
'max' => 700,
|
1601 |
+
'step' => 1,
|
1602 |
+
],
|
1603 |
+
],
|
1604 |
+
'render_type' => 'ui',
|
1605 |
+
'selectors' => [
|
1606 |
+
'{{WRAPPER}} .plus_blockquote .tp-bq-tweet-wrapper .tp-bq-tweet' => 'top:{{SIZE}}{{UNIT}}',
|
1607 |
+
],
|
1608 |
+
'condition' => [
|
1609 |
+
'tweet_extras_heading' => 'yes',
|
1610 |
+
'tweet_extras_position' => 'yes',
|
1611 |
+
],
|
1612 |
+
]
|
1613 |
+
);
|
1614 |
+
$this->end_controls_section();
|
1615 |
+
/*Tweet end*/
|
1616 |
+
|
1617 |
/*Border Layout 1 start*/
|
1618 |
$this->start_controls_section(
|
1619 |
'section_border_l1_styling',
|
2314 |
$quote_icon_pos_align = !empty($settings['quote_icon_pos_align']) ? $settings['quote_icon_pos_align'] : 'qipa_left';
|
2315 |
$quote_icon_pos_align_both = !empty($settings['quote_icon_pos_align_both']) ? $settings['quote_icon_pos_align_both'] : 'qipa_opposite';
|
2316 |
|
2317 |
+
$quote_icon_s=$quote_icon_pos_s=$quote_icon_pos_align_s=$quote_tweet_icons=$quote_tweet_text=$quote_img=$tweetlink=$twt_btn=$udata=$quote_author_desccon='';
|
2318 |
+
|
2319 |
+
/*tweet button*/
|
2320 |
+
$quote_tweet = isset($settings['quote_tweet']) ? $settings['quote_tweet'] : 'no';
|
2321 |
+
if($quote_tweet==='yes'){
|
2322 |
+
if(!empty($settings['quote_tweet_icon_select'])){
|
2323 |
+
ob_start();
|
2324 |
+
\Elementor\Icons_Manager::render_icon( $settings['quote_tweet_icon_select'], [ 'aria-hidden' => 'true' ]);
|
2325 |
+
$quote_tweet_icons = ob_get_contents();
|
2326 |
+
ob_end_clean();
|
2327 |
+
}
|
2328 |
+
|
2329 |
+
$quote_tweet_text = !empty($settings['quote_tweet_text']) ? $settings['quote_tweet_text'] : '';
|
2330 |
+
|
2331 |
+
if(!empty($settings['content_description'])){
|
2332 |
+
$udata .= strip_tags($settings['content_description']);
|
2333 |
+
}
|
2334 |
+
if(!empty($settings['quote_author'])){
|
2335 |
+
$udata .= ' — ' .strip_tags($settings['quote_author']);
|
2336 |
+
}
|
2337 |
+
if(!empty($settings['quote_author_desc'])){
|
2338 |
+
$udata .= ' ( '.strip_tags($settings['quote_author_desc']).' ) ';
|
2339 |
+
}
|
2340 |
+
|
2341 |
+
$quote_tweet_link = isset($settings['quote_tweet_link']) ? $settings['quote_tweet_link'] : 'no';
|
2342 |
+
if($quote_tweet_link==='yes'){
|
2343 |
+
$urldata = "http://";
|
2344 |
+
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'){
|
2345 |
+
$urldata = "https://";
|
2346 |
+
}
|
2347 |
+
$urldata .= $_SERVER['HTTP_HOST'];
|
2348 |
+
$urldata .= $_SERVER['REQUEST_URI'];
|
2349 |
+
$udata .= " ".urlencode($urldata);
|
2350 |
+
}
|
2351 |
+
|
2352 |
+
$twt_btn = '<div class="tp-bq-tweet-wrapper"><a href="https://twitter.com/intent/tweet?text='.esc_attr($udata).'" class="tp-bq-tweet" target="_blank">'.$quote_tweet_icons.esc_html($quote_tweet_text).'</a></div>';
|
2353 |
+
|
2354 |
+
}
|
2355 |
|
2356 |
/*image*/
|
2357 |
if(isset($settings['quote_iamge_switch']) && $settings['quote_iamge_switch']=='yes' && !empty($settings['quote_image']['url'])){
|
2423 |
}
|
2424 |
}
|
2425 |
|
2426 |
+
if(isset($settings['quote_dropcap']) && $settings['quote_dropcap']=='yes' && $quote_style !='style-2'){
|
2427 |
+
$content = wp_kses_post($content_description);
|
2428 |
+
$text_block .= '<span><span class="tp-blockquote-dropcap">'.$content[0].'</span> '.trim($content, $content[0]) .' </span>';
|
2429 |
+
}else{
|
2430 |
+
$text_block .= '<span class="tp-bq-desc">'.wp_kses_post($content_description).'</span>';
|
2431 |
+
}
|
2432 |
|
2433 |
if($quote_style=='style-2' && !empty($quote_author)){
|
2434 |
if(!empty($quote_author_desc)){
|
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,12 @@ We have the most advanced caching architecture, Which will never bloat your site
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
= 5.1.2 =
|
283 |
Added : Blockquote : Author Description option
|
284 |
Added : Blockquote : Quote Icon and position dynamic option
|
4 |
Requires at least: 5.7.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.1.3
|
8 |
License: GPLv3
|
9 |
License URI: https://opensource.org/licenses/GPL-3.0
|
10 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 5.1.3 =
|
283 |
+
Added : Blockquote : Tweet button with Page URL
|
284 |
+
Added : Blockquote : Dropcap(First Character) option
|
285 |
+
Update : Welcome Page Change log Update
|
286 |
+
Fix : Minor fix and Improvement
|
287 |
+
|
288 |
= 5.1.2 =
|
289 |
Added : Blockquote : Author Description option
|
290 |
Added : Blockquote : Quote Icon and position dynamic option
|
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.3
|
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.3' );
|
18 |
define( 'L_THEPLUS_FILE__', __FILE__ );
|
19 |
|
20 |
define( 'L_THEPLUS_PATH', plugin_dir_path( __FILE__ ) );
|