web/wp-content/themes/default/search.php
branchwordpress
changeset 109 03b0d1493584
child 132 4d4862461b8d
equal deleted inserted replaced
-1:000000000000 109:03b0d1493584
       
     1 <?php
       
     2 /**
       
     3  * @package WordPress
       
     4  * @subpackage Default_Theme
       
     5  */
       
     6 
       
     7 get_header(); ?>
       
     8 
       
     9 	<div id="content" class="narrowcolumn" role="main">
       
    10 
       
    11 	<?php if (have_posts()) : ?>
       
    12 
       
    13 		<h2 class="pagetitle"><?php _e('Search Results', 'kubrick'); ?></h2>
       
    14 
       
    15 		<div class="navigation">
       
    16 			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
       
    17 			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
       
    18 		</div>
       
    19 
       
    20 
       
    21 		<?php while (have_posts()) : the_post(); ?>
       
    22 
       
    23 			<div <?php post_class(); ?>>
       
    24 				<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
       
    25 				<small><?php the_time('l, F jS, Y') ?></small>
       
    26 
       
    27 				<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
       
    28 			</div>
       
    29 
       
    30 		<?php endwhile; ?>
       
    31 
       
    32 		<div class="navigation">
       
    33 			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
       
    34 			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
       
    35 		</div>
       
    36 
       
    37 	<?php else : ?>
       
    38 
       
    39 		<h2 class="center"><?php _e('No posts found. Try a different search?', 'kubrick'); ?></h2>
       
    40 		<?php get_search_form(); ?>
       
    41 
       
    42 	<?php endif; ?>
       
    43 
       
    44 	</div>
       
    45 
       
    46 <?php get_sidebar(); ?>
       
    47 
       
    48 <?php get_footer(); ?>