Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ... ... ...
- </head>
- <body>
- ... ... ...
- <div class="entries">
- <h3 style="text-transform: uppercase;"><?php the_search_query(); ?> :</h3>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <h3 id="post-<?php the_ID(); ?>" <?php post_class(); ?>><a href="<?php echo get_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('Edit',' | ',''); ?></h3>
- <div class="clear"></div>
- <div class="postmetadata">
- <span class="date">Post created on <?php the_time('j F Y') ?></span>
- <span class="date">Post updated on <?php the_modified_date(); ?></span>
- <span class="comment"><?php comments_popup_link('No comment »','1 comment »','% comments »'); ?></span>
- </div>
- <div class="entry">
- <?php if (has_post_thumbnail()) {
- echo '<div class="attachment-thumbnail">';
- the_post_thumbnail('post-thumb', array('title' => trim(strip_tags( $attachment->post_title ))));
- echo '</div>';
- the_excerpt('Read more »');
- }
- else
- {
- the_content('Read more »');
- }
- ?>
- </div>
- <div class="clear"></div>
- <div class="postmetadata">
- <span class="category">Catégories: <?php the_category(',', '' ); ?></span>
- <span class="tag"><?php the_tags('Tags: ', ', ', ''); ?></span>
- </div>
- <?php endwhile; ?>
- <?php else : ?>
- <h3>No page found !</h3>
- <div class="entry">
- <p title="Do your search here">Sorry, but you are looking for something that is not here.</p>
- </div>
- <?php endif; ?>
- </div>
- ... ... ...
- <?php get_footer(); ?>
- ... ... ...
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement