Advertisement
neemmss

page

Dec 31st, 2011
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!-- page1 -->
  4. <div id="page1">
  5.  
  6. <!-- IF WHILE LOOP -->
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8.  
  9. <!-- COUNT -->
  10. <?php $count++; if($count==5){ $var='style="margin-right:0 !important"'; $count=0; } else { $var=""; } ?>
  11.  
  12. <!-- BEGIN resize image variables -->
  13. <?php $thumb = get_post_thumbnail_id(); $image = vt_resize( $thumb,'' , 800, 400, true ); ?>
  14. <?php $fullthumb = get_post_thumbnail_id(); ?>
  15. <?php $video = get_post_meta($post->ID, 'siiimple_video', true); ?>
  16. <?php $fullimg = vt_resize( $fullthumb, '', 600, true); ?>
  17.  
  18. <!-- G640 CONTENT -->
  19. <div class="g640" id="content">
  20.  
  21. <?php if ($video) { ?>
  22.  
  23. <iframe src="<?php echo get_post_meta($post->ID, "siiimple_video", $single = true); ?>" width="800" height="400" frameborder="0"></iframe>
  24.  
  25. <!-- CLEAR -->
  26. <div class="clear"></div>
  27.  
  28. <!-- CONTENT BOTTOM -->
  29. <div class="content-bottom">
  30.  
  31. <!-- HOME-LOOP -->
  32. <div id="single-loop">
  33.  
  34. <!-- VIDEO -->
  35. <h1 id="video"><?php the_title(); ?></h1>
  36.  
  37. <!-- CLEAR -->
  38. <div class="clear"></div>
  39.  
  40. <!-- CONTENT -->
  41. <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
  42.  
  43. <!-- CLEAR -->
  44. <div class="clear"></div>
  45.  
  46. <!-- TAGS -->
  47. <?php the_tags( '<p class="tags">Tags: ', '&nbsp;', '</p>'); ?>
  48.  
  49. <!-- END SINGLE LOOP -->
  50. </div>
  51.  
  52. <?php } else { ?>
  53.  
  54. <!-- IMAGE -->
  55. <img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="image"/>
  56.  
  57. <h1 class="page-slide"><span><?php the_title(); ?></span></h1>
  58.  
  59. <!-- CLEAR -->
  60. <div class="clear"></div>
  61.  
  62. <!-- CONTENT BOTTOM -->
  63. <div class="content-bottom">
  64.  
  65. <!-- SINGLE LOOP -->
  66. <div id="single-loop">
  67.  
  68. <!-- CONTENT -->
  69. <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
  70.  
  71. <!-- CLEAR -->
  72. <div class="clear"></div>
  73.  
  74. <!-- TAGS -->
  75. <?php the_tags( '<p class="tags">Tags: ', '&nbsp;', '</p>'); ?>
  76.  
  77. <!-- END SINGLE LOOP -->
  78. </div>
  79.  
  80. <?php } ?>
  81.  
  82. <!-- CLEAR -->
  83. <div class="clear"></div>
  84.  
  85. <!-- END CONTENT BOTTOM -->
  86. </div>
  87.  
  88. <!-- END WHILE -->
  89. <?php endwhile; else: ?>
  90.  
  91. <!-- ERROR MESSAGE -->
  92. <p>Sorry, no posts matched your criteria.</p>
  93.  
  94. <!-- END IF -->
  95. <?php endif; ?>
  96.  
  97. <!-- END G640 CONTENT -->
  98. </div>
  99.  
  100. <!-- END -->
  101. </div>
  102.  
  103. <!-- END -->
  104. </div>
  105.  
  106. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement