trAvis - MANAGER
Edit File: template-full-height-slideshow.php
<?php /* Template Name: Full height slideshow */ get_header(); if(have_posts()){ the_post(); $autoplay=get_opt('_fullh_autoplay')=='on'?'true':'false'; $interval=get_opt('_fullh_interval')?get_opt('_fullh_interval'):4000; $pauseInterval=get_opt('_fullh_pause')?get_opt('_fullh_pause'):4000; $hideNav=get_opt('_fullh_hide')=='on'?'true':'false'; ?> <script type="text/javascript"> jQuery(document).ready(function($){ $('#full-height-slider').pexetoSlideshow({fullWidth:false, 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-height-slider" class="center loading"> <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'); ?> <div class="img-wrapper"><img src="<?php echo $img_src[0]; ?>" /></div> <?php } ?> </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('_fullh_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(); ?>