Skip to content

Commit

Permalink
Merge branch 'release-candidate' into polylang-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetaR committed Jan 26, 2024

Unverified

This user has not yet uploaded their public signing key.
2 parents 025ddf0 + a0211d0 commit fa2f398
Showing 5 changed files with 43 additions and 15 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -141,7 +141,9 @@ This same applies when you are creating your Header/Footer using this plugin.
## Changelog ##

### 1.6.24 ###
Fix: Navigation Menu - Language switcher flags not displaying when using Polylang plugin.
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.19 version.
- Fix: White Label - Astra's theme name does not change when Astra is white-labeled.
- Fix: Navigation Menu - Language switcher flags not displaying when using Polylang plugin.

### 1.6.23 ###
- 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.
8 changes: 4 additions & 4 deletions header-footer-elementor.php
Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@
* Author URI: https://www.brainstormforce.com/
* Text Domain: header-footer-elementor
* Domain Path: /languages
* Version: 1.6.23
* Elementor tested up to: 3.18
* Elementor Pro tested up to: 3.18
* Version: 1.6.24
* Elementor tested up to: 3.19
* Elementor Pro tested up to: 3.19
*
* @package header-footer-elementor
*/

define( 'HFE_VER', '1.6.23' );
define( 'HFE_VER', '1.6.24' );
define( 'HFE_FILE', __FILE__ );
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
36 changes: 30 additions & 6 deletions inc/class-hfe-settings-page.php
Original file line number Diff line number Diff line change
@@ -361,7 +361,7 @@ public function get_guide_html() {
<div class="hfe-admin-about-section hfe-admin-columns hfe-admin-guide-section<?php echo esc_attr( $subscribe_flag ); ?>">

<div class="hfe-admin-column-50">
<div class="hfe-admin-about-section-column">
<div class="hfe-admin-about-section-column">
<h2><?php esc_html_e( 'Create Impressive Header and Footer Designs', 'header-footer-elementor' ); ?></h2>
<p><?php esc_html_e( 'Elementor Header & Footer Builder plugin lets you build impactful navigation for your website very easily. Before we begin, we would like to know more about you. This will help us to serve you better.', 'header-footer-elementor' ); ?></p>
</div>
@@ -508,12 +508,34 @@ public function get_about_html() {
$this->output_about_addons();
}

/**
* Function for Astra Pro white labels with defaults.
*
* @since 1.6.24
* @return array
*/
protected function get_white_label() {
$white_labels = is_callable( 'Astra_Admin_Helper::get_admin_settings_option' ) ? \Astra_Admin_Helper::get_admin_settings_option( '_astra_ext_white_label', true ) : array();

$theme_name = ! empty( $white_labels['astra']['name'] ) ? $white_labels['astra']['name'] : 'Astra';

return array(
'theme_name' => $theme_name,
'description' => ! empty( $white_labels['astra']['description'] ) ? $white_labels['astra']['description'] : esc_html( sprintf( __( 'Powering over 1+ Million websites, %s is loved for the fast performance and ease of use it offers. It is suitable for all kinds of websites like blogs, portfolios, business, and WooCommerce stores.', 'header-footer-elementor' ), esc_html( $theme_name ) ) ),
'theme_icon' => ! empty( $white_labels['astra']['icon'] ) ? $white_labels['astra']['icon'] : '',
'author_url' => ! empty( $white_labels['astra']['author_url'] ) ? $white_labels['astra']['author_url'] : 'https://wpastra.com/',
);
}

/**
* Display the General Info section of About tab.
*
* @since 1.6.0
*/
protected function output_about_info() {

$white_labels = $this->get_white_label();

?>

<div class="hfe-admin-about-section hfe-admin-columns hfe-admin-about-us">
@@ -527,7 +549,7 @@ protected function output_about_info() {

<p><?php esc_html_e( 'Trusted by more than 1+ Million users, Elementor Header & Footer Builder is a modern way to build advanced navigation for your website.', 'header-footer-elementor' ); ?></p>

<p><?php esc_html_e( 'This plugin is brought to you by the same team behind the popular WordPress theme Astra and a series of Ultimate Addons plugins.', 'header-footer-elementor' ); ?></p>
<p><?php printf( esc_html__( 'This plugin is brought to you by the same team behind the popular WordPress theme %s and a series of Ultimate Addons plugins.', 'header-footer-elementor' ), esc_html( $white_labels['theme_name'] ) ); ?>

</div>

@@ -706,18 +728,20 @@ protected function get_plugin_data( $addon, $details, $all_plugins, $all_themes
*/
protected function get_bsf_plugins() {

$white_labels = $this->get_white_label();

$images_url = HFE_URL . 'assets/images/settings/';

return [

'astra' => [
'icon' => $images_url . 'plugin-astra.png',
'icon' => ! empty( $white_labels['theme_icon'] ) ? $white_labels['theme_icon'] : $images_url . 'plugin-astra.png',
'type' => 'theme',
'name' => esc_html__( 'Astra Theme', 'header-footer-elementor' ),
'desc' => esc_html__( 'Powering over 1+ Million websites, Astra is loved for the fast performance and ease of use it offers. It is suitable for all kinds of websites like blogs, portfolios, business, and WooCommerce stores.', 'header-footer-elementor' ),
'name' => $white_labels['theme_name'],
'desc' => $white_labels['description'],
'wporg' => 'https://wordpress.org/themes/astra/',
'url' => 'https://downloads.wordpress.org/theme/astra.zip',
'siteurl' => 'https://wpastra.com/',
'siteurl' => $white_labels['author_url'],
'pro' => false,
'slug' => 'astra',
],
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -140,8 +140,10 @@ This same applies when you are creating your Header/Footer using this plugin.

== Changelog ==

= 1.6.24 =
Fix: Navigation Menu - Language switcher flags not displaying when using Polylang plugin.
### 1.6.24 ###
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.19 version.
- Fix: White Label - Astra's theme name does not change when Astra is white-labeled.
- Fix: Navigation Menu - Language switcher flags not displaying when using Polylang plugin.

= 1.6.23 =
- 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.

0 comments on commit fa2f398

Please sign in to comment.