</div> <div class='row'> <div class='large-12 small-12 columns'> <span id='advanced-search-switch' data-open_text='<?php echo bs_get_post_meta('_est_advanced_search_text_open', 'less options'); ?> ' data-closed_text='<?php echo bs_get_post_meta('_est_advanced_search_text', 'more options'); ?> '> <?php echo bs_get_post_meta('_est_advanced_search_text', 'more options'); ?> </span> </div> </div> </form> </div> <?php } ?> </div> <script type="text/javascript" src='<?php echo get_template_directory_uri();
$image = wp_get_attachment_image_src($attachment->ID, 'full'); $images[] = $image[0]; } } else { $image_ids = explode(',', $image_ids); $image_ids = array_map('trim', $image_ids); foreach ($image_ids as $image_id) { $image = wp_get_attachment_image_src($image_id, 'full'); $images[] = $image[0]; } } $imageCount = count($images); $background_type = get_post_meta($post->ID, '_est_search_background_type', true); if ($imageCount > 0 and $background_type != 'pageload') { // Slideshow Setup $timer = bs_get_post_meta('_est_slideshow_speed', 12); $totalTime = $timer * $imageCount; $crossfade = 500; $totalTimeMs = $totalTime * 1000; $stop_1 = round($crossfade / $totalTimeMs * 100); $stop_2 = round($totalTimeMs / $imageCount / $totalTimeMs * 100); $stop_3 = $stop_2 + $stop_1; // CSS Animation ?> <style type='text/css'> /* Animation for the slideshow images */ @-webkit-keyframes imageAnimation { 0% { opacity: 0; } <?php echo $stop_1; ?>