Skip to content

Commit

Permalink
Merge pull request #3618 from ThemeFuse/andreiglingeanu/path-fixes
Browse files Browse the repository at this point in the history
feat($paths): introduce filters for manifest and available exts
  • Loading branch information
andreiglingeanu authored Oct 5, 2018
2 parents 125567d + 892f4e0 commit 47b13fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/core/class-fw-manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,4 @@ public function get_required_extensions()
{
return $this->manifest['requirements']['extensions'];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function get_available_extensions() {
$available = $available['extensions'];

// Allow theme to register available extensions
$theme_available_ext_file = fw_fix_path( get_template_directory() ) . fw_get_framework_customizations_dir_rel_path( '/theme/available-extensions.php' );
$theme_available_ext_file = fw_fix_path( get_template_directory() ) . apply_filters('fw_theme_available_extensions_file_path', fw_get_framework_customizations_dir_rel_path( '/theme/available-extensions.php' ));

if ( file_exists( $theme_available_ext_file ) ) {

Expand Down
4 changes: 2 additions & 2 deletions framework/core/components/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class _FW_Component_Theme {
public function __construct() {
$manifest = array();

if ( ( $manifest_file = fw_get_template_customizations_directory( '/theme/manifest.php' ) ) && is_file( $manifest_file ) ) {
if ( ( $manifest_file = apply_filters('fw_framework_manifest_path', fw_get_template_customizations_directory( '/theme/manifest.php' )) ) && is_file( $manifest_file ) ) {
@include $manifest_file;
}

Expand Down Expand Up @@ -228,7 +228,7 @@ public function _action_admin_notices() {
<p>
<a href="' . $url_install_plugin . '">' .
__( 'Activate Now | for FREE', 'fw' ) .
'</a>
'</a>
</p>
<style>
.fw-brz-dismiss {
Expand Down

0 comments on commit 47b13fa

Please sign in to comment.