Skip to content

Commit

Permalink
Merge pull request #876 from brainstormforce/release-candidate
Browse files Browse the repository at this point in the history
Build version 1.6.41
  • Loading branch information
sushmak02 authored Sep 2, 2024
2 parents ab1a7f1 + 8d3f30b commit 0ed75dc
Show file tree
Hide file tree
Showing 16 changed files with 529 additions and 415 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Requires at least:** 4.4
**Requires PHP:** 7.4
**Tested up to:** 6.6
**Stable tag:** 1.6.40
**Stable tag:** 1.6.41
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -140,6 +140,11 @@ This same applies when you are creating your Header/Footer using this plugin.

## Changelog ##

### 1.6.41 ###
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.24 version.
- Improvement: Implemented widget output caching to enhance page performance.
- Improvement: Updated the deprecated code in codebase.

### 1.6.40 ###
- Improvement: Navigation Menu - The dropdown menu now extends to full width when the navigation menu container is set to full width on smaller screens.
- Fix: Navigation Menu – Console error for undefined property ‘left’.
Expand Down
8 changes: 4 additions & 4 deletions header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* Author URI: https://www.brainstormforce.com/
* Text Domain: header-footer-elementor
* Domain Path: /languages
* Version: 1.6.40
* Elementor tested up to: 3.23
* Elementor Pro tested up to: 3.23
* Version: 1.6.41
* Elementor tested up to: 3.24
* Elementor Pro tested up to: 3.24
*
* @package header-footer-elementor
*/

define( 'HFE_VER', '1.6.40' );
define( 'HFE_VER', '1.6.41' );
define( 'HFE_FILE', __FILE__ );
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
Expand Down
4 changes: 2 additions & 2 deletions inc/widgets-manager/class-widgets-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Elementor\Plugin;
use Elementor\Utils;
use Elementor\Core\Files\Assets\Files_Upload_Handler;
use Elementor\Core\Files\File_Types\Svg;

defined( 'ABSPATH' ) || exit;

Expand Down Expand Up @@ -196,7 +196,7 @@ public function sanitize_uploaded_svg( $file ) {
*/
$svg_handler = Plugin::instance()->assets_manager->get_asset( 'svg-handler' );

if ( Files_Upload_Handler::file_sanitizer_can_run() && ! $svg_handler->sanitize_svg( $file['tmp_name'] ) ) {
if ( Svg::file_sanitizer_can_run() && ! $svg_handler->sanitize_svg( $file['tmp_name'] ) ) {

$file['error'] = esc_html__( 'Invalid SVG Format, file not uploaded for security reasons!', 'header-footer-elementor' );
}
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-copyright.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register Copyright controls.
*
Expand Down
15 changes: 14 additions & 1 deletion inc/widgets-manager/widgets/class-navigation-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,20 @@ public function get_icon() {
public function get_categories() {
return [ 'hfe-widgets' ];
}


/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Retrieve the list of scripts the navigation menu depended on.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-page-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register Page Title controls.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-retina.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register Retina Logo controls.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-search-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Retrieve the list of scripts the navigation menu depended on.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-site-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register Site Logo controls.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-site-tagline.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register site tagline controls.
*
Expand Down
13 changes: 13 additions & 0 deletions inc/widgets-manager/widgets/class-site-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ public function get_categories() {
return [ 'hfe-widgets' ];
}

/**
* Indicates if the widget's content is dynamic.
*
* This method returns true if the widget's output is dynamic and should not be cached,
* or false if the content is static and can be cached.
*
* @since 1.6.41
* @return bool True for dynamic content, false for static content.
*/
protected function is_dynamic_content(): bool { // phpcs:ignore
return false;
}

/**
* Register site title controls.
*
Expand Down
Loading

0 comments on commit 0ed75dc

Please sign in to comment.