diff --git a/app/Fields/Theme_Fields.php b/app/Fields/Theme_Fields.php index 54f76b4..21d5f22 100644 --- a/app/Fields/Theme_Fields.php +++ b/app/Fields/Theme_Fields.php @@ -13,7 +13,9 @@ public function init() { $this->add_options_page( 'Theme options' ); $this->has( - $this->build() + $this->build('theme_options', [ + 'style' => 'seamless', + ]) ->addTab( 'General' ) ->addFields( $this->general_tab() ) ->addTab( 'Socials Links' ) diff --git a/app/Theme.php b/app/Theme.php index a317c06..c02391a 100644 --- a/app/Theme.php +++ b/app/Theme.php @@ -6,14 +6,11 @@ use Boilerplate\Theme\Fields\Page_Fields; use Boilerplate\Theme\Fields\Theme_Fields; use Boilerplate\Theme\Fields\User_Fields; -use Boilerplate\Theme\Page_Builder\SiteOrigin_Panels; use Boilerplate\Theme\Post_Type\Employee; use Boilerplate\Theme\Supports\Autoptimize; use Boilerplate\Theme\Taxonomy\Department; use JustCoded\WP\Framework\Supports\Contact_Form7; -use JustCoded\WP\Framework\Supports\Just_Custom_Fields; use JustCoded\WP\Framework\ACF\ACF_Support; -use JustCoded\WP\Framework\Supports\Just_Post_Preview; use JustCoded\WP\Framework\Supports\Just_Responsive_Images; use JustCoded\WP\Framework\Supports\Just_Tinymce; @@ -147,8 +144,6 @@ public function register_taxonomies() { */ public function support_plugins() { Just_Responsive_Images::instance(); - Just_Custom_Fields::instance(); - Just_Post_Preview::instance(); Just_Tinymce::instance(); if ( Autoptimize::check_requirements() ) { diff --git a/functions.php b/functions.php index f1802ce..9ed66a7 100644 --- a/functions.php +++ b/functions.php @@ -16,23 +16,8 @@ require_once get_template_directory() . '/inc/hooks.php'; require_once get_template_directory() . '/inc/template-funcs.php'; -/** - * Wrap theme start code into a function to be able to use child theme. - * this code will be executed inside child theme. - */ -if ( ! function_exists( 'boilerplate_theme_starter' ) ) { - /** - * Theme launcher function - */ - function boilerplate_theme_starter() { - new \JustCoded\WP\Framework\Autoload( 'Boilerplate\Theme', get_template_directory() . '/app' ); +$theme = \JustCoded\WP\Framework\Theme_Starter\Theme_Starter::instance(); - $theme = \Boilerplate\Theme\Theme::instance(); - } +if ( ! $theme->is_theme_created() ) { + $theme->start_theme( 'boilerplate_namespace' ); } - -/** - * Finally run our Theme setup - * and ThemeOptions setup - */ -boilerplate_theme_starter(); diff --git a/requirements.php b/requirements.php index d6d10c8..5dba43d 100644 --- a/requirements.php +++ b/requirements.php @@ -67,7 +67,7 @@ class Just_Theme_Framework_Checker { private function __construct() { global $pagenow; if ( ! is_admin() && 'wp-login.php' !== $pagenow && ! $this->check_requirements() ) { - throw new Exception( 'Your theme requires Just Theme Framework and Titan Framework plugins to be installed and activated.' ); + throw new Exception( 'Your theme requires WordPress Theme Framework and Advanced Custom Fields PRO plugins to be installed and activated.' ); } add_action( 'admin_notices', array( $this, 'display_requirements_admin_notice' ) ); } @@ -127,7 +127,17 @@ public function display_requirements_admin_notice() { } $html = '
' . implode( '
', $warnings ) . '