/** * @param null $path * * @return string */ function theme_url($path = null) { return cleanURI(THEME_URL . $path); }
/** * Load end register theme options */ private function loadThemeOptions() { $file = cleanURI($this->themeDIR . 'app/ThemeOptions.php'); $file = apply_filters('potter_autoload_themeoptions', $file); $class = $this->loadFile($file); if (!$class) { $class = new OptionsEmpty(); add_action('admin_menu', array($this, 'remove_ot_theme_options_page'), 999); } $this->optionsInstance = $class; }
/** * @param string $path * * @return string */ private function prepUrl($path) { $info = parse_url($path); if (!isset($info['host'])) { return theme_url($info['path']); } return cleanURI($path); }