%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/templates/sj_flatnews/html/mod_carousel/ |
Upload File : |
<?php /** * @package Sj Carousel * @version 2.5 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2012 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com * */ defined('_JEXEC') or die; $doc = JFactory::getDocument(); $doc->addCustomTag(' <script type="text/javascript"> if (typeof jQuery != "undefined" && typeof MooTools != "undefined" ) { // both present , kill jquery slide for carousel class (function($) { $(document).ready(function(){ $(".carousel").each(function(index, element) { $(this)[index].slide = null; }); }); })(jQuery); } </script> '); if(!empty($list)){?> <div id="myCarousel" class="carousel slide"><!-- Carousel items --> <div class="carousel-inner"> <?php $i=0; foreach($list as $item){$i++;?> <div class="<?php if($i==1){echo "active";}?> item slide-<?php echo $i;?>"> <img src="<?php echo modCarouselHelper::html_image($item->images, array('image_intro', 'image_fulltext'), false);?>" alt="<?php echo $item->title;?>" /> <div class="carousel-caption"> <h4><a title="<?php echo $item->title?>" href="<?php echo $item->link?>"><?php echo $item->title;?></a></h4> <div class="carousel-text"> <?php echo $item->displayIntrotext;?> <a class="more" data-control="" title="<?php echo JText::_('COM_CONTENT_FEED_READMORE'); ?>" href="<?php echo $item->link?>"> <?php //echo JText::_('COM_CONTENT_FEED_READMORE'); ?> </a> </div> </div> </div> <?php }?> </div><!-- Carousel nav --> <a class="carousel-control left" href="#myCarousel" data-slide="prev" ><i class="icon-chevron-left"></i><span></span></a> <a class="carousel-control right" href="#myCarousel" data-slide="next" ><i class="icon-chevron-right"></i><span></span></a> </div> <?php }else{ echo JText::_('Has no content to show!');}?>