require_once gavern_file('gavern/widgets.social.php'); require_once gavern_file('gavern/widgets.tabs.php'); // Including file with template admin features require_once gavern_file('gavern/helpers/helpers.features.php'); // Including file with template shortcodes require_once gavern_file('gavern/helpers/helpers.shortcodes.php'); // Including file with template layout functions require_once gavern_file('gavern/helpers/helpers.layout.php'); // Including file with template layout functions - connected with template fragments require_once gavern_file('gavern/helpers/helpers.layout.fragments.php'); // Including file with template branding functions require_once gavern_file('gavern/helpers/helpers.branding.php'); // Including file with template customize functions require_once gavern_file('gavern/helpers/helpers.customizer.php'); // initialize the framework $tpl->init(); // add theme setup function add_action('after_setup_theme', 'gavern_theme_setup'); // Theme setup function function gavern_theme_setup() { // access to the global template object global $tpl; // variable used for redirects global $pagenow; // check if the themes.php address with goto variable has been used if ($pagenow == 'themes.php' && !empty($_GET['goto'])) { /** * * IMPORTANT FACT: if you're using few different redirects on a lot of subpages * we recommend to define it as themes.php?goto=X, because if you want to
// Including file with template widgets require_once gavern_file('gavern/widgets.comments.php'); // Including file with template admin features require_once gavern_file('gavern/helpers/helpers.features.php'); // Including file with template shortcodes require_once gavern_file('gavern/helpers/helpers.shortcodes.php'); // Including file with template layout functions require_once gavern_file('gavern/helpers/helpers.layout.php'); // Including file with template layout functions - connected with template fragments require_once gavern_file('gavern/helpers/helpers.layout.fragments.php'); // Including file with template branding functions require_once gavern_file('gavern/helpers/helpers.branding.php'); // Including file with template customize functions require_once gavern_file('gavern/helpers/helpers.customizer.php'); // initialize the framework $gk_tpl->init(); // add theme setup function add_action('after_setup_theme', 'gavern_theme_setup'); // Theme setup function function gavern_theme_setup() { // access to the global template object global $gk_tpl; // variable used for redirects global $pagenow; // check if the themes.php address with goto variable has been used if ($pagenow == 'themes.php' && !empty($_GET['goto'])) { /** * * IMPORTANT FACT: if you're using few different redirects on a lot of subpages * we recommend to define it as themes.php?goto=X, because if you want to