Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 92 lines (78 sloc) 3.016 kB
236452f @bueltge first checkin
authored
1 <?php
2 /**
3 * @package WordPress
4 * @subpackage Documentation
5 */
6
7 get_header();
8
9 if ( have_posts() ) :
10
41409d0 @bueltge add mor infos to readme
authored
11 tha_content_top();
12
236452f @bueltge first checkin
authored
13 /* If this is a category archive */ if ( is_category() ) { ?>
14 <h2><?php _e('Archive for categorie', 'documentation'); ?> &bdquo;<?php echo single_cat_title(); ?>&ldquo;</h2>
15 <?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
16 <h2><?php _e('Daily archive', 'documentation'); ?> <?php the_time('F jS, Y'); ?></h2>
17 <?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
18 <h2><?php _e('Monthly archive', 'documentation'); ?> <?php the_time('F, Y'); ?></h2>
19 <?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
20 <h2><?php _e('Years of archive', 'documentation'); ?> <?php the_time('Y'); ?></h2>
21 <?php /* If this is a search */ } elseif ( is_search() ) { ?>
22 <h2><?php _e('Search results', 'documentation'); ?></h2>
23 <?php /* If this is an author archive */ } elseif ( is_author() ) { ?>
24 <h2><?php _e('Author archive', 'documentation'); ?></h2>
25 <?php /* If this is a paged archive */ } elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) { ?>
26 <h2><?php _e('Archive', 'documentation'); ?></h2>
27 <?php }
28
29 while ( have_posts() ) :
30 the_post();
31 ?>
32
33 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
34 <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
0037ab5 @bueltge update different parts
authored
35
236452f @bueltge first checkin
authored
36 <div class="story">
37 <?php
38 if ( is_search() ) {
39 the_content( __( '... more &raquo;', 'documentation' ) , TRUE, the_title( ' ', '', FALSE ) ); ?>
40 <p class="textright">
41 <a href="<?php the_permalink() ?>" rel="bookmark"><?php _e('... more &raquo;', 'documentation'); ?></a>
42 </p>
43 <p class="info">
44 <?php
45 printf(
46 __( 'Category: %s, write at %s by %s', 'documentation' ),
0037ab5 @bueltge update different parts
authored
47 get_the_category_list( ', ' ),
236452f @bueltge first checkin
authored
48 get_the_date(),
49 get_the_author()
50 );
51 edit_post_link( __( 'Edit', 'documentation' ), ' | ', '' ); ?>
52 </p>
53 <?php
54 } elseif ( is_archive() ) {
55 the_content( __( '... more &raquo;', 'documentation' ) , TRUE, the_title( ' ', '', FALSE ) ); ?>
56 <p class="textright"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e( '... more &raquo;', 'documentation'); ?></a></p>
57 <p class="info">
58 <?php
59 printf(
60 __( 'Category: %s, write at %s by %s', 'documentation' ),
0037ab5 @bueltge update different parts
authored
61 get_the_category_list( ', ' ),
236452f @bueltge first checkin
authored
62 get_the_date(),
63 get_the_author()
64 );
65 edit_post_link( __( 'Edit', 'documentation' ), ' | ', '' ); ?>
66 </p>
67 <?php
68 } else {
69 the_content( __( '... more &raquo;', 'documentation' ) . the_title( ' ', '', FALSE ) );
70 wp_link_pages();
71 } ?>
72 </div>
73
74 </div>
75
76 <?php
77 endwhile;
78 else:
79
80 /**
81 * Include the template for the loop dosn't find and result
82 * If you will overwrite this in in a child theme the include a file
83 * called no-results-single.php and that will be used instead.
84 */
85 get_template_part( 'parts/no-results', 'home' );
41409d0 @bueltge add mor infos to readme
authored
86
87 tha_content_bottom();
88
236452f @bueltge first checkin
authored
89 endif;
90
91 get_footer();
Something went wrong with that request. Please try again.