示例#1
0
 protected static function render($file)
 {
     static $rendered = array();
     if (in_array($file, $rendered)) {
         return '';
     } else {
         $rendered[] = $file;
     }
     $file = Cdn::getUrl($file);
     if (self::getFileExtension($file) == 'js') {
         return H::js($file);
     } elseif (self::getFileExtension($file) == 'css') {
         return H::css($file);
     }
 }
示例#2
0
文件: H.php 项目: konstantin-pr/Ses
 public static function copyData($locale = 'en_US')
 {
     require_once APPLICATION_PATH . '/models/CopyExportImport.php';
     $url = \Application\models\CopyGenerator::factory()->getCopyUrl($locale);
     echo H::js($url);
 }