示例#1
0
 public static function template_include($template)
 {
     if (!self::is_enabled() || self::get_cat_id() <= 0) {
         return $template;
     }
     if (theme_cache::is_category() && theme_features::get_cat_root_id() == self::get_cat_id()) {
         return self::get_tpl_include('category');
     } else {
         if (theme_cache::is_singular('post') && theme_features::get_cat_root_id() == self::get_cat_id()) {
             return self::get_tpl_include('post');
         }
     }
     return $template;
 }