...it is strongly recommended to use the addLibrary method as it provides some important features. The method will make sure that the link will be added only once. If different extensions load different versions of the same library Elxis will finally load only the latest one. $name is an identification name for the library (eg. mootools) and $version the library's version.
<?php //.....$eLang = eFactory::getLang();$eDoc = eFactory::getDocument();$elxis = eFactory::getElxis();$eDoc->addJQuery();elxisloader::loadFile('templates/delta/includes/delta.class.php');$delta = new templateDelta();echo $eDoc->getDocType()."\n";?><html<?php echo $eDoc->htmlAttributes(); ?>>......
<?php $eDoc->addJQuery();$eDoc->loadLightbox();?>
$js = '$(".test").colorbox({rel:\'test\', slideshow:true, slideshowAuto:true, slideshowSpeed:4000, loop:true});';$eDoc->addDocReady($js);
<a href="big_image1.jpg" class="test"><img src="small_image1.jpg" alt="..." /></a><a href="big_image2.jpg" class="test"><img src="small_image2.jpg" alt="..." /></a><a href="big_image3.jpg" class="test"><img src="small_image3.jpg" alt="..." /></a>