define(URL_LOC, 'knob.chemaclass.local'); // SOME DIRECTORIES define(PUBLIC_DIR, get_template_directory_uri() . '/public'); define(COMPONENTS_DIR, get_template_directory_uri() . '/vendor/components'); // BLOG_INFO function getBlogTitle() { if (is_home()) { return get_bloginfo('name'); } else { return wp_title("-", false, "right") . " " . get_bloginfo('name'); } } define(BLOG_TITLE, getBlogTitle()); define(ADMIN_EMAIL, get_bloginfo('admin_email')); // -------------------------------------------------------------- // Actions // -------------------------------------------------------------- Actions::adminPrintScripts(); Actions::adminPrintStyles(); Actions::loginView(); Actions::wpBeforeAdminBarRender(); // -------------------------------------------------------------- // Filters // -------------------------------------------------------------- Filters::wpFilterTest(); /** * Remove the admin bar in prod */ show_admin_bar(false); @(include_once 'test.php');
// URL ENVEROMENTS define('URL_PRO', isset($env['pro']) ? $env['pro'] : $siteUrl); define('URL_DEV', isset($env['dev']) ? $env['dev'] : $siteUrl); define('URL_LOC', isset($env['loc']) ? $env['loc'] : $siteUrl); // SOME DIRECTORIES define('PUBLIC_DIR', get_template_directory_uri() . '/public'); define('COMPONENTS_DIR', get_template_directory_uri() . '/vendor/components'); // BLOG_INFO function getBlogTitle() { if (is_home()) { return get_bloginfo('name'); } else { return wp_title("-", false, "right") . " " . get_bloginfo('name'); } } define('BLOG_TITLE', getBlogTitle()); define('ADMIN_EMAIL', get_bloginfo('admin_email')); // -------------------------------------------------------------- // Actions // -------------------------------------------------------------- Actions::setup(); // -------------------------------------------------------------- // Filters // -------------------------------------------------------------- Filters::setup(); // -------------------------------------------------------------- // WidgetController // -------------------------------------------------------------- Widgets::setup(); @(include_once 'test.php');