Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lindamood committed Oct 28, 2011
0 parents commit f41a67f
Show file tree
Hide file tree
Showing 66 changed files with 8,347 additions and 0 deletions.
40 changes: 40 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<title>Page Not Found</title>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>?v=1" />
</head>
<body>
<div id="wrapper">
<div class="global-nav-bg">
<div class="global-nav">
</div><!-- /.global-nav -->
</div> <!-- /.global-nav-bg -->

<div id="header">
<div class="container_12 clearfix">
<div class="grid_6 branding">
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'h2'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="unitPng">
<?php bloginfo('name'); ?>
</a>
</<?php echo $heading_tag; ?>>
<h2><?php bloginfo('description'); ?></h2>
</div>
<!-- end .grid_6 -->
</div> <!--/ .container_12 -->
</div> <!-- /header -->

<div id="main" class="container_12 clearfix">
<div id="content" class="grid_12 search-404">
<h1 class="entry-title">Not Found</h1>
<p>Sorry. We can't find the page you were looking for. Please try searching for related posts:</p>
<?php get_search_form(); ?>
</div><!-- /content -->
</div><!-- /main -->
</div><!-- /wrapper -->

</body>
</html>
94 changes: 94 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*/

get_header(); ?>

<div id="content" class="grid_8" role="main">

<?php if ( have_posts() ) : ?>

<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>

<div id="archive-intro">
<?php if ( !is_author() ): ?>
<nav class="archive-dropdown">
<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo esc_attr(__('Select Month')); ?></option> <?php wp_get_archives(apply_filters('widget_archives_dropdown_args', array('type' => 'monthly', 'format' => 'option', 'show_post_count' => $c))); ?> </select>
</nav>
<?php endif; ?>
<h3>
<?php if ( is_month() ) : ?>
<?php printf( 'Monthly Archives: <span>%s</span>', get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( 'Yearly Archives: <span>%s</span>', get_the_date('Y') ); ?>
<?php elseif ( is_author() ) : ?>
<?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?>
<?php else : ?>
Blog Archives
<?php endif; ?>
</h3>

<?php if ( ! get_the_author_meta( 'description' ) && is_author() ): ?>
<p><?php the_author_meta( 'description' ); ?> </p>
<?php endif; ?>
</div>

<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', 'archive' );
?>

<?php endwhile; ?>

<?php argo_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->

<?php endif; ?>

</div><!--/ #content .grid_8-->

<aside id="sidebar" class="grid_4">
<?php get_sidebar(); ?>
</aside>
<!-- /.grid_4 -->
<?php get_footer(); ?>
65 changes: 65 additions & 0 deletions category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php
/**
* The template for displaying Category Archive pages.
*/

$cat = $wp_query->get_queried_object();
?>

<?php get_header(); ?>

<div id="content" class="grid_8" role="main">

<?php if ( have_posts() ) : ?>

<div class="category-background">
<p class="subscribe"><a href="<?php echo get_term_feed_link( $cat->term_id, $cat->taxonomy ); ?>">Follow this category</a></p>
<h1 class="page-title"><?php single_cat_title(); ?></h1>

<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div class="category-description">' . $category_description . '</div>' );
?>

<div class="related-topics clearfix">
<h4>Key topics in this category:</h4>
<?php echo argo_get_related_topics_for_category( $cat ); ?>
</div> <!-- /.related-topics -->
</div> <!-- /.category-background -->

<h3 class="recent-posts">Recent posts</h3>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Run the loop for the category page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-category.php and that will be used instead.
*/
get_template_part( 'content', 'category' ); ?>

<?php endwhile; ?>
<?php argo_content_nav( 'nav-below' ); ?>
<?php else : ?>

<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'argo' ); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->

<?php endif; ?>

</div>
<!-- /.grid_8 #content -->
<aside id="sidebar" class="grid_4">
<?php get_sidebar('topic'); ?>
</aside>
<!-- /.grid_4 -->
<?php get_footer(); ?>
71 changes: 71 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to argo_comment() which is
* located in the functions.php file.
*/
?>
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'argo' ); ?></p>
</div><!-- #comments -->
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>

<?php // You can start editing here -- including this comment! ?>

<?php if ( have_comments() ) : ?>
<h2 id="comments-title">
<?php
printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'argo' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above">
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'argo' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'argo' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>

<ol class="commentlist">
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use argo_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define argo_comment() and that will be used instead.
* See argo_comment() in argo/functions.php for more.
*/
wp_list_comments( array( 'callback' => 'argo_comment' ) );
?>
</ol>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below">
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'argo' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'argo' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>

<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
*/
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments notice"><?php _e( 'Comments are closed.', 'argo' ); ?></p>
<?php endif; ?>

<?php comment_form(); ?>

</div><!-- #comments -->
15 changes: 15 additions & 0 deletions content-page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* The template used for displaying page content in page.php
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
35 changes: 35 additions & 0 deletions content-single.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* The template for displaying content in the single.php template
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<div class="post-meta top-meta">
<ul class="meta-gestures clearfix">
<li><?php argo_posted_on(); ?></li>
<li class="meta-comments"><span class="comments-link"><?php comments_popup_link( 'Comment', '<strong>1</strong> Comment ', ' <strong>%</strong> Comments' ); ?></span></li>
</ul>
</div><!-- /.post-meta -->
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- / entry header -->

<div class="entry-content">
<?php the_content(); ?>
<div class="post-meta bottom-meta">

<?php if ( argo_has_custom_taxonomy(get_the_ID()) ): ?>
<ul class="labels clearfix">
<li id="term-view">View more:</li>
<?php argo_the_post_labels( get_the_ID() ); ?>
</ul>
<?php endif; ?>

<?php if ( argo_has_categories_or_tags() ): ?>
<h5>Filed under: <?php echo argo_the_categories_and_tags(); ?></h5>
<?php endif; ?>

</div><!-- /.post-meta -->
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
Loading

0 comments on commit f41a67f

Please sign in to comment.