Premium Addons for Elementor - Version 2.7.9

Version Description

  • Tweak: Images Alt attribute enhanced in all widgets.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.7.9
Comparing to
See all releases

Code changes from version 2.7.8 to 2.7.9

admin/assets/admin.js CHANGED
@@ -1,4 +1,3 @@
1
- //Go Between the Tabs
2
( function ( $ ){
3
var redirectionLink = " https://premiumaddons.com/pro/?utm_source=wp-menu&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=";
4
"use strict";
1
( function ( $ ){
2
var redirectionLink = " https://premiumaddons.com/pro/?utm_source=wp-menu&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=";
3
"use strict";
admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.7.7</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.7.8</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
premium-addons-for-elementor.php CHANGED
@@ -1,9 +1,9 @@
1
<?php
2
/*
3
Plugin Name: Premium Addons for Elementor
4
- Description: Premium Addons Plugin Includes 20+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 2.7.8
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if (! function_exists('add_action')) {
22
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
25
- define('PREMIUM_ADDONS_VERSION', '2.7.8');
26
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
define('PREMIUM_ADDONS_FILE', __FILE__);
29
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define('PREMIUM_ADDONS_STABLE_VERSION', '2.7.7');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
1
<?php
2
/*
3
Plugin Name: Premium Addons for Elementor
4
+ Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 2.7.9
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
22
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
25
+ define('PREMIUM_ADDONS_VERSION', '2.7.9');
26
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
define('PREMIUM_ADDONS_FILE', __FILE__);
29
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define('PREMIUM_ADDONS_STABLE_VERSION', '2.7.8');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
Tested up to: 4.9.8
7
Requires PHP: 5.4
8
- Stable tag: 2.7.8
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -137,6 +137,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
138
== Changelog ==
139
140
= 2.7.8 =
141
142
- Tweak: Added Section IDs option beside Elementor Templates to Premium Vertical Scroll widget.
5
Requires at least: 4.5
6
Tested up to: 4.9.8
7
Requires PHP: 5.4
8
+ Stable tag: 2.7.9
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
137
138
== Changelog ==
139
140
+ = 2.7.9 =
141
+
142
+ - Tweak: Images `Alt` attribute enhanced in all widgets.
143
+
144
= 2.7.8 =
145
146
- Tweak: Added Section IDs option beside Elementor Templates to Premium Vertical Scroll widget.
widgets/premium-banner.php CHANGED
@@ -773,6 +773,9 @@ class Premium_Banner extends Widget_Base {
773
774
775
$banner_url = 'url' == $settings['premium_banner_link_selection'] ? $settings['premium_banner_link']['url'] : get_permalink($settings['premium_banner_existing_link']);
776
777
ob_start();
778
?>
@@ -782,7 +785,7 @@ class Premium_Banner extends Widget_Base {
782
<?php if($settings['premium_banner_height'] == 'custom' ): ?>
783
<div class="premium_addons-banner-img-wrap">
784
<?php endif; ?>
785
- <img class="premium_addons-banner-ib-img" alt="null" src="<?php echo $settings['premium_banner_image']['url']; ?>">
786
<?php if($settings['premium_banner_height'] == 'custom' ): ?>
787
</div>
788
<?php endif; ?>
773
774
775
$banner_url = 'url' == $settings['premium_banner_link_selection'] ? $settings['premium_banner_link']['url'] : get_permalink($settings['premium_banner_existing_link']);
776
+
777
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_banner_image'] ) );
778
+
779
780
ob_start();
781
?>
785
<?php if($settings['premium_banner_height'] == 'custom' ): ?>
786
<div class="premium_addons-banner-img-wrap">
787
<?php endif; ?>
788
+ <img class="premium_addons-banner-ib-img" alt="<?php echo $alt; ?>" src="<?php echo $settings['premium_banner_image']['url']; ?>">
789
<?php if($settings['premium_banner_height'] == 'custom' ): ?>
790
</div>
791
<?php endif; ?>
widgets/premium-counter.php CHANGED
@@ -494,7 +494,8 @@ class Premium_Counter extends Widget_Base {
494
if( $settings['premium_counter_icon_image'] == 'icon' ) {
495
$icon_image = '<i class="' . $settings['premium_counter_icon'] .'"></i>';
496
} else {
497
- $icon_image = '<img class="custom-image" src="'.$settings['premium_counter_image_upload']['url'] . '" alt="">';
498
}
499
500
$icon_style = $settings['premium_counter_icon_style'] != 'simple' ? ' icon-bg ' . $settings['premium_counter_icon_style'] : '';
494
if( $settings['premium_counter_icon_image'] == 'icon' ) {
495
$icon_image = '<i class="' . $settings['premium_counter_icon'] .'"></i>';
496
} else {
497
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_counter_image_upload'] ) );
498
+ $icon_image = '<img class="custom-image" src="'.$settings['premium_counter_image_upload']['url'] . '" alt="' . $alt . '">';
499
}
500
501
$icon_style = $settings['premium_counter_icon_style'] != 'simple' ? ' icon-bg ' . $settings['premium_counter_icon_style'] : '';
widgets/premium-grid.php CHANGED
@@ -144,14 +144,6 @@ class Premium_Grid extends Widget_Base {
144
'label_block' => true,
145
]);
146
147
- $img_repeater->add_control('premium_gallery_img_alt',
148
- [
149
- 'label' => esc_html__( 'Alt', 'premium-addons-for-elementor' ),
150
- 'type' => Controls_Manager::TEXT,
151
- 'dynamic' => [ 'active' => true ],
152
- 'label_block' => true,
153
- ]);
154
-
155
$img_repeater->add_control('premium_gallery_img_desc',
156
[
157
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
@@ -217,13 +209,11 @@ class Premium_Grid extends Widget_Base {
217
'default' => [
218
[
219
'premium_gallery_img_name' => 'Image #1',
220
- 'premium_gallery_img_category' => 'Category 1',
221
- 'premium_gallery_img_alt' => 'Premium Grid Image'
222
],
223
[
224
'premium_gallery_img_name' => 'Image #2',
225
- 'premium_gallery_img_category' => 'Category 2',
226
- 'premium_gallery_img_alt' => 'Premium Grid Image'
227
],
228
],
229
'fields' => array_values( $img_repeater->get_controls() ),
@@ -1122,7 +1112,9 @@ class Premium_Grid extends Widget_Base {
1122
</ul>
1123
</div>
1124
<div class="premium-gallery-container js-isotope <?php echo esc_attr($number_columns); ?>" data-settings='<?php echo wp_json_encode($grid_settings); ?>'>
1125
- <?php foreach( $settings['premium_gallery_img_content'] as $image ) : ?>
1126
<div class="premium-gallery-item <?php echo esc_attr( $this->filter_cats( $image['premium_gallery_img_category'] ) ); ?>">
1127
<div class="pa-gallery-img <?php echo esc_attr($layout); ?>" onclick="">
1128
<div class="pa-gallery-img-container <?php echo esc_attr($settings['premium_gallery_img_effect']); ?>">
@@ -1131,9 +1123,9 @@ class Premium_Grid extends Widget_Base {
1131
$image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
1132
if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;
1133
?>
1134
- <img src="<?php echo $image_src_size; ?>" class="pa-gallery-image" alt="<?php echo esc_attr($image['premium_gallery_img_alt']); ?>">
1135
<?php else : ?>
1136
- <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image" alt="<?php echo esc_attr($image['premium_gallery_img_alt']); ?>">
1137
<?php endif; ?>
1138
</div>
1139
<?php if($layout == 'default') : ?>
@@ -1239,9 +1231,9 @@ class Premium_Grid extends Widget_Base {
1239
$image_src = $image['premium_gallery_img'];
1240
$image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
1241
if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;?>
1242
- <img src="<?php echo esc_url($image_src_size); ?>" class="pa-gallery-image" alt="<?php echo esc_attr($image['premium_gallery_img_alt']); ?>">
1243
<?php else : ?>
1244
- <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image" alt="<?php echo esc_attr($image['premium_gallery_img_alt']); ?>">
1245
<?php endif; ?>
1246
</div>
1247
<?php if($layout == 'default') : ?>
144
'label_block' => true,
145
]);
146
147
$img_repeater->add_control('premium_gallery_img_desc',
148
[
149
'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
209
'default' => [
210
[
211
'premium_gallery_img_name' => 'Image #1',
212
+ 'premium_gallery_img_category' => 'Category 1'
213
],
214
[
215
'premium_gallery_img_name' => 'Image #2',
216
+ 'premium_gallery_img_category' => 'Category 2'
217
],
218
],
219
'fields' => array_values( $img_repeater->get_controls() ),
1112
</ul>
1113
</div>
1114
<div class="premium-gallery-container js-isotope <?php echo esc_attr($number_columns); ?>" data-settings='<?php echo wp_json_encode($grid_settings); ?>'>
1115
+ <?php foreach( $settings['premium_gallery_img_content'] as $image ) :
1116
+ $alt = esc_attr( Control_Media::get_image_alt( $image['premium_gallery_img'] ) );
1117
+ ?>
1118
<div class="premium-gallery-item <?php echo esc_attr( $this->filter_cats( $image['premium_gallery_img_category'] ) ); ?>">
1119
<div class="pa-gallery-img <?php echo esc_attr($layout); ?>" onclick="">
1120
<div class="pa-gallery-img-container <?php echo esc_attr($settings['premium_gallery_img_effect']); ?>">
1123
$image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
1124
if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;
1125
?>
1126
+ <img src="<?php echo $image_src_size; ?>" class="pa-gallery-image" alt="<?php echo $alt; ?>">
1127
<?php else : ?>
1128
+ <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image" alt="<?php echo $alt; ?>">
1129
<?php endif; ?>
1130
</div>
1131
<?php if($layout == 'default') : ?>
1231
$image_src = $image['premium_gallery_img'];
1232
$image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
1233
if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;?>
1234
+ <img src="<?php echo esc_url($image_src_size); ?>" class="pa-gallery-image" alt="<?php echo $alt; ?>">
1235
<?php else : ?>
1236
+ <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image" alt="<?php echo $alt; ?>">
1237
<?php endif; ?>
1238
</div>
1239
<?php if($layout == 'default') : ?>
widgets/premium-image-separator.php CHANGED
@@ -211,11 +211,13 @@ class Premium_Image_Separator extends Widget_Base {
211
$link_type = $settings['premium_image_separator_link_type'];
212
213
$link_url = ( 'url' == $link_type ) ? $settings['premium_image_separator_image_link'] : get_permalink( $settings['premium_image_separator_existing_page'] );
214
?>
215
216
<div class="premium-image-separator-container">
217
218
- <img alt="image separator" class="img-responsive" src="<?php echo $settings['premium_image_separator_image']['url']; ?>">
219
<?php if ( $settings['premium_image_separator_link_switcher'] == 'yes' ) : ?>
220
<a class="premium-image-separator-link" href="<?php echo $link_url; ?>" target="_<?php echo $settings['premium_image_separator_link_target']; ?>" title="<?php echo $settings['premium_image_separator_image_link_text']; ?>">
221
</a>
211
$link_type = $settings['premium_image_separator_link_type'];
212
213
$link_url = ( 'url' == $link_type ) ? $settings['premium_image_separator_image_link'] : get_permalink( $settings['premium_image_separator_existing_page'] );
214
+
215
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_image_separator_image'] ) );
216
?>
217
218
<div class="premium-image-separator-container">
219
220
+ <img class="img-responsive" src="<?php echo $settings['premium_image_separator_image']['url']; ?>" alt="<?php echo $alt; ?>">
221
<?php if ( $settings['premium_image_separator_link_switcher'] == 'yes' ) : ?>
222
<a class="premium-image-separator-link" href="<?php echo $link_url; ?>" target="_<?php echo $settings['premium_image_separator_link_target']; ?>" title="<?php echo $settings['premium_image_separator_image_link_text']; ?>">
223
</a>
widgets/premium-person.php CHANGED
@@ -530,34 +530,36 @@ class Premium_Person extends Widget_Base {
530
$title_heading = $settings['premium_person_title_heading'];
531
532
$image_effect = $settings['premium_person_hover_image_effect'];
533
- ?>
534
535
- <div class="premium-person-container <?php echo 'premium-person-' . $image_effect . '-effect' ?>">
536
- <div class="premium-person-image-container">
537
- <img src="<?php echo $settings['premium_person_image']['url']; ?>" alt="<?php echo $settings['premium_person_name']; ?>">
538
- </div>
539
- <div class="premium-person-info">
540
- <div class="premium-person-info-container">
541
- <?php if( !empty( $settings['premium_person_name'] ) ) : ?><<?php echo $name_heading; ?> class="premium-person-name"><span <?php echo $this->get_render_attribute_string('premium_person_name'); ?>><?php echo $settings['premium_person_name']; ?></span></<?php echo $name_heading; ?>><?php endif; ?>
542
- <?php if( !empty( $settings['premium_person_title'] ) ) : ?><<?php echo $title_heading; ?> class="premium-person-title"><span <?php echo $this->get_render_attribute_string('premium_person_title'); ?>><?php echo $settings['premium_person_title']; ?></span></<?php echo $title_heading; ?>><?php endif; ?>
543
- <div class="premium-person-content">
544
- <div <?php echo $this->get_render_attribute_string('premium_person_content'); ?>>
545
- <?php echo $settings['premium_person_content']; ?>
546
</div>
547
</div>
548
- <ul class="premium-person-social-list">
549
- <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a></li><?php endif; ?>
550
- <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fa fa-twitter"></i></a></li><?php endif; ?>
551
- <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li><?php endif; ?>
552
- <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fa fa-google-plus"></i></a></li><?php endif; ?>
553
- <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fa fa-pinterest"></i></a></li><?php endif; ?>
554
- <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fa fa-dribbble"></i></a></li><?php endif; ?>
555
- <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fa fa-behance"></i></a></li><?php endif; ?>
556
- <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="fa fa-envelope"></i></a></li><?php endif; ?>
557
- </ul>
558
</div>
559
</div>
560
- </div>
561
<?php
562
}
563
530
$title_heading = $settings['premium_person_title_heading'];
531
532
$image_effect = $settings['premium_person_hover_image_effect'];
533
+
534
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_person_image'] ) );
535
+ ?>
536
537
+ <div class="premium-person-container <?php echo 'premium-person-' . $image_effect . '-effect' ?>">
538
+ <div class="premium-person-image-container">
539
+ <img src="<?php echo $settings['premium_person_image']['url']; ?>" alt="<?php echo $alt; ?>">
540
+ </div>
541
+ <div class="premium-person-info">
542
+ <div class="premium-person-info-container">
543
+ <?php if( !empty( $settings['premium_person_name'] ) ) : ?><<?php echo $name_heading; ?> class="premium-person-name"><span <?php echo $this->get_render_attribute_string('premium_person_name'); ?>><?php echo $settings['premium_person_name']; ?></span></<?php echo $name_heading; ?>><?php endif; ?>
544
+ <?php if( !empty( $settings['premium_person_title'] ) ) : ?><<?php echo $title_heading; ?> class="premium-person-title"><span <?php echo $this->get_render_attribute_string('premium_person_title'); ?>><?php echo $settings['premium_person_title']; ?></span></<?php echo $title_heading; ?>><?php endif; ?>
545
+ <div class="premium-person-content">
546
+ <div <?php echo $this->get_render_attribute_string('premium_person_content'); ?>>
547
+ <?php echo $settings['premium_person_content']; ?>
548
+ </div>
549
</div>
550
+ <ul class="premium-person-social-list">
551
+ <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a></li><?php endif; ?>
552
+ <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fa fa-twitter"></i></a></li><?php endif; ?>
553
+ <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li><?php endif; ?>
554
+ <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fa fa-google-plus"></i></a></li><?php endif; ?>
555
+ <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fa fa-pinterest"></i></a></li><?php endif; ?>
556
+ <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fa fa-dribbble"></i></a></li><?php endif; ?>
557
+ <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fa fa-behance"></i></a></li><?php endif; ?>
558
+ <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="fa fa-envelope"></i></a></li><?php endif; ?>
559
+ </ul>
560
</div>
561
</div>
562
</div>
563
<?php
564
}
565
widgets/premium-testimonials.php CHANGED
@@ -500,6 +500,7 @@ class Premium_Testimonials extends Widget_Base {
500
$image_src = '';
501
if(!empty($settings['premium_testimonial_person_image']['url'])) {
502
$image_src = $settings['premium_testimonial_person_image']['url'];
503
}
504
505
?>
@@ -514,7 +515,7 @@ class Premium_Testimonials extends Widget_Base {
514
elseif ( $settings['premium_testimonial_person_image_shape'] === 'square' ) : echo "0;";
515
elseif ( $settings['premium_testimonial_person_image_shape'] === 'rounded' ) : echo "15px;";
516
endif;?>">
517
- <img src="<?php echo $image_src; ?>" alt="premium-image" class="premium-testimonial-person-image"
518
style="border-radius: <?php
519
if ( $settings['premium_testimonial_person_image_shape'] === 'circle' ) : echo "50%;";
520
elseif ( $settings['premium_testimonial_person_image_shape'] === 'square' ) : echo "0;";
500
$image_src = '';
501
if(!empty($settings['premium_testimonial_person_image']['url'])) {
502
$image_src = $settings['premium_testimonial_person_image']['url'];
503
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_testimonial_person_image'] ) );
504
}
505
506
?>
515
elseif ( $settings['premium_testimonial_person_image_shape'] === 'square' ) : echo "0;";
516
elseif ( $settings['premium_testimonial_person_image_shape'] === 'rounded' ) : echo "15px;";
517
endif;?>">
518
+ <img src="<?php echo $image_src; ?>" alt="<?php echo $alt; ?>" class="premium-testimonial-person-image"
519
style="border-radius: <?php
520
if ( $settings['premium_testimonial_person_image_shape'] === 'circle' ) : echo "50%;";
521
elseif ( $settings['premium_testimonial_person_image_shape'] === 'square' ) : echo "0;";
widgets/premium-videobox.php CHANGED
@@ -539,11 +539,13 @@ class Premium_Videobox extends Widget_Base {
539
$options .= '&mute=';
540
$options .= 'yes' == $settings['premium_video_box_mute'] ? '1' : '0';
541
542
?>
543
544
<div class="premium-video-box-container" id="premium-video-box-container-<?php echo esc_attr( $this->get_id() ); ?>">
545
<div class="premium-video-box-image-container">
546
- <img class="premium-video-box-image" src="<?php echo $settings['premium_video_box_image']['url']; ?>">
547
</div>
548
<div class="premium-video-box-play-icon-container">
549
<?php if($settings['premium_video_box_play_icon_switcher'] == 'yes') : ?>
539
$options .= '&mute=';
540
$options .= 'yes' == $settings['premium_video_box_mute'] ? '1' : '0';
541
542
+ $alt = esc_attr( Control_Media::get_image_alt( $settings['premium_video_box_image'] ) );
543
+
544
?>
545
546
<div class="premium-video-box-container" id="premium-video-box-container-<?php echo esc_attr( $this->get_id() ); ?>">
547
<div class="premium-video-box-image-container">
548
+ <img class="premium-video-box-image" src="<?php echo $settings['premium_video_box_image']['url']; ?>" alt="<?php echo $alt; ?>">
549
</div>
550
<div class="premium-video-box-play-icon-container">
551
<?php if($settings['premium_video_box_play_icon_switcher'] == 'yes') : ?>