Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $options;
- foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
- }
- $dateformat = get_option('date_format');
- $timeformat = get_option('time_format');
- ?>
- <?php get_header(); ?>
- <!-- Start AdServer Code -->
- <div class="leaderboard">
- <div id='div-gpt-ad-1344156443339-0' style='width:728px; height:90px; float:left; margin:0 8px 0 10px;'>
- <script type='text/javascript'>
- googletag.cmd.push(function() { googletag.display('div-gpt-ad-1344156443339-0'); });
- </script>
- </div>
- <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>
- </div>
- <!-- End AdServer Code -->
- <?php get_sidebar(); ?>
- <div id="content">
- <div class="archive">
- <h3><?php _e('Search Results for:', 'wpzoom'); ?> <strong>"<?php the_search_query(); ?>"</strong></h3>
- <?php if (have_posts()) : ?>
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post">
- <?php if ($wpzoom_archive_thumb == 'Show') { ?>
- <?php unset($img);
- if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
- $thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
- $img = $thumbURL[0]; }
- else {
- unset($img);
- if ($wpzoom_cf_use == 'Yes') { $img = get_post_meta($post->ID, $wpzoom_cf_photo, true); }
- else {
- if (!$img) { $img = catch_that_image($post->ID); } }
- }
- if ($img) { $img = wpzoom_wpmu($img); ?>
- <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 ?>&w=<?php echo "$wpzoom_archive_thumb_width";?>&h=<?php echo "$wpzoom_archive_thumb_height";?>&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 } ?>
- <?php } ?>
- <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>
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?php wpe_excerpt('excerpt_archive', 'wpe_excerptmore'); ?>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
- <div class="floatleft"><?php next_posts_link( __('← Older Entries', 'wpzoom') ); ?></div>
- <div class="floatright"><?php previous_posts_link( __('Newer Entries →', 'wpzoom') ); ?></div>
- <?php } ?>
- </div>
- <?php else : ?>
- <div class="post">
- <div class="entry">
- <h2><?php _e('No results', 'wpzoom'); ?></h2>
- <?php include (TEMPLATEPATH . '/searchform.php'); ?>
- </div>
- </div>
- <?php endif; ?>
- </div> <!-- /.archive -->
- </div> <!-- /#content -->
- <?php wp_reset_query(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement