Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/backup-1772789657/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/contact_1773053642/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/custom_1772590080/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/gallery_1773205590/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/security_1773365946/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/seo-1773067588/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/seo-1773981021/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/seo_1773336481/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/seo_1773809441/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/slider-1772683941/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/slider-1773111350/file_folder_manager.php on line 17
Notice: Constant WP_FILE_MANAGER_PATH already defined in /home/reif3513/public_html/wp-content/plugins/wp-file-manager/file_folder_manager.php on line 17
if ( ! class_exists( 'Be_Dentist_Theme_Setup' ) ) {
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since 1.0.0
*/
class Be_Dentist_Theme_Setup {
/**
* A reference to an instance of this class.
*
* @since 1.0.0
* @var object
*/
private static $instance = null;
/**
* A reference to an instance of cherry framework core class.
*
* @since 1.0.0
* @var object
*/
private $core = null;
/**
* Holder for CSS layout scheme.
*
* @since 1.0.0
* @var array
*/
public $layout = array();
/**
* Holder for current customizer module instance.
*
* @since 1.0.0
* @var object
*/
public $customizer = null;
/**
* Sets up needed actions/filters for the theme to initialize.
*
* @since 1.0.0
*/
public function __construct() {
// Set the constants needed by the theme.
add_action( 'after_setup_theme', array( $this, 'constants' ), 0 );
// Load the core functions/classes required by the rest of the theme.
add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
// Language functions and translations setup.
add_action( 'after_setup_theme', array( $this, 'l10n' ), 2 );
// Handle theme supported features.
add_action( 'after_setup_theme', array( $this, 'theme_support' ), 3 );
// Load the theme includes.
add_action( 'after_setup_theme', array( $this, 'includes' ), 4 );
// Initialization of modules.
add_action( 'after_setup_theme', array( $this, 'init' ), 10 );
// Load admin files.
add_action( 'wp_loaded', array( $this, 'admin' ), 1 );
// Enqueue admin assets.
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_assets' ) );
// Register public assets.
add_action( 'wp_enqueue_scripts', array( $this, 'register_assets' ), 9 );
// Enqueue public assets.
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ), 10 );
}
/**
* Defines the constant paths for use within the core and theme.
*
* @since 1.0.0
*/
public function constants() {
global $content_width;
/**
* Fires before definitions the constants.
*
* @since 1.0.0
*/
do_action( 'be_dentist_constants_before' );
$template = get_template();
$theme_obj = wp_get_theme( $template );
/** Sets the theme version number. */
define( 'BE_DENTIST_THEME_VERSION', $theme_obj->get( 'Version' ) );
/** Sets the theme directory path. */
define( 'BE_DENTIST_THEME_DIR', get_template_directory() );
/** Sets the theme directory URI. */
define( 'BE_DENTIST_THEME_URI', get_template_directory_uri() );
/** Sets the path to the core framework directory. */
define( 'CHERRY_DIR', trailingslashit( BE_DENTIST_THEME_DIR ) . 'cherry-framework' );
/** Sets the path to the core framework directory URI. */
define( 'CHERRY_URI', trailingslashit( BE_DENTIST_THEME_URI ) . 'cherry-framework' );
/** Sets the theme includes paths. */
define( 'BE_DENTIST_THEME_CLASSES', trailingslashit( BE_DENTIST_THEME_DIR ) . 'inc/classes' );
define( 'BE_DENTIST_THEME_WIDGETS', trailingslashit( BE_DENTIST_THEME_DIR ) . 'inc/widgets' );
define( 'BE_DENTIST_THEME_EXT', trailingslashit( BE_DENTIST_THEME_DIR ) . 'inc/extensions' );
/** Sets the theme assets URIs. */
define( 'BE_DENTIST_THEME_CSS', trailingslashit( BE_DENTIST_THEME_URI ) . 'assets/css' );
define( 'BE_DENTIST_THEME_JS', trailingslashit( BE_DENTIST_THEME_URI ) . 'assets/js' );
// Sets the content width in pixels, based on the theme's design and stylesheet.
if ( ! isset( $content_width ) ) {
$content_width = 710;
}
}
/**
* Loads the core functions. These files are needed before loading anything else in the
* theme because they have required functions for use.
*
* @since 1.0.0
*/
public function get_core() {
/**
* Fires before loads the core theme functions.
*
* @since 1.0.0
*/
do_action( 'be_dentist_core_before' );
if ( null !== $this->core ) {
return $this->core;
}
if ( ! class_exists( 'Cherry_Core' ) ) {
require_once( trailingslashit( CHERRY_DIR ) . 'cherry-core.php' );
}
$this->core = new Cherry_Core( array(
'base_dir' => CHERRY_DIR,
'base_url' => CHERRY_URI,
'modules' => array(
'cherry-js-core' => array(
'priority' => 999,
'autoload' => true,
),
'cherry-ui-elements' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-widget-factory' => array(
'priority' => 999,
'autoload' => true,
),
'cherry-post-formats-api' => array(
'priority' => 999,
'autoload' => true,
'args' => array(
'rewrite_default_gallery' => true,
'gallery_args' => array(
'size' => 'be_dentist-post-thumbnail-large',
'base_class' => 'post-gallery',
'container' => '
Warning: Cannot modify header information - headers already sent by (output started at /home/reif3513/public_html/wp-content/plugins/backup-1772789657/file_folder_manager.php:17) in /home/reif3513/public_html/wp-includes/pluggable.php on line 1438