Skip to content

Commit a6e7ac3

Browse files
committed
IMPORT jquery/archive.php.
1 parent d6f1ca2 commit a6e7ac3

File tree

2 files changed

+44
-115
lines changed

2 files changed

+44
-115
lines changed

jquery.com/archive.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

jquery/archive.php

Lines changed: 44 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,44 @@
1-
<?php
2-
/**
3-
* The template for displaying Archive pages.
4-
*
5-
* Used to display archive-type pages if nothing more specific matches a query.
6-
* For example, puts together date-based pages if no date.php file exists.
7-
*
8-
* Learn more: http://codex.wordpress.org/Template_Hierarchy
9-
*/
10-
11-
get_header(); ?>
12-
13-
<section id="body" class="clearfix content-right">
14-
<div class="inner" role="main">
15-
16-
<?php if ( have_posts() ) : ?>
17-
18-
<header class="page-header">
19-
<h1 class="page-title">
20-
<?php if ( is_day() ) : ?>
21-
<?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
22-
<?php elseif ( is_month() ) : ?>
23-
<?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
24-
<?php elseif ( is_year() ) : ?>
25-
<?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
26-
<?php else : ?>
27-
<?php _e( 'Blog Archives', 'twentyeleven' ); ?>
28-
<?php endif; ?>
29-
</h1>
30-
</header>
31-
32-
<?php twentyeleven_content_nav( 'nav-above' ); ?>
33-
34-
<?php /* Start the Loop */ ?>
35-
<?php while ( have_posts() ) : the_post(); ?>
36-
37-
<?php
38-
get_template_part( 'content' );
39-
?>
40-
41-
<?php endwhile; ?>
42-
43-
<?php twentyeleven_content_nav( 'nav-below' ); ?>
44-
45-
<?php else : ?>
46-
47-
<article id="post-0" class="post no-results not-found">
48-
<header class="entry-header">
49-
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
50-
</header><!-- .entry-header -->
51-
52-
<div class="entry-content">
53-
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
54-
</div><!-- .entry-content -->
55-
</article><!-- #post-0 -->
56-
57-
<?php endif; ?>
58-
59-
</div><!-- .inner -->
60-
61-
<?php get_sidebar(); ?>
62-
63-
</section><!-- #body -->
64-
65-
<?php get_footer(); ?>
1+
<?php get_header(); ?>
2+
3+
<div class="content-right twelve columns">
4+
<div id="content">
5+
6+
<?php if ( have_posts() ) : ?>
7+
<header class="page-header">
8+
<h1 class="page-title">
9+
<?php if ( is_day() ) : ?>
10+
<?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
11+
<?php elseif ( is_month() ) : ?>
12+
<?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
13+
<?php elseif ( is_year() ) : ?>
14+
<?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
15+
<?php else : ?>
16+
<?php _e( 'Blog Archives', 'twentyeleven' ); ?>
17+
<?php endif; ?>
18+
</h1>
19+
<hr class="dots">
20+
</header>
21+
22+
<?php
23+
while ( have_posts() ) : the_post();
24+
get_template_part( 'content' );
25+
endwhile;
26+
?>
27+
28+
<?php twentyeleven_content_nav( 'nav-below' ); ?>
29+
<?php else : ?>
30+
<article id="post-0" class="post no-results not-found">
31+
<header class="entry-header">
32+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
33+
</header>
34+
35+
<div class="entry-content">
36+
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
37+
</div>
38+
</article>
39+
<?php endif; ?>
40+
</div>
41+
<?php get_sidebar(); ?>
42+
</div>
43+
44+
<?php get_footer(); ?>

0 commit comments

Comments
 (0)