Current Directory: /home/astoriaah/www/old15/templates/client/tpls/blocks
Viewing File: /home/astoriaah/www/old15/templates/client/tpls/blocks/scripts.php
<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
if($this->params->get('lazyload')) {?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("<?php echo $this->params->get('llselector') ?>").not("<?php echo $this->params->get('notllselector') ?>").lazyload({
effect : "fadeIn"
});
});
</script>
<?php }
if($this->params->get('backtotop')) {?>
<div id="toTop" class="hidden-phone"><a id="toTopLink"><span class="icon-chevron-up"></span><span id="toTopText"> Back to top</span></a></div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() >200) {
jQuery("#toTop").fadeIn();
}
else {
jQuery("#toTop").fadeOut();
}
});
jQuery("#toTop").click(function() {
jQuery("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
});
</script>
<?php } ?>
<?php
if($this->params->get('accordion')) {
//
// Accordion
//
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.accordion ul.nav li span').zenaccordion({
<?php if($this->params->get('accordionOpenFirst')) { ?>
openfirst: true,
<?php }
if($this->params->get('accordionShowActive')) { ?>
showactive: true,
<?php } ?>
type:"<?php echo $this->params->get('accordionType') ?>"
});
});
</script>
<?php } ?>
<?php
if($this->params->get('onepagemenu')) {
//
// One Page
//
?>
<script type="text/javascript">
jQuery(document).ready(function(){
// Das ist Smooth linking
jQuery('#one-page-menu ul li a').smoothScroll({
offset: -170,
easing: 'swing'
});
});
</script>
<?php } ?>