Mikeytrooper

On Demand Index.php

Apr 3rd, 2011
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4. <div id="content-inside">
  5. <div id="post-container">
  6. <div id="posts">
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8.  
  9. <div id="post-<?php the_ID(); ?>" <?php post_class('gallery-item') ?>>
  10. <?php if (get_post_meta($post->ID, "_videoembed", true) || get_post_meta($post->ID, "_videoembed_manual", true)): ?>
  11. <div class="post-thumbnail">
  12. <a class="thumbnail-frame-video<?php if (get_option(THEME_PREFIX . "instant_view")){echo ' inline';}?>" href="<?php if (get_option(THEME_PREFIX . "instant_view")) : ?>#video-<?php the_ID(); ?><?php else : ?><?php the_permalink() ?><?php endif; ?>" title="<?php the_title_attribute(); ?>"><!-- nothing to see here --></a>
  13. <?php the_post_thumbnail(); ?>
  14. </div>
  15.  
  16. <div class="instant">
  17. <div id="video-<?php the_ID(); ?>" class="instant-view">
  18. <?php echo get_video($post->ID); ?>
  19. </div>
  20. </div>
  21. <?php else : ?>
  22. <div class="post-thumbnail">
  23. <a class="thumbnail-frame" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><!-- nothing to see here --></a>
  24. <?php the_post_thumbnail(); ?>
  25. </div>
  26. <?php endif; ?>
  27.  
  28. <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  29.  
  30. <ul class="post-meta">
  31. <li class="date">Posted on <?php the_time('m.j.y'); ?></li>
  32. <li class="categories"><?php the_category(', ') ?></li>
  33. <li class="comments"><a href="<?php the_permalink() ?>#comments" title="<?php the_title_attribute(); ?>"><?php comments_number('0 Comments','1 Comment','% Comments'); ?></a></li>
  34. </ul>
  35. </div> <!-- gallery-item -->
  36.  
  37. <?php endwhile; else : ?>
  38.  
  39. <div id="nothing-here" class="post-item">
  40. <div class="post-details">
  41. <h2>Whoops!!! Nothing Here by That Name</h2>
  42. </div>
  43.  
  44. <div class="post-content">
  45. <p>Very sorry, but what you are looking for isn't here. Maybe you should try one of the links below.</p>
  46.  
  47. <h4 class="not-here">Find Posts by Title:</h4>
  48. <ul>
  49. <?php query_posts('&showposts=1000&orderby=title&order=asc'); if (have_posts()) : while (have_posts()) : the_post(); ?>
  50. <li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
  51. <?php endwhile; endif; ?>
  52. </ul>
  53.  
  54. <h4 class="not-here">Find Posts by Month:</h4>
  55. <ul>
  56. <?php wp_get_archives('type=monthly'); ?>
  57. </ul>
  58.  
  59. <h4 class="not-here">Find Posts by Category:</h4>
  60. <ul>
  61. <?php wp_list_categories('title_li='); ?>
  62. </ul>
  63.  
  64. <h4 class="not-here">Maybe a Page:</h4>
  65. <ul>
  66. <?php wp_list_pages('title_li='); ?>
  67. </ul>
  68. </div>
  69. </div> <!-- post-item -->
  70.  
  71. <?php endif; ?>
  72. </div> <!-- post -->
  73.  
  74. <?php get_sidebar(); ?>
  75. </div> <!-- post-container -->
  76. </div> <!-- content-inside -->
  77. </div> <!-- content -->
  78.  
  79. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment