Hi
I have few third party style sheets and java scripts to be embedded with T3 frame work. I have placed those files in the head.php as follows,
CSS Files
<?php
if(is_file(T3_TEMPLATE_PATH . '/css/sIFR.css')) {
$this->addStyleSheet(T3_TEMPLATE_URL.'/css/sIFR.css');
}
?>
<?php
if(is_file(T3_TEMPLATE_PATH . '/css/slider.css')) {
$this->addStyleSheet(T3_TEMPLATE_URL.'/css/slider.css');
}
?>
<style type="text/css">
<!--
@import url(T3_TEMPLATE_URL.'css/csi.css');
@import url(T3_TEMPLATE_URL.'css/menu.css');
-->
</style>
Java scripts
<script type="text/javascript" src="<?php echo T3_URL ?>/js/sifr.js"></script>
<script type="text/javascript" src="<?php echo T3_URL ?>/js/sifr-config.js"></script>
<script type="text/javascript">
var _lofmain = $('lofslidecontent45');
var _lofscmain = _lofmain.getElement('.lof-main-wapper');
var _lofnavigator = _lofmain.getElement('.lof-navigator-outer .lof-navigator');
var object = new LofFlashContent( _lofscmain,
_lofnavigator,
_lofmain.getElement('.lof-navigator-outer'),
{ fxObject:{ transition:Fx.Transitions.Quad.easeInOut, duration:800},
interval:5000,
direction:'opacity' } );
object.start( true, _lofmain.getElement('.preload') );
</script>
<script type="text/javascript">
var menu=new menu.dd("menu"
menu.init("menu","menuhover"
</script>
--------------------------------------------------------------------------------------------------------------------------------------------------------------
But I think some where is wrong . Styles and JS functions are not working. How can I "import url" ( somethig.css ) in to head.php ? How can I pass the path correctly ?
Can I execute javascript functions as I mentioned above in the head.php ?
Please help.
Thanks in advance
Luke.