Skip to content

Commit 5a6c4fd

Browse files
committed
Added blog.css and implemented templates.
1 parent 9540c01 commit 5a6c4fd

File tree

7 files changed

+482
-0
lines changed

7 files changed

+482
-0
lines changed

jquery.com/archive.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php get_header(); ?>
2+
<div class="content-right twelve columns listing">
3+
<div id="content">
4+
5+
<?php if ( have_posts() ) : ?>
6+
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+
30+
<?php else : ?>
31+
32+
<article id="post-0" class="post no-results not-found">
33+
<header class="entry-header">
34+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
35+
</header><!-- .entry-header -->
36+
37+
<div class="entry-content">
38+
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
39+
</div><!-- .entry-content -->
40+
</article><!-- #post-0 -->
41+
42+
<?php endif; ?>
43+
44+
</div><!-- .inner -->
45+
46+
<?php get_sidebar(); ?>
47+
48+
</div>
49+
50+
<?php get_footer(); ?>

jquery.com/category.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php get_header(); ?>
2+
<div class="content-right twelve columns listing">
3+
<div id="content">
4+
5+
<?php if ( have_posts() ) : ?>
6+
7+
<header class="page-header">
8+
<h1 class="page-title"><?php
9+
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
10+
?></h1>
11+
12+
<?php
13+
$category_description = category_description();
14+
if ( ! empty( $category_description ) )
15+
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
16+
?>
17+
18+
<hr class="dots">
19+
</header>
20+
21+
<?php
22+
while ( have_posts() ) : the_post();
23+
get_template_part( 'content' );
24+
endwhile;
25+
?>
26+
27+
<?php twentyeleven_content_nav( 'nav-below' ); ?>
28+
29+
<?php else : ?>
30+
31+
<article id="post-0" class="post no-results not-found">
32+
<header class="entry-header">
33+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
34+
</header><!-- .entry-header -->
35+
36+
<div class="entry-content">
37+
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
38+
</div><!-- .entry-content -->
39+
</article><!-- #post-0 -->
40+
41+
<?php endif; ?>
42+
43+
</div>
44+
45+
<?php get_sidebar(); ?>
46+
47+
</div>
48+
49+
<?php get_footer(); ?>

jquery.com/index.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php get_header(); ?>
2+
3+
<div class="content-right twelve columns listing">
4+
<div id="content">
5+
<?php if ( have_posts() ) :
6+
while ( have_posts() ) : the_post();
7+
get_template_part( 'content', get_post_format() );
8+
endwhile;
9+
10+
twentyeleven_content_nav( 'nav-below' );
11+
else : ?>
12+
<article id="post-0" class="post no-results not-found">
13+
<header class="entry-header">
14+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
15+
</header>
16+
17+
<div class="entry-content">
18+
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
19+
<?php get_search_form(); ?>
20+
</div>
21+
</article>
22+
<?php endif; ?>
23+
</div>
24+
<?php get_sidebar(); ?>
25+
</div>
26+
27+
<?php get_footer(); ?>

jquery.com/sidebar.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div id="sidebar" class="widget-area" role="complementary">
2+
<aside class="widget">
3+
<h3 class="widget-title">Categories</h3>
4+
<ul>
5+
<?php wp_list_categories(array(
6+
'depth' => 1,
7+
'title_li' => ''
8+
)); ?>
9+
</ul>
10+
</aside>
11+
<aside class="widget">
12+
<h3 class="widget-title">Recent Posts</h3>
13+
<ul>
14+
<?php
15+
$recent_posts = wp_get_recent_posts();
16+
foreach( $recent_posts as $recent ){
17+
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a></li>';
18+
}
19+
?>
20+
</ul>
21+
</aside>
22+
<aside class="widget">
23+
<h3 class="widget-title">Archives</h3>
24+
<ul>
25+
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
26+
</ul>
27+
</aside>
28+
</div>

jquery.com/single.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php get_header(); ?>
2+
3+
<?php the_post(); ?>
4+
5+
<div class="content-right twelve columns">
6+
<div id="content">
7+
<h1 class="entry-title"><?php the_title(); ?></h1>
8+
<hr>
9+
10+
<?php get_template_part( 'content', 'page' ); ?>
11+
<?php comments_template( '', true ); ?>
12+
</div>
13+
<?php get_sidebar(); ?>
14+
</div>
15+
16+
<?php get_footer(); ?>

jquery/css/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3566,3 +3566,5 @@ pre .chunk {
35663566
.syntaxhighlighter table td.gutter {
35673567
border-right: 2px solid #999;
35683568
}
3569+
3570+
@import "blog.css";

0 commit comments

Comments
 (0)