/** * onBrowse * * @param string $tpl Param * * @return bool */ protected function onBrowse($tpl = null) { Extly::loadAwesome(); GridHelper::loadComponentInfo($this); GridHelper::loadStats($this); GridHelper::loadStatsTimeline($this); $document = JFactory::getDocument(); $document->addScript('//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js'); $document->addScript('//cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.js'); $document->addStyleSheet('//cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.0/nv.d3.min.css'); // Get component parameter - Offline mode $version_check = EParameter::getComponentParam(CAUTOTWEETNG, 'version_check', 1); $this->assign('version_check', $version_check); $platform = F0FPlatform::getInstance(); if ($version_check && $platform->isBackend()) { $file = EHtml::getRelativeFile('js', 'com_autotweet/liveupdate.min.js'); if ($file) { $dependencies = array(); $dependencies['liveupdate'] = array('extlycore'); Extly::initApp(CAUTOTWEETNG_VERSION, $file, $dependencies); } } parent::onBrowse($tpl); }
/** * onBrowse. * * @param string $tpl Param * * @return void */ protected function onBrowse($tpl = null) { Extly::initApp(CAUTOTWEETNG_VERSION); Extly::loadAwesome(); return parent::onBrowse($tpl); }