defined('_ELXIS_') or die ('Direct access to this location is not allowed');$eLang = eFactory::getLang();$eDoc = eFactory::getDocument();$elxis = eFactory::getElxis();elxisloader::loadFile('templates/template1/includes/template1.class.php');$template1 = new templateTemplate1();echo $eDoc->getDocType()."\n";?><html<?php echo $eDoc->htmlAttributes(); ?>><head> <?php $eDoc->showHead(); ?> <link rel="stylesheet" href="<?php echo $elxis->secureBase(); ?>/templates/template1/css/template<?php echo $eLang->getinfo('RTLSFX'); ?>.css" type="text/css" /> <?php $template1->loadHeader(); ?></head>
public function loadHeader() { $eDoc = eFactory::getDocument(); $elxis = eFactory::getElxis(); $eDoc->addJQuery(); $eDoc->addScriptLink($this->url.'/includes/hoverIntent.js'); $eDoc->addScriptLink($this->url.'/includes/superfish.js'); $eDoc->addScript('jQuery(function(){ jQuery(\'.topmenu ul.elx_menu\').superfish(); });'); $eDoc->addScript('jQuery(function(){ jQuery(\'.left ul.elx_vmenu\').superfish(); });'); $js = '$(document).ready( function(){ $(\'.topmenu ul.elx_menu\').superfish({ delay:300, speed:500, autoArrows:1, dropShadows:1 }); $(\'.left ul.elx_vmenu'\).superfish({ delay:300, speed:500, autoArrows:1, dropShadows:1 }); });'; $eDoc->addScript($js); }
<script type="text/javascript" src="http**//localhost/includes/js/jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="http**//localhost/includes/js/elxis.js"></script> <script type="text/javascript" src="http**//localhost/templates/template1/includes/hoverIntent.js"></script> <script type="text/javascript" src="http**//localhost/templates/template1/includes/superfish.js"></script> <script type="text/javascript" src="http**//localhost/includes/js/jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="http**//localhost/includes/js/jquery/colorbox/colorbox.js"></script> <script type="text/javascript" src="http**//localhost/components/com_search/extra/addengine.js"></script> <script type="text/javascript">
<script type="text/javascript" src="http**//localhost/includes/js/jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="http**//localhost/modules/mod_eidynamicslidernews1/js/jquery.easing.js"></script> <script type="text/javascript" src="http**//localhost/includes/js/jquery/colorbox/colorbox.js"></script> <script type="text/javascript" src="http**//localhost/includes/js/elxis.js"></script> <script type="text/javascript" src="http**//localhost/templates/delta/includes/hoverIntent.js"></script> <script type="text/javascript" src="http**//localhost/templates/delta/includes/superfish.js"></script>
thanks.i saw it, corrected by time, but not works ... in any case i solved insert directly in the head of template the two jscript and the js script code. about this. compliments for your hard work ... create template is very easy.... more easy and quickly than old elxis guys forget joomla templates and similar .... new elxis is on another planet a good layout in css, few classes of css to customing, and template is ready,