Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: PHP  |  size: 8.64 KB  |  views: 164  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php get_header();  ?>
  2.  
  3. <body <?php body_class(); ?>>
  4.  
  5. <div id="top"></div>
  6.  
  7. <div class="centering">  
  8.  
  9. <div class="contain">
  10.  
  11. <a href="<?php echo home_url(); ?>/"><img class="left title" title="<?php bloginfo('name'); ?>" src="<?php header_image(); ?>" alt="<?php bloginfo('description');?>" ></a>
  12.  
  13. <div class="bar"><ul>
  14.  
  15. <?php if ( has_nav_menu( 'menu' ) ) :  wp_nav_menu( array( 'theme_location' => 'menu' ) ); else : ?>
  16.  
  17. <?php wp_list_pages( 'title_li=&depth=1' ); ?>
  18.  
  19. <?php endif; ?></ul>
  20.  
  21.  
  22.  
  23. </div>          
  24.  
  25. </div><!--contain-->
  26.  
  27. </div><!--centering-->
  28.  
  29.  
  30.  
  31. <div class="center">
  32.  
  33. <div class="blank"></div>
  34.  
  35. <div class="container">
  36.  
  37. <?php if (is_search()) : ?>
  38.  
  39. <div class="banner">Your search for <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; _e(''); _e('"<span class="search-terms">'); echo $key; _e('</span>"'); _e(' resulted in '); echo $count . ' '; _e('articles found.'); wp_reset_query(); ?></div>
  40.  
  41. <?php while (have_posts()) : the_post(); ?>
  42.  
  43. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  44.  
  45. <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
  46.  
  47. <div class="search">
  48.  
  49. <div class="postimg"><?php the_post_thumbnail('page-thumbnail'); ?></div>
  50.  
  51. <div class="posttitle"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  52.  
  53. <?php if (is_page()) : else :?><div class="theday"> <?php the_time('l, F jS, Y') ?></div><?php endif; ?>
  54.  
  55. <?php the_excerpt(); ?>
  56.  
  57. </div></a></div>
  58.  
  59. <div class="clear" style="border-bottom:3px solid #DDD;margin:0 10px 0 0 ;"></div>
  60.  
  61. <?php endwhile; ?>
  62.  
  63. <div class="next"><div class="left"><?php next_posts_link('&laquo; Older Entries'); ?></div><div class="right nexting"><?php previous_posts_link('Newer Entries &raquo;') ?></div></div>
  64.  
  65. <?php elseif (have_posts() && is_home() || is_404() || is_category() || is_day() || is_month() || is_year() || is_paged() || is_archive()) : ?>
  66.  
  67. <?php $count = 1 ?>
  68.  
  69.  
  70.  
  71. <?php while (have_posts()) : the_post(); ?>
  72.  
  73. <?php if ($count == 1 || $count == 4 || $count == 5  || $count == 8  || $count == 9  || $count == 12  || $count == 13  || $count == 16  || $count == 17  || $count == 20) : ?>
  74.  
  75. <?php if ( has_post_thumbnail()) : ?>
  76.  
  77. <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
  78.  
  79. <div class="bigimage">
  80.  
  81. <div class="overlay"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  82.  
  83. <div class="byte"><?php the_excerpt(); ?></div></div>
  84.  
  85. <div class="dates b"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
  86.  
  87. <?php the_post_thumbnail('big-thumbnail'); ?>
  88.  
  89. </div>
  90.  
  91. </a>
  92.  
  93. <?php else : ?>
  94.  
  95. <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
  96.  
  97. <div class="donthide"><div class="bigimage">
  98.  
  99. <div class="overlay"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  100.  
  101. <div class="byte"><?php the_excerpt(); ?></div></div>
  102.  
  103. <div class="dates b"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
  104.  
  105. </div></div></a>
  106.  
  107. <?php endif; ?>
  108.  
  109. <?php elseif ($count == 2 || $count == 3 || $count == 6 || $count == 7 || $count == 10 || $count == 11 || $count == 14 || $count == 15 || $count == 18 || $count == 19 || $count == 21) : ?>
  110.  
  111. <?php if ( has_post_thumbnail()) : ?>
  112.  
  113. <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
  114.  
  115. <div class="tallimage">
  116.  
  117. <div class="overlay2"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  118.  
  119. <div class="byte"><?php the_excerpt(); ?></div>
  120.  
  121. </div>
  122.  
  123. <div class="dates t"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
  124.  
  125. <?php the_post_thumbnail('tall-thumbnail'); ?>
  126.  
  127. </div>
  128.  
  129. </a>
  130.  
  131. <?php else : ?>
  132.  
  133. <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
  134.  
  135. <div class="donthide"><div class="tallimage">
  136.  
  137. <div class="overlay2"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  138.  
  139. <div class="byte"><?php the_excerpt(); ?></div>
  140.  
  141. </div>
  142.  
  143. <div class="dates t"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
  144.  
  145. </div></div>
  146.  
  147. </a><?php endif; ?>
  148.  
  149. <?php endif; ?>
  150.  
  151. <?php $count++; ?>
  152.  
  153. <?php endwhile; ?>
  154.  
  155. <?php $max_page = $wp_query->max_num_pages; ?>
  156.  
  157. <?php if ( $max_page >=  2 ) : ?>
  158.  
  159. <div class="next"><div class="left"><?php next_posts_link('&laquo; Older Entries'); ?></div><div class="right nexting"><?php previous_posts_link('Newer Entries &raquo;') ?></div></div>
  160.  
  161. <?php endif; ?>
  162.  
  163. <?php if (have_posts() != true) : ?>
  164.  
  165. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  166.  
  167. <div class="reading">
  168.  
  169. <div class="postimg"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/404.png" class="attachment-page-thumbnail wp-post-image" alt="AdventureBound" title="AdventureBound" width="460" height="259"></div>
  170.  
  171. <div class="posttitle">What the Dickens.!?</div>
  172.  
  173. <div class="theday">What? I haven't the foggiest idea but it could be 1950's...</div>
  174.  
  175. <p>Sorry, friend. The page you requested is not in our database. You may have followed a bad external link, or mis-typed a URL. Or you may have finally found the end of the internet hidden within <?php bloginfo('name'); ?>.</p>
  176.  
  177. <p>Stay calm, don't freak out, because I'm detecting a 99.9% chance of <a href="http://en.wikipedia.org/wiki/HTTP_404">404 error</a> which means that this wouldn't be the end of the internet and that you may want to load our <a href="<?php echo home_url(); ?>">home</a> page and then try retracing your steps to find what you&#39;re looking for.</p>
  178.  
  179. </div>
  180.  
  181. <?php endif; ?>
  182.  
  183. <?php elseif (have_posts()) : the_post();?>
  184.  
  185. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  186.  
  187. <div class="reading">
  188.  
  189. <div class="postimg"><?php the_post_thumbnail('page-thumbnail'); ?></div>
  190.  
  191. <div class="posttitle"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
  192.  
  193. <?php if (is_page()) : else :?><div class="theday"> <?php the_time('l, F jS, Y') ?></div><?php endif; ?>
  194.  
  195. <?php the_content(); ?>
  196.  
  197. <?php wp_link_pages(); ?>
  198.  
  199. <?php if ( is_page()) : ?><?php else : ?>
  200.  
  201. <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  202.  
  203. <?php $categories_list = get_the_category_list( __( ', ', 'adventureboundbasic' ) ); if ( $categories_list ):?>
  204.  
  205. <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'adventureboundbasic' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );?>
  206.  
  207. <?php endif; // End if categories ?>
  208.  
  209. <?php the_tags('Tags: ', ', ', '<br />'); ?>
  210.  
  211. <?php endif; // End if 'post' == get_post_type() ?>
  212.  
  213. <?php endif; ?>
  214.  
  215. </div></div>
  216.  
  217. <?php if (is_page()) : else :?><?php $max_page = $wp_query->max_num_pages; ?>
  218.  
  219. <?php if ( $max_page >=  2 ) : ?><div class="next"><div class="left"><?php previous_post_link('%link', 'Previous Post'); ?> </div><div class="right"><?php next_post_link('%link', 'Next Post'); ?> </div></div><?php endif; ?><?php endif; ?>
  220.  
  221. <?php endif; ?><!-- End Have posts -->
  222.  
  223. <?php if ( ! is_active_sidebar('widget1' ) || ! is_active_sidebar('widget2') || ! is_active_sidebar('widget3')) : ?>
  224.  
  225. <div class="widgetcontain">
  226.  
  227. <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget1') ) : ?><?php endif; ?></div>
  228.  
  229. <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget2') ) : ?><?php endif; ?></div>
  230.  
  231. <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget3') ) : ?><?php endif; ?></div>
  232.  
  233. </div><?php else : ?><?php endif; ?>
  234.  
  235. </div></div>
  236.  
  237. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  238.  
  239. <?php else : ?>
  240.  
  241. <?php if ('open' == $post->comment_status) : ?>
  242.  
  243. <?php comments_template(); ?>
  244.  
  245. <?php endif; ?>
  246.  
  247. <?php endif; // End if 'post' == get_post_type() ?>
  248.  
  249. <div class="centering">
  250.  
  251. <div class="footer">
  252.  
  253. <div class="finish">
  254.  
  255. </div>
  256.  
  257. <div class="hiding">
  258.  
  259. <a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?> &copy; <?php echo date('Y'); ?> >></a><a href="<?php bloginfo('rss2_url'); ?>"> RSS FEED >></a><a href="#top" id="anchor1" class="anchorLink"> BACK TO TOP >></a>
  260.  
  261. <?php wp_footer(); ?>
  262.  
  263. </div>
  264.  
  265. </div>
  266.  
  267. </div><!--centering-->
  268.  
  269. </body>
  270.  
  271. </html>