Weefz

Untitled

Sep 5th, 2012
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. global $options;
  3. foreach ($options as $value) {
  4. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  5. }
  6. $dateformat = get_option('date_format');
  7. $timeformat = get_option('time_format');
  8. ?>
  9.  
  10. <?php get_header(); ?>
  11. <!-- Start AdServer Code -->
  12. <div class="leaderboard">
  13. <div id='div-gpt-ad-1344156443339-0' style='width:728px; height:90px; float:left; margin:0 8px 0 10px;'>
  14. <script type='text/javascript'>
  15. googletag.cmd.push(function() { googletag.display('div-gpt-ad-1344156443339-0'); });
  16. </script>
  17. </div>
  18. <a href="http://www.theaveragegamer.com/tag/gamescom-2012/"><img src="http://www.theaveragegamer.com/wp-content/uploads/2012/08/gamescom-logo-220.jpg" style="padding:0;margin:0 2px 0 0;border:1px gray solid;" \></a>
  19. </div>
  20. <!-- End AdServer Code -->
  21. <?php get_sidebar(); ?>
  22.  
  23. <div id="content">
  24. <div class="archive">
  25.  
  26. <h3><?php _e('Search Results for:', 'wpzoom'); ?> <strong>"<?php the_search_query(); ?>"</strong></h3>
  27. <?php if (have_posts()) : ?>
  28.  
  29. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  30.  
  31. <?php while (have_posts()) : the_post(); ?>
  32.  
  33. <div class="post">
  34.  
  35. <?php if ($wpzoom_archive_thumb == 'Show') { ?>
  36. <?php unset($img);
  37. if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
  38. $thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
  39. $img = $thumbURL[0]; }
  40. else {
  41. unset($img);
  42. if ($wpzoom_cf_use == 'Yes') { $img = get_post_meta($post->ID, $wpzoom_cf_photo, true); }
  43. else {
  44. if (!$img) { $img = catch_that_image($post->ID); } }
  45. }
  46. if ($img) { $img = wpzoom_wpmu($img); ?>
  47. <div class="thumb"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;w=<?php echo "$wpzoom_archive_thumb_width";?>&amp;h=<?php echo "$wpzoom_archive_thumb_height";?>&amp;zc=1" alt="<?php the_title(); ?>" /></a><?php if ($wpzoom_archive_comm == 'Show') { ?><span class="bubble"><?php comments_popup_link('0', '1', '%', ' ', ' '); ?></span><?php } ?></div><?php } ?>
  48. <?php } ?>
  49.  
  50. <span class="meta"><?php if ($wpzoom_archive_auth == 'Show') { ?><?php the_author_posts_link(); ?><?php } ?> <?php if ($wpzoom_archive_date == 'Show') { ?>/ <?php the_time("$dateformat $timeformat"); ?><?php } ?> <?php edit_post_link( __('Edit', 'wpzoom'), ' ', ''); ?></span>
  51. <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  52.  
  53. <?php wpe_excerpt('excerpt_archive', 'wpe_excerptmore'); ?>
  54. </div>
  55.  
  56. <?php endwhile; ?>
  57.  
  58. <div class="navigation">
  59. <?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
  60. <div class="floatleft"><?php next_posts_link( __('&larr; Older Entries', 'wpzoom') ); ?></div>
  61. <div class="floatright"><?php previous_posts_link( __('Newer Entries &rarr;', 'wpzoom') ); ?></div>
  62. <?php } ?>
  63. </div>
  64.  
  65. <?php else : ?>
  66. <div class="post">
  67. <div class="entry">
  68. <h2><?php _e('No results', 'wpzoom'); ?></h2>
  69.  
  70. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  71. </div>
  72. </div>
  73.  
  74. <?php endif; ?>
  75. </div> <!-- /.archive -->
  76. </div> <!-- /#content -->
  77. <?php wp_reset_query(); ?>
  78. <?php get_footer(); ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×