function __autoload($class) { PeGlobal::loader($class); }
function __pe($text) { return $text; } function e__pe($text) { echo $text; } require PE_FRAMEWORK . "/php/PeGlobal.php"; PeGlobal::$config["classPath"] = apply_filters('pe_theme_class_paths', array(PE_THEME_PATH . "/theme/php/PeTheme", PE_FRAMEWORK . "/php/PeTheme")); PeGlobal::$config["libPath"] = apply_filters('pe_theme_lib_paths', array(PE_FRAMEWORK . "/php/libs")); PeGlobal::init(); // instantiate the controller if (!function_exists("peTheme")) { $peThemeClassName = apply_filters('pe_theme_controller_classname', 'PeTheme' . PE_THEME_NAME); PeGlobal::$controller = new $peThemeClassName(); function &peTheme() { return PeGlobal::$controller; } peTheme()->boot(); } if (!isset($content_width)) { $content_width = PeGlobal::$config["content-width"]; } add_action("init", array(peTheme(), "init")); if (has_action("after_switch_theme")) { // 3.3 and upper add_action("after_switch_theme", array(peTheme(), "after_switch_theme")); } else { if (is_admin() && isset($_GET['activated']) && $pagenow == 'themes.php') {