defined( 'ABSPATH' ) or exit; // Theme constants define( 'GLB__PATH', trailingslashit( get_template_directory() ) ); define( 'GLB__URI', trailingslashit( get_template_directory_uri() ) ); define( 'GLB__VERSION', '1.0.0' ); define( 'GLB__ID', 'glb' ); // Action to load the theme translation add_action( 'after_setup_theme', 'glb__translation_import', 5 ); /** * Load the translation files into the theme textdomain * * @return void */ function glb__translation_import() { load_theme_textdomain( 'glb', get_template_directory() . '/languages' ); } /** * We must check PHP version to ensure the theme can * be worked fine */ if ( version_compare( PHP_VERSION, '5.3', '<' ) ) { // Register action to checking theme requirements add_action( 'after_switch_theme', 'glb__requirement_check', 10, 2 ); // Action to sending a notice while hosting does // not meet the minimum requires add_action( 'admin_notices', 'glb__requirement_notice' ); /** * Check the theme requirements * * @param string $name Theme's name * @param object $theme The theme object * * @return void */ function glb__requirement_check( $name, $theme ) { // Switch back to previous theme switch_theme( $theme->stylesheet ); } /** * Show the warning message when hosting environment doesn't * meet the theme minimum requires. * * @return void */ function glb__requirement_notice() { printf( '

%s

', esc_html__( 'Sorry! Your server does not meet the minimum requirements, please upgrade PHP version to 5.3 or higher', 'glb' ) ); } return; } // The base classes require_once GLB__PATH . 'inc/options/class-options-container.php'; require_once GLB__PATH . 'inc/options/class-options-control.php'; require_once GLB__PATH . 'inc/options/class-options-section.php'; require_once GLB__PATH . 'inc/functions-helpers.php'; require_once GLB__PATH . 'inc/functions-helpers-styles.php'; // Theme customize setup require_once GLB__PATH . 'inc/customize/functions-customize.php'; // Theme setup require_once GLB__PATH . 'inc/functions-setup.php'; require_once GLB__PATH . 'inc/functions-template.php'; require_once GLB__PATH . 'inc/functions-custom-icons.php'; require_once GLB__PATH . 'inc/functions-metaboxes.php'; require_once GLB__PATH . 'inc/class-custom-sidebars.php'; if ( is_admin() ) { require_once GLB__PATH . 'admin/functions-setup.php'; require_once GLB__PATH . 'admin/functions-plugins.php'; } // Custom filters & actions require_once GLB__PATH . 'inc/functions-filters.php'; require_once GLB__PATH . 'inc/functions-blog.php'; require_once GLB__PATH . 'inc/functions-woocommerce.php'; require_once GLB__PATH . 'inc/functions-projects.php'; WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.