private function getParams() { $eModule = eFactory::getModule(); elxisLoader::loadFile('includes/libraries/elxis/parameters.class.php'); $xmlpath = ELXIS_PATH.'/templates/oneweb/oneweb.xml'; $tplparams = $this->getDBParams(); $params = new elxisParameters($tplparams, $xmlpath, 'template'); $this->tplparams['loadMoo'] = $params->get('loadMoo'); $this->tplparams['jQuery'] = $params->get('jQuery'); $this->tplparams['modernizr'] = $params->get('modernizr'); $this->tplparams['badBrowser'] = $params->get('badBrowser'); $this->tplparams['scripts'] = $params->get('scripts'); $this->tplparams['frontpage'] = $params->get('frontpage'); $this->tplparams['setGeneratorTag'] = $params->get('setGeneratorTag'); $this->tplparams['analytics'] = $params->get('analytics'); $this->tplparams['verification'] = $params->get('verification'); $this->tplparams['googleWebFonts'] = $params->get('googleWebFonts'); unset($params); //free memory // Calculate the number of modules published in a positon $aboveModules = ($eModule->countModules('above1')?1:0)+ ($eModule->countModules('above2')?1:0)+ ($eModule->countModules('above3')?1:0)+ ($eModule->countModules('above4')?1:0); $bottomModules = ($eModule->countModules('bottom1')?1:0)+ ($eModule->countModules('bottom2')?1:0)+ ($eModule->countModules('bottom3')?1:0)+ ($eModule->countModules('bottom4')?1:0)+ ($eModule->countModules('bottom5')?1:0)+ ($eModule->countModules('bottom6')?1:0); $footerModules = ($eModule->countModules('footer1')?1:0)+ ($eModule->countModules('footer2')?1:0)+ ($eModule->countModules('footer3')?1:0)+ ($eModule->countModules('footer4')?1:0); unset($eModule); }// further down I have this on line 119 if ($modernizr) { $eDoc->addScriptLink('<script src="'.$template.'/js/modernizr-2.5.3.min.js"></script>'); }
[:head:] [:head:][:head:][:head:][:head:][:head:][:head:]
// Site icons: http://mathiasbynens.be/notes/touch-icons $eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" sizes="144x144" href="'.$template.'/images/large/apple-touch-icon.png">'); // Metas $eDoc->showHead( 'HandheldFriendly', 'True' ); $eDoc->showHead( 'MobileOptimized', '320' );
// Site icons: http://mathiasbynens.be/notes/touch-icons // For third-generation iPad with high-resolution Retina display: $eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" sizes="144x144" href="'.$template.'/images/large/apple-touch-icon.png">'); //For iPhone with high-resolution Retina display: $eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" sizes="114x114" href="'.$template.'/images/large/apple-touch-icon.png">'); // For first- and second-generation iPad: $eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" sizes="72x72" href="'.$template.'/images/medium/apple-touch-icon.png">'); // For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: $eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" href="'.$template.'/images/small/apple-touch-icon-precomposed.png">');
$eDoc->addScriptLink($template.'/js/helper.js');
eFactory::getDocument()->addScriptLink($template.'/js/helper.js', $type='text/javascript');
$eDoc->addScriptLink('<link rel="apple-touch-icon-precomposed" sizes="144x144" href="'.$template.'/images/large/apple-touch-icon.png">');
eFactory::getDocument()->setFavicon('<link rel="apple-touch-icon-precomposed" sizes="144x144" href="'.$template.'/images/large/apple-touch-icon.png">');