Beispiel #1
0
            echo "active";
        }
        ?>
 item">
	    		<?php 
        $img = SjCarouselHelper::getAImage($item, $params);
        echo SjCarouselHelper::imageTag($img);
        ?>
		    
	    		<div class="carousel-caption">
		    		<h4>
			    		<a href="<?php 
        echo $item->link;
        ?>
" <?php 
        echo SjCarouselHelper::parseTarget($options->item_link_target);
        ?>
>
			    			<?php 
        echo $item->title;
        ?>
			    		</a>
		    		</h4>
		    		<p><?php 
        echo $item->displayIntrotext;
        ?>
</p>
	    		</div>
		    </div>
	    <?php 
    }
Beispiel #2
0
    <div id="myCarousel" class="carousel slide"><!-- Carousel items -->
		<ol class="carousel-indicators">
			<?php for( $j= 0; $j<$count; $j++){?>
				<li data-target="#myCarousel" data-slide-to="<?php echo $j;?>" class="<?php if($j == 0){echo "active";}?>"></li>
			<?php }?>
		</ol>   
	    <div class="carousel-inner">
	    <?php $i=0; foreach($list as $item){$i++;?>
		    <div class="<?php if($i==1){echo "active";}?> item">
	    		<?php $img = SjCarouselHelper::getAImage($item, $params);
    				echo SjCarouselHelper::imageTag($img);?>
    			<?php if( $options->item_title_display == 1 || $options->show_introtext == 1 ){?>		    
	    		<div class="carousel-caption">
	    		<?php if( $options->item_title_display == 1 ){?>
		    		<h4>
			    		<a href="<?php echo $item->link ?>" <?php echo SjCarouselHelper::parseTarget($options->item_link_target);?>>
			    			<?php echo $item->title;?>
			    		</a>
		    		</h4>
	    		<?php }if( $options->show_introtext == 1 ){?>
		    		<p><?php echo $item->displayIntrotext;?></p>
	    		<?php }?>
	    		</div>
	    		<?php }?>
		    </div>
	    <?php }?>
	    </div><!-- Carousel nav -->
	    <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
	    <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div>
	<?php if(!empty($options->posttext)) {  ?>