Пример #1
0
/**
 * @param null $path
 *
 * @return string
 */
function theme_url($path = null)
{
    return cleanURI(THEME_URL . $path);
}
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 /**
  * @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);
 }