patricia-lutz.com /patricialutz-custom/index.php

Language PHP Lines 63
MD5 Hash 555482cd14f47b97e30e4ce4cdc16db2
Repository https://github.com/misfist/patricia-lutz.com.git View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
 * @package WordPress
 * @subpackage Chunk
 */

get_header(); ?>

	<?php if ( is_archive() ) : ?>
	<div class="page-title">
		<h2>
		<?php if ( is_day() ) : ?>
			<?php printf( __( 'Posted on %s &hellip;', 'chunk' ), '<span>' . get_the_date() . '</span>' ); ?>
		<?php elseif ( is_month() ) : ?>
			<?php printf( __( 'Posted in %s &hellip;', 'chunk' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
		<?php elseif ( is_year() ) : ?>
			<?php printf( __( 'Posted in %s &hellip;', 'chunk' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
		<?php elseif( is_author() ) : ?>
			<?php printf( __( 'Posted by %s &hellip;', 'chunk' ), '<span>' . get_the_author() . '</span>' ); ?>
		<?php elseif ( is_category() ) : ?>
			<?php printf( __( '%s', 'chunk' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>
		<?php elseif ( is_tag() ) : ?>
			<?php printf( __( '%s', 'chunk' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
		<?php endif; ?>
		</h2>
	</div>
	<?php endif; ?>
	<?php if ( is_search() ) : ?>
	<div class="page-title">
		<h2>
			<?php printf( __( 'Matches for: &ldquo;%s&rdquo; &hellip;', 'chunk' ), '<span>' . get_search_query() . '</span>' ); ?>
		</h2>
	</div>
	<?php endif; ?>

	<div id="contents">
		<?php if ( have_posts() ) : ?>
			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', get_post_format() ); ?>

			<?php endwhile; ?>
		<?php else : ?>

		<div class="hentry error404">
			<div class="postbody text">
				<h1><?php _e( 'Nothing Found', 'chunk' ); ?></h1>
				<div class="content">
					<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'chunk' ); ?></p>
					<?php get_search_form(); ?>
				</div><!-- .content -->
			</div><!-- .postbody -->
		</div>

		<?php endif; ?>
	</div><!-- #contents -->

	<div class="navigation">
		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'chunk' ) ); ?></div>
		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'chunk' ) ); ?></div>
	</div>

<?php get_footer(); ?>
Back to Top