Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- page1 -->
- <div id="page1">
- <!-- IF WHILE LOOP -->
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <!-- COUNT -->
- <?php $count++; if($count==5){ $var='style="margin-right:0 !important"'; $count=0; } else { $var=""; } ?>
- <!-- BEGIN resize image variables -->
- <?php $thumb = get_post_thumbnail_id(); $image = vt_resize( $thumb,'' , 800, 400, true ); ?>
- <?php $fullthumb = get_post_thumbnail_id(); ?>
- <?php $video = get_post_meta($post->ID, 'siiimple_video', true); ?>
- <?php $fullimg = vt_resize( $fullthumb, '', 600, true); ?>
- <!-- G640 CONTENT -->
- <div class="g640" id="content">
- <?php if ($video) { ?>
- <iframe src="<?php echo get_post_meta($post->ID, "siiimple_video", $single = true); ?>" width="800" height="400" frameborder="0"></iframe>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- CONTENT BOTTOM -->
- <div class="content-bottom">
- <!-- HOME-LOOP -->
- <div id="single-loop">
- <!-- VIDEO -->
- <h1 id="video"><?php the_title(); ?></h1>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- CONTENT -->
- <?php the_content('<p>Read the rest of this entry »</p>'); ?>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- TAGS -->
- <?php the_tags( '<p class="tags">Tags: ', ' ', '</p>'); ?>
- <!-- END SINGLE LOOP -->
- </div>
- <?php } else { ?>
- <!-- IMAGE -->
- <img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="image"/>
- <h1 class="page-slide"><span><?php the_title(); ?></span></h1>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- CONTENT BOTTOM -->
- <div class="content-bottom">
- <!-- SINGLE LOOP -->
- <div id="single-loop">
- <!-- CONTENT -->
- <?php the_content('<p>Read the rest of this entry »</p>'); ?>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- TAGS -->
- <?php the_tags( '<p class="tags">Tags: ', ' ', '</p>'); ?>
- <!-- END SINGLE LOOP -->
- </div>
- <?php } ?>
- <!-- CLEAR -->
- <div class="clear"></div>
- <!-- END CONTENT BOTTOM -->
- </div>
- <!-- END WHILE -->
- <?php endwhile; else: ?>
- <!-- ERROR MESSAGE -->
- <p>Sorry, no posts matched your criteria.</p>
- <!-- END IF -->
- <?php endif; ?>
- <!-- END G640 CONTENT -->
- </div>
- <!-- END -->
- </div>
- <!-- END -->
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement