trAvis - MANAGER
Edit File: template-full-width-slideshow.php
<?php /* Template Name: Full width slideshow */ get_header(); if(have_posts()){ the_post(); $autoplay=get_opt('_full_autoplay')=='on'?'true':'false'; $interval=get_opt('_full_interval'); $pauseInterval=get_opt('_full_pause'); $hideNav=get_opt('_full_hide')=='on'?'true':'false'; ?> <script type="text/javascript"> jQuery(document).ready(function($){ $('#full-width-slider').pexetoSlideshow({thumbContainerId:'slider-navigation', autoplay:<?php echo($autoplay); ?>, interval:<?php echo($interval);?>, pauseInterval:<?php echo($pauseInterval);?>, hideContent:<?php echo($hideNav);?>, hideText:"<?php echo(pex_text('_hide_menu_text')); ?>", showText:"<?php echo(pex_text('_show_menu_text')); ?>"}); }); </script> <div id="full-width-slider" class="center loading"> <div id="slider" class="slider-frame"> <div id="slider-img-wrapper"> <div class="loading"></div> <?php $attachments = pexeto_get_post_images($post); foreach ( $attachments as $attachment ) { $img_src = wp_get_attachment_image_src($attachment->ID, 'full');?> <img src="<?php echo $img_src[0]; ?>" /> <?php } ?> </div> </div> </div> <?php if(get_opt('_bg_top_pattern')!='off'){?> <div class="bg-image-pattern"></div> <?php } $count=sizeof($attachments); $nav_class=$count<=4?'no-arrows':'with-arrows'; ?> <div id="slider-navigation-container" class="center <?php echo $nav_class; ?>"> <div id="slider-navigation-wrapper" class="relative"> <div id="slider-navigation" > <div class="items"> <?php $closed=true; $key=0; foreach($attachments as $attachment){ $img_src = wp_get_attachment_image_src($attachment->ID, 'full'); $imgurl=$img_src[0]; if($key%4==0){ echo('<div>'); $closed=false; } if(get_opt('_full_auto_resize')=='on'){ $path=pexeto_get_resized_image($imgurl, 50, 40); }else{ $path=$imgurl; } echo('<div class="thumbnail-wrapper"><img src="'.$path.'" alt="" /></div>'); if(($key+1)%4==0){ echo('</div>'); $closed=true; } $key++; } if(!$closed){ echo('</div>'); } ?> </div> </div> </div> </div> <?php } get_footer(); ?>