%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/plugins/system/yt/includes/libs/minify/lib/Minify/Controller/ |
Upload File : |
<?php /** * Class Minify_Controller_Page * @package Minify */ require_once 'Minify/Controller/Base.php'; /** * Controller class for serving a single HTML page * * @link http://code.google.com/p/minify/source/browse/trunk/web/examples/1/index.php#59 * @package Minify * @author Stephen Clay <steve@mrclay.org> */ class Minify_Controller_Page extends Minify_Controller_Base { /** * Set up source of HTML content * * @param array $options controller and Minify options * @return array Minify options * * Controller options: * * 'content': (required) HTML markup * * 'id': (required) id of page (string for use in server-side caching) * * 'lastModifiedTime': timestamp of when this content changed. This * is recommended to allow both server and client-side caching. * * 'minifyAll': should all CSS and Javascript blocks be individually * minified? (default false) * * @todo Add 'file' option to read HTML file. */ public function setupSources($options) { if (isset($options['file'])) { $sourceSpec = array( 'filepath' => $options['file'] ); } else { // strip controller options $sourceSpec = array( 'content' => $options['content'] ,'id' => $options['id'] ); unset($options['content'], $options['id']); } if (isset($options['minifyAll'])) { // this will be the 2nd argument passed to Minify_HTML::minify() $sourceSpec['minifyOptions'] = array( 'cssMinifier' => array('Minify_CSS', 'minify') ,'jsMinifier' => array('JSMin', 'minify') ); $this->_loadCssJsMinifiers = true; unset($options['minifyAll']); } $this->sources[] = new Minify_Source($sourceSpec); $options['contentType'] = Minify::TYPE_HTML; return $options; } protected $_loadCssJsMinifiers = false; /** * @see Minify_Controller_Base::loadMinifier() */ public function loadMinifier($minifierCallback) { if ($this->_loadCssJsMinifiers) { // Minify will not call for these so we must manually load // them when Minify/HTML.php is called for. require_once 'Minify/CSS.php'; require_once 'JSMin.php'; } parent::loadMinifier($minifierCallback); // load Minify/HTML.php } }