function themosis_start_app() { if (THFWK_ThemosisTheme::getInstance()->isPluginLoaded()) { do_action('themosis_parse_query', $arg = ''); /*----------------------------------------------------*/ // Application routes. /*----------------------------------------------------*/ require themosis_path('app') . 'routes.php'; /*----------------------------------------------------*/ // Run application and return a response. /*----------------------------------------------------*/ do_action('themosis_run'); } else { _e("The theme won't work until you install the Themosis framework plugin correctly.", THEMOSIS_THEME_TEXTDOMAIN); } }
public function displayMessage() { ?> <div id="message" class="error"> <p><?php _e("You first need to activate the <b>Themosis framework</b> in order to use this theme.", THEMOSIS_THEME_TEXTDOMAIN); ?> </p> </div> <?php } } } /*----------------------------------------------------*/ // Instantiate the theme class. /*----------------------------------------------------*/ THFWK_ThemosisTheme::getInstance(); /*----------------------------------------------------*/ // Set theme's paths. /*----------------------------------------------------*/ // Theme base path. $paths['base'] = __DIR__ . DS; // Application path. $paths['theme'] = __DIR__ . DS . 'resources' . DS; // Application admin directory. $paths['admin'] = __DIR__ . DS . 'resources' . DS . 'admin' . DS; themosis_set_paths($paths); /*----------------------------------------------------*/ // Start the theme. /*----------------------------------------------------*/ require_once 'bootstrap' . DS . 'start.php';