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
0 parents
commit 2f044e5
Showing
26 changed files
with
1,291 additions
and
0 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,44 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary"> | ||
<div id="content"> | ||
|
||
<article id="post-0" class="post error404 not-found"> | ||
<header class="entry-header"> | ||
<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'themename' ); ?></h1> | ||
</header> | ||
|
||
<div class="entry-content"> | ||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.', 'themename' ); ?></p> | ||
|
||
<?php get_search_form(); ?> | ||
|
||
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?> | ||
|
||
<div class="widget"> | ||
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'themename' ); ?></h2> | ||
<ul> | ||
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 'TRUE', 'title_li' => '', 'number' => '10' ) ); ?> | ||
</ul> | ||
</div> | ||
|
||
<?php | ||
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'themename' ), convert_smilies( ':)' ) ) . '</p>'; | ||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" ); | ||
?> | ||
|
||
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> | ||
|
||
</div><!-- .entry-content --> | ||
</article><!-- #post-0 --> | ||
|
||
</div><!-- #content --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> |
Empty file.
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,36 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<header class="page-header"> | ||
<h1 class="page-title"> | ||
<?php if ( is_day() ) : ?> | ||
<?php printf( __( 'Daily Archives: <span>%s</span>', 'themename' ), get_the_date() ); ?> | ||
<?php elseif ( is_month() ) : ?> | ||
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'themename' ), get_the_date( 'F Y' ) ); ?> | ||
<?php elseif ( is_year() ) : ?> | ||
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'themename' ), get_the_date( 'Y' ) ); ?> | ||
<?php else : ?> | ||
<?php _e( 'Blog Archives', 'themename' ); ?> | ||
<?php endif; ?> | ||
</h1> | ||
</header> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php get_template_part( 'loop', 'archive' ); ?> | ||
|
||
</div><!-- #content --> | ||
</section><!-- #primary --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?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,26 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<header class="page-header"> | ||
<h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'themename' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h1> | ||
</header> | ||
|
||
<?php rewind_posts(); ?> | ||
|
||
<?php get_template_part( 'loop', 'author' ); ?> | ||
|
||
</div><!-- #content --> | ||
</section><!-- #primary --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?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,26 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary"> | ||
<div id="content"> | ||
|
||
<header class="page-header"> | ||
<h1 class="page-title"><?php | ||
printf( __( 'Category Archives: %s', 'themename' ), '<span>' . single_cat_title( '', false ) . '</span>' ); | ||
?></h1> | ||
|
||
<?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?> | ||
</header> | ||
|
||
<?php get_template_part( 'loop', 'category' ); ?> | ||
|
||
</div><!-- #content --> | ||
</section><!-- #primary --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?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,130 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
if ( ! function_exists( 'toolbox_comment' ) ) : | ||
/** | ||
* Template for comments and pingbacks. | ||
* | ||
* To override this walker in a child theme without modifying the comments template | ||
* simply create your own toolbox_comment(), and that function will be used instead. | ||
* | ||
* Used as a callback by wp_list_comments() for displaying the comments. | ||
* | ||
* @since Toolbox 0.4 | ||
*/ | ||
function toolbox_comment( $comment, $args, $depth ) { | ||
$GLOBALS['comment'] = $comment; | ||
switch ( $comment->comment_type ) : | ||
case '' : | ||
?> | ||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> | ||
<article id="comment-<?php comment_ID(); ?>" class="comment"> | ||
<footer> | ||
<div class="comment-author vcard"> | ||
<?php echo get_avatar( $comment, 40 ); ?> | ||
|
||
<div class="comment-meta commentmetadata"> | ||
<?php printf( __( '%s <span class="says">said on</span>', 'themename' ), sprintf( '<cite class="fn">%s</cite><br />', get_comment_author_link() ) ); ?> | ||
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>"> | ||
<?php | ||
/* translators: 1: date, 2: time */ | ||
printf( __( '%1$s at %2$s', 'themename' ), get_comment_date(), get_comment_time() ); ?>: | ||
</time></a> | ||
<?php edit_comment_link( __( '(Edit)', 'themename' ), ' ' ); | ||
?> | ||
</div><!-- .comment-meta .commentmetadata --> | ||
|
||
</div><!-- .comment-author .vcard --> | ||
<?php if ( $comment->comment_approved == '0' ) : ?> | ||
<em><?php _e( 'Your comment is awaiting moderation.', 'themename' ); ?></em> | ||
<br /> | ||
<?php endif; ?> | ||
|
||
</footer> | ||
|
||
<div class="comment-body"><?php comment_text(); ?></div> | ||
|
||
<div class="reply"> | ||
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> | ||
</div><!-- .reply --> | ||
</article><!-- #comment-## --> | ||
|
||
<?php | ||
break; | ||
case 'pingback' : | ||
case 'trackback' : | ||
?> | ||
<li class="post pingback"> | ||
<p><?php _e( 'Pingback:', 'themename' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'themename'), ' ' ); ?></p> | ||
<?php | ||
break; | ||
endswitch; | ||
} | ||
endif; // ends check for toolbox_comment() | ||
|
||
?> | ||
|
||
<div id="comments"> | ||
<?php if ( post_password_required() ) : ?> | ||
<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themename' ); ?></div> | ||
</div><!-- .comments --> | ||
<?php return; | ||
endif; | ||
?> | ||
|
||
<?php // You can start editing here -- including this comment! ?> | ||
|
||
<?php if ( have_comments() ) : ?> | ||
<h3 id="comments-title"> | ||
<?php | ||
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'themename' ), | ||
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); | ||
?> | ||
</h3> | ||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> | ||
<nav id="comment-nav-above"> | ||
<h1 class="section-heading"><?php _e( 'Comment navigation', 'themename' ); ?></h1> | ||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'themename' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'themename' ) ); ?></div> | ||
</nav> | ||
<?php endif; // check for comment navigation ?> | ||
|
||
<ol class="commentlist"> | ||
<?php wp_list_comments( array( 'callback' => 'toolbox_comment' ) ); ?> | ||
</ol> | ||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> | ||
<nav id="comment-nav-below"> | ||
<h1 class="section-heading"><?php _e( 'Comment navigation', 'themename' ); ?></h1> | ||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'themename' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'themename' ) ); ?></div> | ||
</nav> | ||
<?php endif; // check for comment navigation ?> | ||
|
||
<?php else : // this is displayed if there are no comments so far ?> | ||
|
||
<?php if ( comments_open() ) : // If comments are open, but there are no comments ?> | ||
|
||
<?php else : // or, if we don't have comments: | ||
|
||
/* If there are no comments and comments are closed, | ||
* let's leave a little note, shall we? | ||
* But only on posts! We don't really need the note on pages. | ||
*/ | ||
if ( ! comments_open() && ! is_page() ) : | ||
?> | ||
<p class="nocomments"><?php _e( 'Comments are closed.', 'themename' ); ?></p> | ||
<?php endif; // end ! comments_open() && ! is_page() ?> | ||
|
||
|
||
<?php endif; ?> | ||
|
||
<?php endif; ?> | ||
|
||
<?php comment_form(); ?> | ||
|
||
</div><!-- #comments --> |
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,31 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
?> | ||
|
||
<footer class="row"> | ||
<div class="column grid_8"> | ||
</div> | ||
</footer> | ||
|
||
|
||
<!-- Piwik --> | ||
<script type="text/javascript"> | ||
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.smyck.org/" : "http://stats.smyck.org/"); | ||
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); | ||
</script><script type="text/javascript"> | ||
try { | ||
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); | ||
piwikTracker.trackPageView(); | ||
piwikTracker.enableLinkTracking(); | ||
} catch( err ) {} | ||
</script><noscript><p><img src="http://stats.smyck.org/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> | ||
<!-- End Piwik Tag --> | ||
|
||
<?php wp_footer(); ?> | ||
|
||
|
||
</body> | ||
</html> |
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,34 @@ | ||
<?php | ||
/** | ||
* Template Name: Full-width, no sidebar | ||
* Description: A full-width template with no sidebar | ||
* | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="full-width"> | ||
<div id="content"> | ||
|
||
<?php the_post(); ?> | ||
|
||
<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(); ?> | ||
<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'themename' ) . '&after=</div>' ); ?> | ||
<?php edit_post_link( __( 'Edit', 'themename' ), '<span class="edit-link">', '</span>' ); ?> | ||
</div><!-- .entry-content --> | ||
</article><!-- #post-<?php the_ID(); ?> --> | ||
|
||
<?php comments_template( '', true ); ?> | ||
|
||
</div><!-- #content --> | ||
</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,59 @@ | ||
<?php | ||
/** | ||
* @package WordPress | ||
* @subpackage Toolbox | ||
*/ | ||
|
||
/** | ||
* Make theme available for translation | ||
* Translations can be filed in the /languages/ directory | ||
*/ | ||
load_theme_textdomain( 'themename', TEMPLATEPATH . '/languages' ); | ||
|
||
$locale = get_locale(); | ||
$locale_file = TEMPLATEPATH . "/languages/$locale.php"; | ||
if ( is_readable( $locale_file ) ) | ||
require_once( $locale_file ); | ||
|
||
/** | ||
* Set the content width based on the theme's design and stylesheet. | ||
*/ | ||
if ( ! isset( $content_width ) ) | ||
$content_width = 640; | ||
|
||
/** | ||
* This theme uses wp_nav_menu() in one location. | ||
*/ | ||
register_nav_menus( array( | ||
'primary' => __( 'Primary Menu', 'themename' ), | ||
) ); | ||
|
||
/** | ||
* Add default posts and comments RSS feed links to head | ||
*/ | ||
add_theme_support( 'automatic-feed-links' ); | ||
|
||
/** | ||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. | ||
*/ | ||
function toolbox_page_menu_args($args) { | ||
$args['show_home'] = true; | ||
return $args; | ||
} | ||
add_filter( 'wp_page_menu_args', 'toolbox_page_menu_args' ); | ||
|
||
/** | ||
* Register widgetized area and update sidebar with default widgets | ||
*/ | ||
function toolbox_widgets_init() { | ||
register_sidebar( array ( | ||
'name' => __( 'Sidebar', 'themename' ), | ||
'id' => 'sidebar', | ||
'before_widget' => '<aside id="%1$s" class="widget %2$s">', | ||
'after_widget' => "</aside>", | ||
'before_title' => '<h1 class="widget-title">', | ||
'after_title' => '</h1>', | ||
) ); | ||
} | ||
add_action( 'init', 'toolbox_widgets_init' ); | ||
|
Oops, something went wrong.