Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Transfer from github.com version
  • Loading branch information
andrewmbacon committed Jun 23, 2014
1 parent 14e57bc commit dfcc2a0
Show file tree
Hide file tree
Showing 50 changed files with 3,438 additions and 3 deletions.
57 changes: 57 additions & 0 deletions 404.php
@@ -0,0 +1,57 @@
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package cornerstone
*/

get_header(); ?>
<h1>404.php</h1>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'cs' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'cs' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( cs_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'cs' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'cs' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .page-content -->
</section><!-- .error-404 -->

</main><!-- #main -->
</div><!-- #primary -->

<?php get_footer(); ?>
2 changes: 2 additions & 0 deletions README.html
@@ -0,0 +1,2 @@
<h1 id="cornerstone">Cornerstone</h1>
<p>This is a project by the University of Connecticut Web Development Lab, to produce a starter theme for our projects. </p>
7 changes: 4 additions & 3 deletions README.md 100644 → 100755
@@ -1,4 +1,5 @@
cornerstone
===========
Cornerstone
===

This is a project by the University of Connecticut Web Development Lab, to produce a starter theme for our projects.

Base theme for Aurora
105 changes: 105 additions & 0 deletions archive.php
@@ -0,0 +1,105 @@
<?php
/**
* The template for displaying Archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package cornerstone
*/

get_header(); ?>
<h1>archive.php</h1>
<section id="primary" class="content-area">
<main id="main" class="site-main" role="main">

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

<header class="page-header">
<h1 class="page-title">
<?php
if ( is_category() ) :
single_cat_title();

elseif ( is_tag() ) :
single_tag_title();

elseif ( is_author() ) :
printf( __( 'Author: %s', 'cs' ), '<span class="vcard">' . get_the_author() . '</span>' );

elseif ( is_day() ) :
printf( __( 'Day: %s', 'cs' ), '<span>' . get_the_date() . '</span>' );

elseif ( is_month() ) :
printf( __( 'Month: %s', 'cs' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'cs' ) ) . '</span>' );

elseif ( is_year() ) :
printf( __( 'Year: %s', 'cs' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'cs' ) ) . '</span>' );

elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
_e( 'Asides', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :
_e( 'Galleries', 'cs');

elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
_e( 'Images', 'cs');

elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
_e( 'Videos', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
_e( 'Quotes', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
_e( 'Links', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-status' ) ) :
_e( 'Statuses', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
_e( 'Audios', 'cs' );

elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :
_e( 'Chats', 'cs' );

else :
_e( 'Archives', 'cs' );

endif;
?>
</h1>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .page-header -->

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

<?php
/* Include the Post-Format-specific template for the content.
* If you want to override 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', get_post_format() );
?>

<?php endwhile; ?>

<?php cs_paging_nav(); ?>

<?php else : ?>

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

<?php endif; ?>

</main><!-- #main -->
</section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
7 changes: 7 additions & 0 deletions bootstrap/css/bootstrap.min.css

Large diffs are not rendered by default.

Binary file added bootstrap/fonts/glyphicons-halflings-regular.eot
Binary file not shown.

0 comments on commit dfcc2a0

Please sign in to comment.