Exemplo n.º 1
0
Arquivo: css.php Projeto: 01J/bealtine
 function NextendCacheCss()
 {
     $this->_subfolder = 'css' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'css';
     $this->_gzip = getNextend('gzip', 0);
 }
Exemplo n.º 2
0
 function NextendCacheJavascript()
 {
     $this->_subfolder = 'js' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'js';
     $this->_inline = '';
     $this->_gzip = getNextend('gzip', 0);
 }
Exemplo n.º 3
0
 function NextendImage()
 {
     $this->_subfolder = 'image' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'png';
     $time = time();
     $currentcachetime = $time - $time % $this->_cacheTime;
     $this->_folder = $this->_path . $this->_prename . $currentcachetime . DIRECTORY_SEPARATOR;
     $this->createCacheSubFolder($this->_folder, $currentcachetime);
 }
Exemplo n.º 4
0
 function NextendCacheLess()
 {
     $this->_subfolder = 'less' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'css';
     $this->_less = new nlessc();
     $this->_less->addImportDir(NEXTENDLIBRARYASSETS . DIRECTORY_SEPARATOR . 'less' . DIRECTORY_SEPARATOR);
     $this->_image = new NextendImage();
     $this->_image->loadLess($this);
     $this->_image_cacheTime = $this->_cacheTime;
     $this->_context = array();
 }
Exemplo n.º 5
0
 function NextendCacheImage()
 {
     $this->_subfolder = 'image' . DIRECTORY_SEPARATOR;
     $this->backgrouncolor = array(0, 0, 0);
     parent::NextendCache();
     if ($this->_cacheTime == 'static' || $this->_cacheTime == 0) {
         $this->_folder = $this->_path . 'static' . DIRECTORY_SEPARATOR;
         $currentcachetime = 0;
     } else {
         $time = time();
         $currentcachetime = $time - $time % $this->_cacheTime;
         $this->_folder = $this->_path . $this->_prename . $currentcachetime . DIRECTORY_SEPARATOR;
     }
     $this->createCacheSubFolder($this->_folder, $currentcachetime);
 }