Plugin Directory

Changeset 3016959


Ignore:
Timestamp:
01/03/2024 12:39:45 PM (2 years ago)
Author:
Nikschavan
Message:

Update to version 1.6.23 from GitHub

Location:
header-footer-elementor
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • header-footer-elementor/tags/1.6.23/admin/class-hfe-admin.php

    r3003681 r3016959  
    7373    private function __construct() {
    7474        add_action( 'init', [ $this, 'header_footer_posttype' ] );
    75         add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 50 );
     75        if ( is_admin() && current_user_can( 'manage_options' ) ) {
     76            add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 50 );
     77        }
    7678        add_action( 'add_meta_boxes', [ $this, 'ehf_register_metabox' ] );
    7779        add_action( 'save_post', [ $this, 'ehf_save_meta' ] );
  • header-footer-elementor/tags/1.6.23/header-footer-elementor.php

    r3009803 r3016959  
    88 * Text Domain: header-footer-elementor
    99 * Domain Path: /languages
    10  * Version: 1.6.22
     10 * Version: 1.6.23
    1111 * Elementor tested up to: 3.18
    1212 * Elementor Pro tested up to: 3.18
     
    1515 */
    1616
    17 define( 'HFE_VER', '1.6.22' );
     17define( 'HFE_VER', '1.6.23' );
    1818define( 'HFE_FILE', __FILE__ );
    1919define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
  • header-footer-elementor/tags/1.6.23/inc/class-hfe-settings-page.php

    r3003681 r3016959  
    2525    public function __construct() {
    2626        add_action( 'admin_head', [ $this, 'hfe_global_css' ] );
    27         add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
     27        if ( is_admin() && current_user_can( 'manage_options' ) ) {
     28            add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
     29        }
    2830        add_action( 'admin_init', [ $this, 'hfe_admin_init' ] );
    2931        add_filter( 'views_edit-elementor-hf', [ $this, 'hfe_settings' ], 10, 1 );
  • header-footer-elementor/tags/1.6.23/inc/widgets-manager/widgets/class-cart.php

    r3005113 r3016959  
    631631                            <?php if ( null !== WC()->cart ) { ?>
    632632                                <span class="hfe-cart-count">
    633                                     <?php echo ( WC()->cart->get_cart_contents_count() ); ?>
     633                                    <?php echo esc_html( WC()->cart->get_cart_contents_count() ); ?>
    634634                                </span>
    635635                            <?php } ?>
     
    639639                } else {
    640640                    ?>
    641 
    642641                    <div class="hfe-menu-cart__toggle elementor-button-wrapper">
    643642                        <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button hfe-cart-container">
    644643                            <?php if ( null !== WC()->cart ) { ?>
    645644                                <span class="elementor-button-text hfe-subtotal">
    646                                     <?php echo WC()->cart->get_cart_subtotal(); ?>
     645                                    <?php echo wp_kses_post( WC()->cart->get_cart_subtotal() ); ?>
    647646                                </span>
    648647                            <?php } ?>
  • header-footer-elementor/tags/1.6.23/inc/widgets-manager/widgets/class-navigation-menu.php

    r3004241 r3016959  
    19481948                    </div>
    19491949                </div>
    1950             <div <?php echo wp_kses_post( $this->get_render_attribute_string( 'hfe-flyout' ) ); ?> >
     1950            <div <?php $this->print_render_attribute_string( 'hfe-flyout' ); ?> >
    19511951                <div class="hfe-flyout-overlay elementor-clickable"></div>
    19521952                <div class="hfe-flyout-container">
    19531953                    <div id="hfe-flyout-content-id-<?php echo esc_attr( $this->get_id() ); ?>" class="hfe-side hfe-flyout-<?php echo esc_attr( $settings['flyout_layout'] ); ?> hfe-flyout-open" data-layout="<?php echo wp_kses_post( $settings['flyout_layout'] ); ?>" data-flyout-type="<?php echo wp_kses_post( $settings['flyout_type'] ); ?>">
    19541954                        <div class="hfe-flyout-content push">
    1955                             <nav <?php echo wp_kses_post( $this->get_render_attribute_string( 'hfe-nav-menu' ) ); ?>><?php echo ( $menu_html ); ?></nav>
     1955                            <nav <?php $this->print_render_attribute_string( 'hfe-nav-menu' ); ?>>
     1956                                <?php echo wp_kses_post( $menu_html ); ?>
     1957                            </nav>
    19561958                            <div class="elementor-clickable hfe-flyout-close" tabindex="0">
    19571959                                <?php echo isset( $menu_close_icons[1] ) ? $menu_close_icons[1] : ''; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     
    20172019
    20182020            ?>
    2019             <div <?php echo $this->get_render_attribute_string( 'hfe-main-menu' ); ?>>
     2021            <div <?php $this->print_render_attribute_string( 'hfe-main-menu' ); ?>>
    20202022                <div role="button" class="hfe-nav-menu__toggle elementor-clickable">
    20212023                    <span class="screen-reader-text"><?php esc_html_e( 'Menu', 'header-footer-elementor' ); ?></span>
     
    20272029                    </div>
    20282030                </div>
    2029                 <nav <?php echo $this->get_render_attribute_string( 'hfe-nav-menu' ); ?>><?php echo $menu_html; ?></nav>
     2031                <nav <?php $this->print_render_attribute_string( 'hfe-nav-menu' ); ?>>
     2032                    <?php echo wp_kses_post( $menu_html ); ?>
     2033                </nav>
    20302034            </div>
    20312035            <?php
     
    20332037    }
    20342038}
    2035 
  • header-footer-elementor/tags/1.6.23/inc/widgets-manager/widgets/class-retina.php

    r3009803 r3016959  
    705705
    706706        ?>
    707         <div <?php echo ( $this->get_render_attribute_string( 'wrapper' ) ); ?>>
     707        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    708708            <?php if ( $has_caption ) : ?>
    709709                <figure class="wp-caption">
    710710            <?php endif; ?>
    711711            <?php if ( $link ) : ?>
    712                     <a <?php echo ( $this->get_render_attribute_string( 'link' ) ); ?>>
     712                <a <?php $this->print_render_attribute_string( 'link' ); ?>>
    713713            <?php endif; ?>
    714714            <?php
     
    805805                <?php if ( ! empty( $caption_text ) ) : ?>
    806806                    <div class="hfe-caption-width">
    807                         <figcaption class="widget-image-caption wp-caption-text"><?php echo ( $caption_text ); ?></figcaption>
     807                        <figcaption class="widget-image-caption wp-caption-text"><?php echo esc_html( $caption_text ); ?></figcaption>
    808808                    </div>
    809809                <?php endif; ?>
  • header-footer-elementor/tags/1.6.23/inc/widgets-manager/widgets/class-search-button.php

    r3004048 r3016959  
    983983            <?php if ( 'icon' === $settings['layout'] ) { ?>
    984984            <div class = "hfe-search-icon-toggle">
    985                 <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     985                <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    986986                <i class="fas fa-search" aria-hidden="true"></i>
    987987            </div>
    988988            <?php } else { ?>
    989             <div <?php echo $this->get_render_attribute_string( 'container' ); ?>>
     989            <div <?php $this->print_render_attribute_string( 'container' ); ?>>
    990990                <?php if ( 'text' === $settings['layout'] ) { ?>
    991                     <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     991                    <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    992992                        <button id="clear" type="reset">
    993993                            <i class="fas fa-times clearable__clear" aria-hidden="true"></i>
    994994                        </button>
    995995                <?php } else { ?>
    996                     <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     996                    <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    997997                    <button id="clear-with-button" type="reset">
    998998                        <i class="fas fa-times" aria-hidden="true"></i>
  • header-footer-elementor/tags/1.6.23/inc/widgets-manager/widgets/class-site-logo.php

    r3005113 r3016959  
    747747        }
    748748        ?>
    749         <div <?php echo ( $this->get_render_attribute_string( 'wrapper' ) ); ?>>
     749        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    750750        <?php if ( $has_caption ) : ?>
    751751                <figure class="wp-caption">
     
    757757                    }
    758758                    ?>
    759                 <a data-elementor-open-lightbox="<?php echo esc_attr( $settings['open_lightbox'] ); ?>"  class='<?php echo  esc_attr( $class ); ?>' <?php echo $this->get_render_attribute_string( 'link' ); ?>>
     759                <a data-elementor-open-lightbox="<?php echo esc_attr( $settings['open_lightbox'] ); ?>"  class='<?php echo  esc_attr( $class ); ?>' <?php $this->print_render_attribute_string( 'link' ); ?>>
    760760        <?php endif; ?>
    761761        <?php
  • header-footer-elementor/tags/1.6.23/readme.txt

    r3009803 r3016959  
    66Requires PHP: 5.4
    77Tested up to: 6.4.1
    8 Stable tag: 1.6.22
     8Stable tag: 1.6.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141== Changelog ==
    142142
     143= 1.6.23 =
     144- Fix: This update addressed a security bug. Props to WordPress Plugin Review Team and Plugin Vulnerabilities Team for reporting it to our team. Please make sure you are using the latest version on your website.
     145
    143146= 1.6.22 =
    144147- Fix: Retina Image - Navigating to custom URL by clicking on images.
  • header-footer-elementor/trunk/admin/class-hfe-admin.php

    r3003681 r3016959  
    7373    private function __construct() {
    7474        add_action( 'init', [ $this, 'header_footer_posttype' ] );
    75         add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 50 );
     75        if ( is_admin() && current_user_can( 'manage_options' ) ) {
     76            add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 50 );
     77        }
    7678        add_action( 'add_meta_boxes', [ $this, 'ehf_register_metabox' ] );
    7779        add_action( 'save_post', [ $this, 'ehf_save_meta' ] );
  • header-footer-elementor/trunk/header-footer-elementor.php

    r3009803 r3016959  
    88 * Text Domain: header-footer-elementor
    99 * Domain Path: /languages
    10  * Version: 1.6.22
     10 * Version: 1.6.23
    1111 * Elementor tested up to: 3.18
    1212 * Elementor Pro tested up to: 3.18
     
    1515 */
    1616
    17 define( 'HFE_VER', '1.6.22' );
     17define( 'HFE_VER', '1.6.23' );
    1818define( 'HFE_FILE', __FILE__ );
    1919define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
  • header-footer-elementor/trunk/inc/class-hfe-settings-page.php

    r3003681 r3016959  
    2525    public function __construct() {
    2626        add_action( 'admin_head', [ $this, 'hfe_global_css' ] );
    27         add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
     27        if ( is_admin() && current_user_can( 'manage_options' ) ) {
     28            add_action( 'admin_menu', [ $this, 'hfe_register_settings_page' ] );
     29        }
    2830        add_action( 'admin_init', [ $this, 'hfe_admin_init' ] );
    2931        add_filter( 'views_edit-elementor-hf', [ $this, 'hfe_settings' ], 10, 1 );
  • header-footer-elementor/trunk/inc/widgets-manager/widgets/class-cart.php

    r3005113 r3016959  
    631631                            <?php if ( null !== WC()->cart ) { ?>
    632632                                <span class="hfe-cart-count">
    633                                     <?php echo ( WC()->cart->get_cart_contents_count() ); ?>
     633                                    <?php echo esc_html( WC()->cart->get_cart_contents_count() ); ?>
    634634                                </span>
    635635                            <?php } ?>
     
    639639                } else {
    640640                    ?>
    641 
    642641                    <div class="hfe-menu-cart__toggle elementor-button-wrapper">
    643642                        <a id="hfe-menu-cart__toggle_button" href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="elementor-button hfe-cart-container">
    644643                            <?php if ( null !== WC()->cart ) { ?>
    645644                                <span class="elementor-button-text hfe-subtotal">
    646                                     <?php echo WC()->cart->get_cart_subtotal(); ?>
     645                                    <?php echo wp_kses_post( WC()->cart->get_cart_subtotal() ); ?>
    647646                                </span>
    648647                            <?php } ?>
  • header-footer-elementor/trunk/inc/widgets-manager/widgets/class-navigation-menu.php

    r3004241 r3016959  
    19481948                    </div>
    19491949                </div>
    1950             <div <?php echo wp_kses_post( $this->get_render_attribute_string( 'hfe-flyout' ) ); ?> >
     1950            <div <?php $this->print_render_attribute_string( 'hfe-flyout' ); ?> >
    19511951                <div class="hfe-flyout-overlay elementor-clickable"></div>
    19521952                <div class="hfe-flyout-container">
    19531953                    <div id="hfe-flyout-content-id-<?php echo esc_attr( $this->get_id() ); ?>" class="hfe-side hfe-flyout-<?php echo esc_attr( $settings['flyout_layout'] ); ?> hfe-flyout-open" data-layout="<?php echo wp_kses_post( $settings['flyout_layout'] ); ?>" data-flyout-type="<?php echo wp_kses_post( $settings['flyout_type'] ); ?>">
    19541954                        <div class="hfe-flyout-content push">
    1955                             <nav <?php echo wp_kses_post( $this->get_render_attribute_string( 'hfe-nav-menu' ) ); ?>><?php echo ( $menu_html ); ?></nav>
     1955                            <nav <?php $this->print_render_attribute_string( 'hfe-nav-menu' ); ?>>
     1956                                <?php echo wp_kses_post( $menu_html ); ?>
     1957                            </nav>
    19561958                            <div class="elementor-clickable hfe-flyout-close" tabindex="0">
    19571959                                <?php echo isset( $menu_close_icons[1] ) ? $menu_close_icons[1] : ''; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     
    20172019
    20182020            ?>
    2019             <div <?php echo $this->get_render_attribute_string( 'hfe-main-menu' ); ?>>
     2021            <div <?php $this->print_render_attribute_string( 'hfe-main-menu' ); ?>>
    20202022                <div role="button" class="hfe-nav-menu__toggle elementor-clickable">
    20212023                    <span class="screen-reader-text"><?php esc_html_e( 'Menu', 'header-footer-elementor' ); ?></span>
     
    20272029                    </div>
    20282030                </div>
    2029                 <nav <?php echo $this->get_render_attribute_string( 'hfe-nav-menu' ); ?>><?php echo $menu_html; ?></nav>
     2031                <nav <?php $this->print_render_attribute_string( 'hfe-nav-menu' ); ?>>
     2032                    <?php echo wp_kses_post( $menu_html ); ?>
     2033                </nav>
    20302034            </div>
    20312035            <?php
     
    20332037    }
    20342038}
    2035 
  • header-footer-elementor/trunk/inc/widgets-manager/widgets/class-retina.php

    r3009803 r3016959  
    705705
    706706        ?>
    707         <div <?php echo ( $this->get_render_attribute_string( 'wrapper' ) ); ?>>
     707        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    708708            <?php if ( $has_caption ) : ?>
    709709                <figure class="wp-caption">
    710710            <?php endif; ?>
    711711            <?php if ( $link ) : ?>
    712                     <a <?php echo ( $this->get_render_attribute_string( 'link' ) ); ?>>
     712                <a <?php $this->print_render_attribute_string( 'link' ); ?>>
    713713            <?php endif; ?>
    714714            <?php
     
    805805                <?php if ( ! empty( $caption_text ) ) : ?>
    806806                    <div class="hfe-caption-width">
    807                         <figcaption class="widget-image-caption wp-caption-text"><?php echo ( $caption_text ); ?></figcaption>
     807                        <figcaption class="widget-image-caption wp-caption-text"><?php echo esc_html( $caption_text ); ?></figcaption>
    808808                    </div>
    809809                <?php endif; ?>
  • header-footer-elementor/trunk/inc/widgets-manager/widgets/class-search-button.php

    r3004048 r3016959  
    983983            <?php if ( 'icon' === $settings['layout'] ) { ?>
    984984            <div class = "hfe-search-icon-toggle">
    985                 <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     985                <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    986986                <i class="fas fa-search" aria-hidden="true"></i>
    987987            </div>
    988988            <?php } else { ?>
    989             <div <?php echo $this->get_render_attribute_string( 'container' ); ?>>
     989            <div <?php $this->print_render_attribute_string( 'container' ); ?>>
    990990                <?php if ( 'text' === $settings['layout'] ) { ?>
    991                     <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     991                    <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    992992                        <button id="clear" type="reset">
    993993                            <i class="fas fa-times clearable__clear" aria-hidden="true"></i>
    994994                        </button>
    995995                <?php } else { ?>
    996                     <input <?php echo $this->get_render_attribute_string( 'input' ); ?>>
     996                    <input <?php $this->print_render_attribute_string( 'input' ); ?>>
    997997                    <button id="clear-with-button" type="reset">
    998998                        <i class="fas fa-times" aria-hidden="true"></i>
  • header-footer-elementor/trunk/inc/widgets-manager/widgets/class-site-logo.php

    r3005113 r3016959  
    747747        }
    748748        ?>
    749         <div <?php echo ( $this->get_render_attribute_string( 'wrapper' ) ); ?>>
     749        <div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
    750750        <?php if ( $has_caption ) : ?>
    751751                <figure class="wp-caption">
     
    757757                    }
    758758                    ?>
    759                 <a data-elementor-open-lightbox="<?php echo esc_attr( $settings['open_lightbox'] ); ?>"  class='<?php echo  esc_attr( $class ); ?>' <?php echo $this->get_render_attribute_string( 'link' ); ?>>
     759                <a data-elementor-open-lightbox="<?php echo esc_attr( $settings['open_lightbox'] ); ?>"  class='<?php echo  esc_attr( $class ); ?>' <?php $this->print_render_attribute_string( 'link' ); ?>>
    760760        <?php endif; ?>
    761761        <?php
  • header-footer-elementor/trunk/readme.txt

    r3009803 r3016959  
    66Requires PHP: 5.4
    77Tested up to: 6.4.1
    8 Stable tag: 1.6.22
     8Stable tag: 1.6.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141== Changelog ==
    142142
     143= 1.6.23 =
     144- Fix: This update addressed a security bug. Props to WordPress Plugin Review Team and Plugin Vulnerabilities Team for reporting it to our team. Please make sure you are using the latest version on your website.
     145
    143146= 1.6.22 =
    144147- Fix: Retina Image - Navigating to custom URL by clicking on images.
Note: See TracChangeset for help on using the changeset viewer.