예제 #1
0
파일: classes.php 프로젝트: pqzada/avispate
 static function wrap($template)
 {
     self::$main_template = $template;
     self::$base = substr(basename(self::$main_template), 0, -4);
     if (self::$base === 'index') {
         self::$base = false;
     }
     $templates = array('base.php');
     if (self::$base) {
         array_unshift($templates, sprintf('base-%s.php', self::$base));
     }
     return locate_template($templates);
 }
예제 #2
0
파일: utils.php 프로젝트: pqzada/avispate
function ya_sidebar_path()
{
    return YA_Wrapping::sidebar();
}