Skip to content

Commit

Permalink
First upload to GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhadaway committed Aug 16, 2013
0 parents commit 0d04f15
Show file tree
Hide file tree
Showing 26 changed files with 411 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
14 changes: 14 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php get_header(); ?>
<section id="content" role="main">
<article id="post-0" class="post not-found">
<header class="header">
<h1 class="entry-title"><?php _e( 'Not Found', 'blankslate' ); ?></h1>
</header>
<section class="entry-content">
<p><?php _e( 'Nothing found for the requested page. Try a search instead?', 'blankslate' ); ?></p>
<?php get_search_form(); ?>
</section>
</article>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
17 changes: 17 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php get_header(); ?>
<section id="content" role="main">
<header class="header">
<h1 class="entry-title"><?php
if ( is_day() ) { printf( __( 'Daily Archives: %s', 'blankslate' ), get_the_time(get_option('date_format') ) ); }
elseif ( is_month() ) { printf( __( 'Monthly Archives: %s', 'blankslate' ), get_the_time('F Y') ); }
elseif ( is_year() ) { printf( __( 'Yearly Archives: %s', 'blankslate' ), get_the_time('Y') ); }
else { _e( 'Archives', 'blankslate' ); }
?></h1>
</header>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('entry'); ?>
<?php endwhile; endif; ?>
<?php get_template_part('nav', 'below'); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
32 changes: 32 additions & 0 deletions attachment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php get_header(); ?>
<?php global $post; ?>
<section id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<header class="header">
<h1 class="entry-title"><?php the_title(); ?> | <a href="<?php echo get_permalink($post->post_parent); ?>" title="<?php printf( __( 'Return to %s', 'blankslate' ), esc_html( get_the_title($post->post_parent), 1 ) ); ?>" rev="attachment"><span class="meta-nav">&larr; </span><?php echo get_the_title($post->post_parent); ?></a></h1> <?php edit_post_link(); ?>
<?php get_template_part('entry', 'meta'); ?>
</header>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="header">
<nav id="nav-above" class="navigation" role="navigation">
<div class="nav-previous">&larr; <?php previous_image_link(false); ?></div>
<div class="nav-next"><?php next_image_link(false); ?> &rarr;</div>
</nav>
</header>
<section class="entry-content">
<div class="entry-attachment">
<?php if ( wp_attachment_is_image( $post->ID ) ) : $att_image = wp_get_attachment_image_src( $post->ID, "large"); ?>
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php the_title(); ?>" rel="attachment"><img src="<?php echo $att_image[0]; ?>" width="<?php echo $att_image[1]; ?>" height="<?php echo $att_image[2]; ?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a></p>
<?php else : ?>
<a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_html(get_the_title($post->ID), 1); ?>" rel="attachment"><?php echo basename($post->guid); ?></a>
<?php endif; ?>
</div>
<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
</section>
</article>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
15 changes: 15 additions & 0 deletions author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php get_header(); ?>
<section id="content" role="main">
<header class="header">
<?php the_post(); ?>
<h1 class="entry-title author"><?php _e( 'Author Archives', 'blankslate' ); ?>: <?php the_author_link(); ?></h1>
<?php if ( '' != get_the_author_meta('user_description') ) echo apply_filters('archive_meta', '<div class="archive-meta">' . get_the_author_meta('user_description') . '</div>'); ?>
<?php rewind_posts(); ?>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part('entry'); ?>
<?php endwhile; ?>
<?php get_template_part('nav', 'below'); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
13 changes: 13 additions & 0 deletions category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php get_header(); ?>
<section id="content" role="main">
<header class="header">
<h1 class="entry-title"><?php _e( 'Category Archives: ', 'blankslate' ); ?><?php single_cat_title(); ?></h1>
<?php if ( '' != category_description() ) echo apply_filters('archive_meta', '<div class="archive-meta">' . category_description() . '</div>'); ?>
</header>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('entry'); ?>
<?php endwhile; endif; ?>
<?php get_template_part('nav', 'below'); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
41 changes: 41 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) return; ?>
<section id="comments">
<?php
if ( have_comments() ) :
global $comments_by_type;
$comments_by_type = &separate_comments( $comments );
if ( ! empty($comments_by_type['comment']) ) :
?>
<section id="comments-list" class="comments">
<h3 class="comments-title"><?php comments_number(); ?></h3>
<?php if ( get_comment_pages_count() > 1 ) : ?>
<nav id="comments-nav-above" class="comments-navigation" role="navigation">
<div class="paginated-comments-links"><?php paginate_comments_links(); ?></div>
</nav>
<?php endif; ?>
<ul>
<?php wp_list_comments('type=comment'); ?>
</ul>
<?php if ( get_comment_pages_count() > 1 ) : ?>
<nav id="comments-nav-below" class="comments-navigation" role="navigation">
<div class="paginated-comments-links"><?php paginate_comments_links(); ?></div>
</nav>
<?php endif; ?>
</section>
<?php
endif;
if ( ! empty($comments_by_type['pings']) ) :
$ping_count = count($comments_by_type['pings']);
?>
<section id="trackbacks-list" class="comments">
<h3 class="comments-title"><?php echo '<span>'.$ping_count.'</span> '.($ping_count > 1 ? __( 'Trackbacks', 'blankslate' ) : __( 'Trackback', 'blankslate' ) ); ?></h3>
<ul>
<?php wp_list_comments('type=pings&callback=blankslate_custom_pings'); ?>
</ul>
</section>
<?php
endif;
endif;
if ( comments_open() ) comment_form();
?>
</section>
5 changes: 5 additions & 0 deletions entry-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<section class="entry-content">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
<?php the_content(); ?>
<div class="entry-links"><?php wp_link_pages(); ?></div>
</section>
4 changes: 4 additions & 0 deletions entry-footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<footer class="entry-footer">
<span class="cat-links"><?php _e( 'Categories: ', 'blankslate' ); ?><?php the_category(', '); ?></span>
<span class="tag-links"><?php the_tags(); ?></span>
</footer>
5 changes: 5 additions & 0 deletions entry-meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<section class="entry-meta">
<span class="author vcard"><?php the_author_posts_link(); ?></span>
<span class="meta-sep"> | </span>
<span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
</section>
4 changes: 4 additions & 0 deletions entry-summary.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section class="entry-summary">
<?php the_excerpt(); ?>
<?php if(is_search()) { ?><div class="entry-links"><?php wp_link_pages(); ?></div><?php } ?>
</section>
8 changes: 8 additions & 0 deletions entry.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if ( is_singular() ) {echo '<h1 class="entry-title">';} else {echo '<h2 class="entry-title">';} ?><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a><?php if ( is_singular() ) {echo '</h1>';} else {echo '</h2>';} ?> <?php edit_post_link(); ?>
<?php if (!is_search()) get_template_part('entry', 'meta'); ?>
</header>
<?php get_template_part('entry', (is_archive() || is_search() ? 'summary' : 'content')); ?>
<?php if (!is_search()) get_template_part('entry-footer'); ?>
</article>
10 changes: 10 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
</div>
<footer id="footer" role="contentinfo">
<div id="copyright">
<?php echo sprintf( __( '%1$s %2$s %3$s. All Rights Reserved.', 'blankslate' ), '&copy;', date('Y'), esc_html(get_bloginfo('name')) ); echo sprintf( __( ' Theme By: %1$s.', 'blankslate' ), '<a href="http://tidythemes.com/">TidyThemes</a>' ); ?>
</div>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>
66 changes: 66 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php
add_action('after_setup_theme', 'blankslate_setup');
function blankslate_setup()
{
load_theme_textdomain('blankslate', get_template_directory() . '/languages');
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
global $content_width;
if ( ! isset( $content_width ) ) $content_width = 640;
register_nav_menus(
array( 'main-menu' => __( 'Main Menu', 'blankslate' ) )
);
}
add_action('wp_enqueue_scripts', 'blankslate_load_scripts');
function blankslate_load_scripts()
{
wp_enqueue_script('jquery');
}
add_action('comment_form_before', 'blankslate_enqueue_comment_reply_script');
function blankslate_enqueue_comment_reply_script()
{
if (get_option('thread_comments')) { wp_enqueue_script('comment-reply'); }
}
add_filter('the_title', 'blankslate_title');
function blankslate_title($title) {
if ($title == '') {
return '&rarr;';
} else {
return $title;
}
}
add_filter('wp_title', 'blankslate_filter_wp_title');
function blankslate_filter_wp_title($title)
{
return $title . esc_attr(get_bloginfo('name'));
}
add_action('widgets_init', 'blankslate_widgets_init');
function blankslate_widgets_init()
{
register_sidebar( array (
'name' => __('Sidebar Widget Area', 'blankslate'),
'id' => 'primary-widget-area',
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => "</li>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
function blankslate_custom_pings($comment)
{
$GLOBALS['comment'] = $comment;
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"><?php echo comment_author_link(); ?></li>
<?php
}
add_filter('get_comments_number', 'blankslate_comments_number');
function blankslate_comments_number($count)
{
if (!is_admin()) {
global $id;
$comments_by_type = &separate_comments( get_comments( 'status=approve&post_id=' . $id ) );
return count($comments_by_type['comment']);
} else {
return $count;
}
}
24 changes: 24 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title(' | ', true, 'right'); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
<header id="header" role="banner">
<section id="branding">
<div id="site-title"><?php if ( ! is_singular() ) {echo '<h1>';} ?><a href="<?php echo esc_url(home_url('/')); ?>" title="<?php esc_attr_e( get_bloginfo('name'), 'blankslate' ); ?>" rel="home"><?php echo esc_html( get_bloginfo('name') ); ?></a><?php if ( ! is_singular() ) {echo '</h1>';} ?></div>
<div id="site-description"><?php bloginfo('description'); ?></div>
</section>
<nav id="menu" role="navigation">
<div id="search">
<?php get_search_form(); ?>
</div>
<?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>
</nav>
</header>
<div id="container">
10 changes: 10 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php get_header(); ?>
<section id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('entry'); ?>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
<?php get_template_part('nav', 'below'); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
4 changes: 4 additions & 0 deletions nav-below-single.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<nav id="nav-below" class="navigation" role="navigation">
<div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">&larr;</span> %title'); ?></div>
<div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">&rarr;</span>'); ?></div>
</nav>
6 changes: 6 additions & 0 deletions nav-below.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php global $wp_query; if ( $wp_query->max_num_pages > 1 ) { ?>
<nav id="nav-below" class="navigation" role="navigation">
<div class="nav-previous"><?php next_posts_link(sprintf(__( '%s older', 'blankslate' ), '<span class="meta-nav">&larr;</span>' )) ?></div>
<div class="nav-next"><?php previous_posts_link(sprintf(__( 'newer %s', 'blankslate' ), '<span class="meta-nav">&rarr;</span>' )) ?></div>
</nav>
<?php } ?>
18 changes: 18 additions & 0 deletions page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php get_header(); ?>
<section id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="header">
<h1 class="entry-title"><?php the_title(); ?></h1> <?php edit_post_link(); ?>
</header>
<section class="entry-content">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
<?php the_content(); ?>
<div class="entry-links"><?php wp_link_pages(); ?></div>
</section>
</article>
<?php if ( ! post_password_required() ) comments_template('', true); ?>
<?php endwhile; endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
40 changes: 40 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
IMPORTANT - PLEASE READ: tidythemes.com/concept

YOU MAY DELETE THIS FILE AND ANY OTHER FILE(S) BEFORE STARTING YOUR PROJECT

If you're creating your own theme/client project open up all files and do a
"Find and Replace All in All Files" on the word "blankslate" with your own slug/prefix.

- - THEME - -

BlankSlate WordPress Theme | Demo: wp-themes.com/blankslate

- - DESCRIPTION - -

This theme is aimed at web pros, but is of course available and supported for anyone.

The bare essentials of a WordPress theme, no visual CSS styles added except for the CSS
reset and the mandatory WP classes. Perfect for those who would like to build their own
theme completely from scratch.

One custom menu and one widgetized sidebar to get you started.

If you'd like a jumpstart with a CSS framework and more custom menus, page templates
and widgetized areas, checkout SuperSimple: tidythemes.com/supersimple

- - COPYRIGHT & LICENSE - -

In its unchanged/original state BlankSlate is...

© 2011-2013 TidyThemes
GNU General Public License | https://www.gnu.org/licenses/gpl.html

...however, once you've significantly changed the theme to build your own unique project,
either for yourself or for a client under a different name (as is encouraged) you're
entirely welcome to copyright and license that project as you see fit.

- - SUPPORT - -

tidythemes.com/forum

Enjoy. Thanks, TidyThemes | tidythemes.com
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0d04f15

Please sign in to comment.