?
Path : /home/admin/public_html/old/happy2/plugins/system/japopup/fancybox/tmpl/ |
Current File : /home/admin/public_html/old/happy2/plugins/system/japopup/fancybox/tmpl/slideshow.php |
<?php /** * ------------------------------------------------------------------------ * JA Popup Plugin for J25 & J31 * ------------------------------------------------------------------------ * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: J.O.O.M Solutions Co., Ltd * Websites: http://www.joomlart.com - http://www.joomlancers.com * ------------------------------------------------------------------------ */ // no direct access defined('_JEXEC') or die('Restricted access'); $show = false; foreach ($arrData['content'] as $v){ $image_url = trim($v); ?> <a class="<?php echo $arrData['class']; ?>" rel="<?php echo $arrData['rel']; ?>" href="<?php echo $image_url; ?>" title="<?php echo $arrData['title'] ?>" > <?php if($arrData['imageNumber'] == "all"){ ?> <img src="<?php echo $image_url; ?>" width="<?php echo $arrData['frameWidth']; ?>"/> <?php }elseif($show === false){ ?> <?php $show = true; echo $arrData['imageNumber']; ?> <?php } ?> </a> <?php } ?> <script language="javascript" type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function() { (window.japuQuery || window.jQuery)("a.<?php echo $arrData['class']; ?>").fancybox({ imageScale:<?php echo $arrData['imageScale']?>, overlayShow: <?php echo $arrData['overlayShow']; ?>, overlayOpacity: <?php echo $arrData['overlayOpacity']; ?>, <?php if($arrData['onopen'] != "") echo "onStart: ".$arrData['onopen'].","; ?> <?php if($arrData['onclose'] != "") echo "onClosed: ".$arrData['onclose'].","; ?> centerOnScroll: <?php echo $arrData['centerOnScroll']; ?> }); }); /* ]]> */ </script>