/** * Inserts the scripts at the beginning of the body section. * @param string $output the output to be inserted with scripts. */ public function renderBodyBegin(&$output) { if ($this->packScriptFiles && $this->enableJavaScript) { $this->packScriptFiles(self::POS_BEGIN); } parent::renderBodyBegin($output); }
/** * Combines the scripts at the beginning of the body section * @param string $output */ public function renderBodyBegin(&$output) { if ($this->combineScripts) { $this->combineScripts(self::POS_BEGIN); } parent::renderBodyBegin($output); }
public function renderBodyBegin(&$output) { if (isset($this->scriptFiles[self::POS_BEGIN])) { $this->scriptFiles[self::POS_BEGIN] = array($this->minifyController . "/" . $this->md5Group($this->scriptFiles[self::POS_BEGIN], "js")); } parent::renderBodyBegin($output); }
public function renderBodyBegin(&$output) { //merging if ($this->mergeJs) { $this->_mergeJs(self::POS_BEGIN); } parent::renderBodyBegin($output); }
/** * Inserts the scripts at the beginning of the body section. * @param string the output to be inserted with scripts. */ public function renderBodyBegin(&$output) { // $this->enableJavascript has been checked in parent::render() if ($this->combineScriptFiles) { $this->combineScriptFiles(self::POS_BEGIN); } parent::renderBodyBegin($output); }
/** * Inserts the scripts at the beginning of the body section (overrides parent method). * @param string $output the output to be inserted with scripts. * @since 2.0 */ public function renderBodyBegin(&$output) { $this->_minScriptProcessor('scripts', self::POS_BEGIN); parent::renderBodyBegin($output); }
/** * Will combine/compress JS if wanted/needed, and will continue with original * renderBodyEnd afterwards * * @param <type> $output */ public function renderBodyBegin(&$output) { $this->renderJs($output, parent::POS_BEGIN); parent::renderBodyBegin($output); }
/** * Will combine/compress JS if wanted/needed, and will continue with original * renderBodyEnd afterwards * * @param <type> $output */ public function renderBodyBegin(&$output) { if ($this->combineFiles) { if (isset($this->scriptFiles[parent::POS_BEGIN]) && count($this->scriptFiles[parent::POS_BEGIN]) !== 0) { $jsFiles = $this->scriptFiles[parent::POS_BEGIN]; if (!empty($this->excludeFiles)) { foreach ($jsFiles as &$fileName) (in_array($fileName, $this->excludeFiles)) AND $fileName = false; $jsFiles = array_filter($jsFiles); } $this->combineAndCompress('js',$jsFiles,parent::POS_BEGIN); } } parent::renderBodyBegin($output); }
/** * Inserts the scripts at the beginning of the body section. * @param string $output the output to be inserted with scripts. */ public function renderBodyBegin(&$output) { //do sort by order $this->sortScriptFiles(self::POS_BEGIN); $this->sortScripts(self::POS_BEGIN); parent::renderBodyBegin($output); }
/** * Inserts the scripts at the beginning of the body section. * * @param string the output to be inserted with scripts. */ public function renderBodyBegin(&$output) { $this->onBeforeOptimization('js', self::POS_BEGIN); $this->onOptimization('js', self::POS_BEGIN); $this->onAfterOptimization('js', self::POS_BEGIN); parent::renderBodyBegin($output); }