Skip to content

Commit

Permalink
testimonial block interval view.php fix #81
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimtuhin committed Oct 14, 2015
1 parent 57cb294 commit ca64934
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions blocks/testimonials/testimonial-1/view.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<?php
$slide_num = 0;
?>
<?php $slide_num = 0; ?>

<section id="<?php echo $id; ?>" class="op-section testimonials testimonial-1">
<?php if( $contents['title'] ): ?>
<h2 class="section-title text-center <?php echo $settings['title_transformation']?>"><?php echo $contents['title']?></h2>
<?php endif; ?>

<div id="slide-<?php echo $id ?>" class="carousel slide" data-ride="carousel">
<div id="slide-<?php echo $id ?>" data-interval=<?php echo (int) $settings['interval'] * 1000; ?> class="carousel slide" data-ride="carousel">

<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">

<?php foreach($contents['testimonials'] as $item): ?>
<div data-interval=<?php echo (int) $settings['interval'] * 1000; ?> class="item text-center <?php echo ($slide_num === 0) ? 'active' : ''?>">
<div class="item text-center <?php echo ($slide_num === 0) ? 'active' : ''?>">
<?php if($item['image']):?>
<figure>
<img src="<?php echo $item['image']?>" alt="<?php echo $item['name']?>">
Expand Down

0 comments on commit ca64934

Please sign in to comment.