Skip to content

Commit

Permalink
Merge pull request #65 from Nikschavan/fix-cache-issues
Browse files Browse the repository at this point in the history
v1.1.7
  • Loading branch information
Nikschavan authored Dec 11, 2017
2 parents b208952 + 045cf1b commit 0c62d90
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 33 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
**Tags:** beaver builder header footer, beaver builder modules, customize header, beaver builder addon, beaver builder, beaver builder extensions, beaver addons, beaver builder free, page builder addons, beaver builder template, beaver builder header, customize footer
**Donate link:** https://www.paypal.me/BrainstormForce
**Requires at least:** 3.6
**Tested up to:** 4.8.0
**Stable tag:** 1.1.5
**Tested up to:** 4.9.1
**Stable tag:** 1.1.7
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -93,7 +93,11 @@ href=”https://www.brainstormforce.com/go/brainstorm-force-twitter-page/?utm_so

## Changelog ##

### 1.1.6 (unreleased) ###
### 1.1.7 ###
- Fix: Beaver Builder layout cache missing some of the static CSS and JS files.
- Fix: When editing the header / footer the layout was being duplicated.

### 1.1.6 ###
- Fix: Menu module could not highlight the current menu item in the header template.
- Improvement: Load the Header and Footer JS in the `wp_qneueue_script`. earlier this was loaded right where the shortcode is added.
- Allow the plugin settings to be changed from child theme functions, This allows disabling and changing headers and footer per page from code.
Expand Down
4 changes: 2 additions & 2 deletions bb-header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://www.brainstormforce.com/
* Text Domain: bb-header-footer
* Domain Path: /languages
* Version: 1.1.6
* Version: 1.1.7
*
* @package BB_Header_Footer
*/
Expand All @@ -17,7 +17,7 @@
*/
require_once 'class-bb-header-footer.php';

define( 'BBHF_VER', '1.1.6' );
define( 'BBHF_VER', '1.1.7' );
define( 'BBHF_DIR', plugin_dir_path( __FILE__ ) );
define( 'BBHF_URL', plugins_url( '/', __FILE__ ) );
define( 'BBHF_PATH', plugin_basename( __FILE__ ) );
Expand Down
29 changes: 6 additions & 23 deletions class-bb-header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function __construct() {

$this->template = get_template();

if ( class_exists( 'FLBuilder' ) ) {
if ( class_exists( 'FLBuilder' ) && is_callable( 'FLBuilderShortcodes::insert_layout' ) ) {

$this->includes();
$this->load_textdomain();
Expand Down Expand Up @@ -111,17 +111,6 @@ public function enqueue_scripts() {
wp_enqueue_style( 'bbhf-style', BBHF_URL . 'assets/css/bb-header-footer.css', array(), BBHF_VER );
wp_register_script( 'bb-header-footer', BBHF_URL . 'assets/js/bb-header-footer.js', array( 'jquery' ), BBHF_VER, true );
wp_enqueue_script( 'bb-header-footer' );

$header_id = BB_Header_Footer::get_settings( 'bb_header_id', '' );
$footer_id = BB_Header_Footer::get_settings( 'bb_footer_id', '' );

if ( '' !== $header_id && is_callable( 'FLBuilder::enqueue_layout_styles_scripts_by_id' ) ) {
FLBuilder::enqueue_layout_styles_scripts_by_id( $header_id );
}

if ( '' !== $footer_id && is_callable( 'FLBuilder::enqueue_layout_styles_scripts_by_id' ) ) {
FLBuilder::enqueue_layout_styles_scripts_by_id( $footer_id );
}
}

/**
Expand Down Expand Up @@ -217,17 +206,11 @@ public static function get_footer_content() {
* @return String Rendered markup of the layout
*/
public static function render_bb_layout( $post_id ) {
if ( is_callable( 'FLBuilder::render_content_by_id' ) ) {

return FLBuilder::render_content_by_id( $post_id );
} elseif ( is_callable( 'FLBuilderShortcodes::insert_layout' ) ) {

return FLBuilderShortcodes::insert_layout(
array(
'id' => $post_id,
)
);
}
return FLBuilderShortcodes::insert_layout(
array(
'id' => $post_id,
)
);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions languages/bb-header-footer.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the Beaver Builder Header Footer package.
msgid ""
msgstr ""
"Project-Id-Version: Beaver Builder Header Footer 1.1.6-beta.2\n"
"Project-Id-Version: Beaver Builder Header Footer 1.1.6\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bb-header-footer\n"
"POT-Creation-Date: 2017-10-13 07:02:34+00:00\n"
"POT-Creation-Date: 2017-12-11 11:49:28+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -91,7 +91,7 @@ msgid ""
"activated."
msgstr ""

#: class-bb-header-footer.php:172
#: class-bb-header-footer.php:161
msgid ""
"Hey, your current theme is not supported by BB Header Footer, click <a "
"href=\"https://github.com/Nikschavan/bb-header-footer#which-themes-are-"
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: brainstormforce, Nikschavan
Tags: beaver builder header footer, beaver builder modules, customize header, beaver builder addon, beaver builder, beaver builder extensions, beaver addons, beaver builder free, page builder addons, beaver builder template, beaver builder header, customize footer
Donate link: https://www.paypal.me/BrainstormForce
Requires at least: 3.6
Tested up to: 4.8.2
Stable tag: 1.1.6
Tested up to: 4.9.1
Stable tag: 1.1.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -93,6 +93,10 @@ href=”https://www.brainstormforce.com/go/brainstorm-force-twitter-page/?utm_so

== Changelog ==

= 1.1.7 =
- Fix: Beaver Builder layout cache missing some of the static CSS and JS files.
- Fix: When editing the header / footer the layout was being duplicated.

= 1.1.6 =
- Fix: Menu module could not highlight the current menu item in the header template.
- Improvement: Load the Header and Footer JS in the `wp_qneueue_script`. earlier this was loaded right where the shortcode is added.
Expand Down

0 comments on commit 0c62d90

Please sign in to comment.