Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 3184
Browse files Browse the repository at this point in the history
  • Loading branch information
himadree committed Feb 20, 2024
2 parents 104da83 + c6e2af5 commit 78d9625
Show file tree
Hide file tree
Showing 25 changed files with 76 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/assets.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Deploy to WP.org
name: Deploy to WordPress.org
name: Deploy to WordPress.org readme.txt and assets only

on:
push:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/build-archive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Generate WordPress Archive
on:
workflow_dispatch

jobs:
generate-archive:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generating zip
uses: rudlinkon/action-wordpress-build-zip@master
with:
retention-days: 1 # Optional; defaults to 3
npm-run-build: true # Optional; defaults to false
node-version: 14 # Optional; defaults to 16
4 changes: 2 additions & 2 deletions essential_adons_elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
* Plugin URI: https://essential-addons.com/elementor/
* Author: WPDeveloper
* Version: 5.9.9
* Version: 5.9.10
* Author URI: https://wpdeveloper.com/
* Text Domain: essential-addons-for-elementor-lite
* Domain Path: /languages
Expand All @@ -27,7 +27,7 @@
define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
define('EAEL_PLUGIN_VERSION', '5.9.9');
define('EAEL_PLUGIN_VERSION', '5.9.10');
define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
/**
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Adv_Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ protected function render()
echo '<i class="' . esc_attr( $tab['eael_adv_tabs_tab_title_icon'] ) . '"></i>';
} ?>
<?php elseif ($tab['eael_adv_tabs_icon_type'] === 'image') : ?>
<img src="<?php echo esc_attr($tab['eael_adv_tabs_tab_title_image']['url']); ?>" alt="<?php echo esc_attr(get_post_meta($tab['eael_adv_tabs_tab_title_image']['id'], '_wp_attachment_image_alt', true)); ?>">
<img src="<?php echo esc_url( $tab['eael_adv_tabs_tab_title_image']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($tab['eael_adv_tabs_tab_title_image']['id'], '_wp_attachment_image_alt', true)); ?>">
<?php endif; ?>
<?php endif; ?>

Expand Down
4 changes: 2 additions & 2 deletions includes/Elements/Advanced_Data_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1649,11 +1649,11 @@ public function ninja_integration()
}

if ($th['data_type'] == 'image') {
$html .= '<td>' . (isset($tr[$th['key']]['image_thumb']) ? '<a href="' . $tr[$th['key']]['image_full'] . '"><img src="' . $tr[$th['key']]['image_thumb'] . '"></a>' : '') . '</td>';
$html .= '<td>' . (isset($tr[$th['key']]['image_thumb']) ? '<a href="' . esc_url( $tr[$th['key']]['image_full'] ) . '"><img src="' . esc_url( $tr[$th['key']]['image_thumb'] ) . '"></a>' : '') . '</td>';
} elseif ($th['data_type'] == 'selection') {
$html .= '<td>' . (!empty($tr[$th['key']]) ? implode((array) $tr[$th['key']], ', ') : '') . '</td>';
} elseif ($th['data_type'] == 'button') {
$html .= '<td>' . (!empty($tr[$th['key']]) ? '<a href="' . $tr[$th['key']] . '" class="button" target="' . $th['link_target'] . '">' . $th['button_text'] . '</a>' : '') . '</td>';
$html .= '<td>' . (!empty($tr[$th['key']]) ? '<a href="' . esc_url( $tr[$th['key']] ) . '" class="button" target="' . esc_attr( $th['link_target'] ) . '">' . $th['button_text'] . '</a>' : '') . '</td>';
} else {
$html .= '<td>' . ( isset( $tr[ $th['key'] ] ) ? $tr[ $th['key'] ] : '' ) . '</td>';
}
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Caldera_Forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ protected function render()
<?php }?>
</div>
<?php }?>
<?php echo do_shortcode('[caldera_form id="' . $settings['contact_form_list'] . '" ]'); ?>
<?php echo do_shortcode('[caldera_form id="' . esc_attr( $settings['contact_form_list'] ) . '" ]'); ?>
</div>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Contact_Form_7.php
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ protected function render()
}
echo '</div>';
}
echo do_shortcode('[contact-form-7 id="' . $settings['contact_form_list'] . '" ]');
echo do_shortcode('[contact-form-7 id="' . esc_attr( $settings['contact_form_list'] ) . '" ]');
echo '</div>
</div>';
}
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Cta_Box.php
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ protected function render()
<div class="icon">
<?php if ($icon_is_new || $icon_migrated) {?>
<?php if (isset($settings['eael_cta_flex_grid_icon_new']['value']['url'])): ?>
<img src="<?php echo esc_attr($settings['eael_cta_flex_grid_icon_new']['value']['url']); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_cta_flex_grid_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img src="<?php echo esc_url( $settings['eael_cta_flex_grid_icon_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_cta_flex_grid_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php else:
Icons_Manager::render_icon( $settings['eael_cta_flex_grid_icon_new'] );

Expand Down
8 changes: 4 additions & 4 deletions includes/Elements/Data_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1380,12 +1380,12 @@ protected function render( ) {
<?php if( $header_title['eael_data_table_header_col_icon_enabled'] == 'true' && $header_title['eael_data_table_header_icon_type'] == 'icon' ) : ?>
<?php if (empty($header_title['eael_data_table_header_col_icon']) || isset($header_title['__fa4_migrated']['eael_data_table_header_col_icon_new'])) { ?>
<?php if( isset($header_title['eael_data_table_header_col_icon_new']['value']['url']) ) : ?>
<img class="data-header-icon data-table-header-svg-icon" src="<?php echo $header_title['eael_data_table_header_col_icon_new']['value']['url'] ?>" alt="<?php echo esc_attr(get_post_meta($header_title['eael_data_table_header_col_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img class="data-header-icon data-table-header-svg-icon" src="<?php echo esc_url( $header_title['eael_data_table_header_col_icon_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($header_title['eael_data_table_header_col_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php else : ?>
<i class="<?php echo $header_title['eael_data_table_header_col_icon_new']['value'] ?> data-header-icon"></i>
<i class="<?php echo esc_attr( $header_title['eael_data_table_header_col_icon_new']['value'] ); ?> data-header-icon"></i>
<?php endif; ?>
<?php } else { ?>
<i class="<?php echo $header_title['eael_data_table_header_col_icon'] ?> data-header-icon"></i>
<i class="<?php echo esc_attr( $header_title['eael_data_table_header_col_icon'] ); ?> data-header-icon"></i>
<?php } ?>
<?php endif; ?>
<?php
Expand Down Expand Up @@ -1425,7 +1425,7 @@ protected function render( ) {
</div>
<?php } else { ?>
<div class="td-content">
<span class="<?php echo $table_td[ $j ]['icon_content'] ?>" aria-hidden="true"></span>
<span class="<?php echo esc_attr( $table_td[ $j ]['icon_content'] ); ?>" aria-hidden="true"></span>
</div>
<?php } ?>
</div>
Expand Down
14 changes: 7 additions & 7 deletions includes/Elements/Event_Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3029,18 +3029,18 @@ protected function render() {

echo '<div id="eael-event-calendar-' . $this->get_id() . '" class="eael-event-calendar-cls"
data-cal_id = "' . $this->get_id() . '"
data-locale = "' . $local . '"
data-locale = "' . esc_attr( $local ) . '"
data-translate = "' . htmlspecialchars( json_encode( $translate_date ), ENT_QUOTES, 'UTF-8' ) . '"
data-defaultview = "' . $default_view . '"
data-defaultdate = "' . $default_date . '"
data-time_format = "' . $time_format . '"
data-defaultview = "' . esc_attr( $default_view ) . '"
data-defaultdate = "' . esc_attr( $default_date ) . '"
data-time_format = "' . esc_attr( $time_format ) . '"
data-event_limit = "' . $event_limit . '"
data-popup_date_formate = "' . esc_attr( $settings['eael_event_popup_date_formate'] ) . '"
data-multidays_event_day_count= "' . $multi_days_event_day_count . '"
data-hideDetailsLink= "' . $settings['eael_event_details_link_hide'] . '"
data-hideDetailsLink= "' . esc_attr( $settings['eael_event_details_link_hide'] ) . '"
data-detailsButtonText = "' . Helper::eael_wp_kses( $settings['eael_event_details_text'] ) . '"
data-events="' . htmlspecialchars( json_encode( $data ), ENT_QUOTES, 'UTF-8' ) . '"
data-first_day="' . $settings['eael_event_calendar_first_day'] . '"></div>
data-first_day="' . esc_attr( $settings['eael_event_calendar_first_day'] ) . '"></div>
' . $this->eaelec_load_event_details();
} else {
$this->eaelec_display_table( $data, $settings );
Expand All @@ -3060,7 +3060,7 @@ public function eaelec_display_table($data, $settings){
$item_per_page = $is_paginated && !empty( $settings['eael_ec_item_per_page'] ) ? intval( $settings['eael_ec_item_per_page'] ) : 1;

?>
<table class="eael-event-calendar-table <?php echo $is_paginated ? 'ea-ec-table-paginated' : '' ?> ea-ec-table-sortable" data-items-per-page="<?php esc_attr_e( $item_per_page );?>">
<table class="eael-event-calendar-table <?php echo $is_paginated ? 'ea-ec-table-paginated' : '' ?> ea-ec-table-sortable" data-items-per-page="<?php echo esc_attr( $item_per_page ); ?>">
<thead>
<tr style="display: table-row;">
<?php
Expand Down
4 changes: 2 additions & 2 deletions includes/Elements/Info_Box.php
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ protected function render_infobox_button()
<?php if ('left' == $settings['eael_infobox_button_icon_alignment']): ?>
<?php if ($button_icon_is_new || $button_icon_migrated) {?>
<?php if (isset($settings['eael_infobox_button_icon_new']['value']['url'])) {?>
<img class="eael_infobox_button_icon_left" src="<?php echo esc_attr($settings['eael_infobox_button_icon_new']['value']['url']); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_infobox_button_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img class="eael_infobox_button_icon_left" src="<?php echo esc_url( $settings['eael_infobox_button_icon_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_infobox_button_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php } else {
Icons_Manager::render_icon( $settings['eael_infobox_button_icon_new'], [ 'aria-hidden' => 'true', 'class' => 'eael_infobox_button_icon_left' ] );
}?>
Expand All @@ -1725,7 +1725,7 @@ protected function render_infobox_button()
<?php if ('right' == $settings['eael_infobox_button_icon_alignment']): ?>
<?php if ($button_icon_is_new || $button_icon_migrated) {?>
<?php if (isset($settings['eael_infobox_button_icon_new']['value']['url'])) {?>
<img class="eael_infobox_button_icon_right" src="<?php echo esc_attr($settings['eael_infobox_button_icon_new']['value']['url']); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_infobox_button_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img class="eael_infobox_button_icon_right" src="<?php echo esc_url( $settings['eael_infobox_button_icon_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_infobox_button_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php } else {
Icons_Manager::render_icon( $settings['eael_infobox_button_icon_new'], [ 'aria-hidden' => 'true', 'class' => 'eael_infobox_button_icon_right' ] );
}?>
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Login_Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -6500,7 +6500,7 @@ protected function print_form_header( $form_type = 'login' ) {
<div class="lr-form-header header-<?php echo esc_attr( $this->form_logo_pos ); ?>">
<?php if ( ! empty( $this->form_logo ) ) { ?>
<div class="form-logo <?php echo esc_attr( $show_form_logo_class ); ?>">
<img src="<?php echo esc_attr( esc_url( $this->form_logo ) ); ?>"
<img src="<?php echo esc_url( $this->form_logo ); ?>"
alt="<?php esc_attr_e( 'Form Logo Image', 'essential-addons-for-elementor-lite' ); ?>">
</div>
<?php } ?>
Expand Down
4 changes: 2 additions & 2 deletions includes/Elements/Pricing_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -2124,10 +2124,10 @@ public function render_pricing_list_icon( $settings, $item ){
<?php Icons_Manager::render_icon( $item['eael_pricing_table_list_icon_new'], [ 'aria-hidden' => 'true' ] ); ?>
<!-- <img src="--><?php //echo $item['eael_pricing_table_list_icon_new']['value']['url']; ?><!--" alt="--><?php //echo esc_attr(get_post_meta($item['eael_pricing_table_list_icon_new']['value']['id'], '_wp_attachment_image_alt', true)); ?><!--" />-->
<?php else : ?>
<i class="<?php echo $item['eael_pricing_table_list_icon_new']['value']; ?>"></i>
<i class="<?php echo esc_attr( $item['eael_pricing_table_list_icon_new']['value'] ); ?>"></i>
<?php endif; ?>
<?php } else { ?>
<i class="<?php echo $item['eael_pricing_table_list_icon']; ?>"></i>
<i class="<?php echo esc_attr( $item['eael_pricing_table_list_icon'] ); ?>"></i>
<?php } ?>
</span>

Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Team_Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ protected function render( ) {
<a <?php $this->print_render_attribute_string( 'social_link_' . $index ); ?>>
<?php if ($icon_is_new || $icon_migrated) { ?>
<?php if( isset( $item['social_new']['value']['url'] ) ) : ?>
<img src="<?php echo esc_attr($item['social_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($item['social_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img src="<?php echo esc_url( $item['social_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($item['social_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php else :
\Elementor\Icons_Manager::render_icon( $item['social_new'], [ 'aria-hidden' => 'true' ] );
endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/Tooltip.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ protected function render( ) {
<span class="eael-tooltip-content" tabindex="0" aria-describedby="tooltip-text-<?php echo esc_attr( $this->get_id() ); ?>"><?php if( $settings['eael_tooltip_enable_link'] === 'yes' ) : ?><a <?php $this->print_render_attribute_string( 'eael_tooltip_link' ); ?>><?php endif; ?>
<?php if ($icon_is_new || $icon_migrated) { ?>
<?php if( isset($settings['eael_tooltip_icon_content_new']['value']['url']) ) : ?>
<img class="ea-tooltip-svg-trigger" src="<?php echo esc_attr( $settings['eael_tooltip_icon_content_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_tooltip_icon_content_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<img class="ea-tooltip-svg-trigger" src="<?php echo esc_url( $settings['eael_tooltip_icon_content_new']['value']['url'] ); ?>" alt="<?php echo esc_attr(get_post_meta($settings['eael_tooltip_icon_content_new']['value']['id'], '_wp_attachment_image_alt', true)); ?>" />
<?php else :
Icons_Manager::render_icon( $settings['eael_tooltip_icon_content_new'], [ 'aria-hidden' => 'true' ] );
endif;
Expand Down
2 changes: 1 addition & 1 deletion includes/Elements/WeForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ protected function render()

if (!empty($settings['wpuf_contact_form'])) {
echo '<div class="eael-weform-container">
' . do_shortcode('[weforms id="' . $settings['wpuf_contact_form'] . '" ]') . '
' . do_shortcode('[weforms id="' . esc_attr( $settings['wpuf_contact_form'] ) . '" ]') . '
</div>';
}
}
Expand Down
4 changes: 2 additions & 2 deletions includes/Elements/Woo_Product_Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,7 @@ protected function render() {
$query = new \WP_Query( $args );
$show_secondary_image = isset( $settings['eael_product_gallery_show_secondary_image'] ) && 'yes' === $settings['eael_product_gallery_show_secondary_image'];

echo '<ul class="products eael-post-appender eael-post-appender-' . $this->get_id() . '" data-layout-mode="' . $settings["eael_product_gallery_items_layout"] . '" data-show-secondary-image="' . intval( $show_secondary_image ) . '" >';
echo '<ul class="products eael-post-appender eael-post-appender-' . $this->get_id() . '" data-layout-mode="' . esc_attr( $settings["eael_product_gallery_items_layout"] ) . '" data-show-secondary-image="' . intval( $show_secondary_image ) . '" >';
if ( $query->have_posts() ) {
$found_posts = $query->found_posts;
$max_page = ceil( $found_posts / absint( $args['posts_per_page'] ) );
Expand Down Expand Up @@ -2743,7 +2743,7 @@ public function eael_product_terms_render( $settings, $args ) {
$dir_name = method_exists( $this, 'get_temp_dir_name' ) ? $this->get_temp_dir_name( $this->get_filename_only( $template ) ) : "pro";
$show_cat_thumb = isset( $settings[ 'eael_woo_product_gallery_terms_thumb' ] ) && 'yes' === $settings[ 'eael_woo_product_gallery_terms_thumb' ];

echo '<ul class="eael-cat-tab" data-layout="' . $settings[ "eael_product_gallery_items_layout" ] . '" data-template=' . json_encode( [ 'dir' => $dir_name, 'file_name' =>
echo '<ul class="eael-cat-tab" data-layout="' . esc_attr( $settings[ "eael_product_gallery_items_layout" ] ) . '" data-template=' . json_encode( [ 'dir' => $dir_name, 'file_name' =>
$this->get_filename_only( $template ), 'name' => $this->process_directory_name() ], 1 ) . ' data-nonce="' . wp_create_nonce( 'eael_product_gallery' ) . '" data-page-id="' . $this->page_id . '" data-widget-id="' . $this->get_id() . '" data-widget="' . $this->get_id() . '" data-class="' . get_class( $this ) . '" data-args="' . http_build_query( $args ) . '" data-page="1">';

if ( $settings[ 'eael_woo_product_gallery_terms_show_all' ] == 'yes' ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Template/Betterdocs-Category-Box/Layout_2.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$button_link = get_term_link($term->slug, 'doc_category');
}

echo '<a href="' . $button_link . '" class="eael-better-docs-category-box-post layout__2">';
echo '<a href="' . esc_url( $button_link ) . '" class="eael-better-docs-category-box-post layout__2">';
echo '<div class="eael-bd-cb-inner">';

if ($settings['show_icon']) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$button_link = get_term_link($term->slug, 'doc_category');
}

echo '<a href="' . $button_link . '" class="eael-better-docs-category-box-post">
echo '<a href="' . esc_url( $button_link ) . '" class="eael-better-docs-category-box-post">
<div class="eael-bd-cb-inner">';

if ($settings['show_icon']) {
Expand Down
Loading

0 comments on commit 78d9625

Please sign in to comment.