forked from weblab/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andrewmbacon
committed
Jun 23, 2014
1 parent
14e57bc
commit dfcc2a0
Showing
50 changed files
with
3,438 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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’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(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); ?> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.