Example #1
0
 public static function article($src)
 {
     return Cache::exec(array($src), __FILE__, function ($src) {
         $html = Load::loadTEXT('-doc/get.php?src=' . $src);
         $info = Load::srcInfo($src);
         if (!in_array($info['ext'], array('html', 'tpl', 'php'))) {
             $soft = true;
         } else {
             $soft = false;
         }
         return Rubrics::parse($html, $soft);
     }, array($src), isset($_GET['re']));
 }