Commit dd981755 authored by root's avatar root Committed by lechuck
Browse files

Add theme grid_focus

parent 13ebad2d
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
get_header();
?>
<div id="filler" class="fix">
<div id="mainColumn" class="fix"><a name="main"></a>
<div class="post">
<div class="postMeta fix">
<p class="container">
&nbsp;
</p>
</div>
<h2>404</h2>
<div class="entry">
<p>Oops. Something obviously isn't right if you're reading this. The URL you entered or followed no longer seems to exist, has been removed, or has been replaced. If you feel that this an error that needs to be addressed, feel free to contact the administrator of this website.</p>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . '/second.column.index.php'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?></h3>
<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>
<div class="navigation">
<div class="alignleft"><span><?php previous_comments_link() ?></span></div>
<div class="alignright"><span><?php next_comments_link() ?></span></div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div id="respond">
<h3 id="respondTitle"><span class="hook"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?> <span class="cancel-comment-reply"><?php cancel_comment_reply_link('&times;&nbsp;Cancel reply'); ?></span></span></h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
<?php else : ?>
<p class="contain"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
<p class="contain"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><small>Mail <?php if ($req) echo "(required)"; ?></small></label></p>
<p class="contain"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p class="contain"><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<?php include (TEMPLATEPATH . '/footer.strip.php'); ?>
<div id="footer" class="fix">
<p class="left"><a href="http://5thirtyone.com/grid-focus" title="Grid Focus by: Derek Punsalan">Grid Focus</a> by Derek Punsalan <a href="http://5thirtyone.com">5thirtyone.com</a>.</p>
<p class="right">Whitespace</p>
</div>
</div>
<?php wp_footer(); ?>
<script src="<?php bloginfo('template_url') ?>/js/functions.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<div class="navStripWrapper">
<ul class="nav fix">
<li><a href="<?php echo get_settings('home'); ?>/" title="Return to the the frontpage">Frontpage<br /><span>Return home</span></a></li>
<li><a id="triggerCatID2" href="#" title="Show categories">Browse<br /><span>By topic</span></a></li>
<li class="last"><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to the main feed via RSS">Subscribe<br /><span>RSS feed</span></a></li>
<li id="searchBar2" class="searchField">
<div>
<form method="get" id="searchForm2" action="<?php bloginfo('home'); ?>/">
<span><input type="text" value="Search the archives..." onfocus="if (this.value == 'Search the archives...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search the archives...';}" name="s" id="s2" /></span>
</form>
</div>
</li>
</ul>
<div id="footerStrip" class="toggleCategories fix" style="display: none;">
<ul class="fix">
<?php wp_list_cats('sort_column=name&optioncount=0'); ?>
</ul>
</div>
</div>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Primary - Index',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Primary - Post',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Secondary - Shared',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
}
add_filter('comments_template', 'legacy_comments');
function legacy_comments($file) {
if(!function_exists('wp_list_comments')) : // WP 2.7-only check
$file = TEMPLATEPATH . '/legacy.comments.php';
endif;
return $file;
}
?>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if (function_exists('is_tag') && is_tag()) { echo 'Posts tagged &quot;'.$tag.'&quot; - '; } elseif (is_archive()) { wp_title(''); echo ' Archive - '; } elseif (is_search()) { echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; } elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } elseif (is_404()) { echo 'Not Found - '; } bloginfo('name'); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_enqueue_script('jquery'); ?>
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="masthead" class="fix">
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div id="blogLead">
<img src="<?php bloginfo('template_directory'); ?>/images/avatar.png" alt="Icon" />
<p id="authorIntro"><?php bloginfo('description'); ?></p>
</div>
</div>
<?php include (TEMPLATEPATH . '/navigation.strip.php'); ?>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
get_header();
?>
<div id="filler" class="fix">
<div id="mainColumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="postMeta">
<p class="container">
<span class="date"><?php the_time('M j, Y') ?></span>
<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
</p>
</div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="postMeta">
<p class="container">
<span class="date">No Matches</span>
</p>
</div>
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
</div>
</div>
<?php endif; ?>
<div id="paginateIndex" class="fix">
<p><span class="left"><?php previous_posts_link('&laquo; Previous') ?></span> <span class="right"><?php next_posts_link('Next &raquo;') ?></span></p>
</div>
</div>
<?php include (TEMPLATEPATH . '/second.column.index.php'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
jQuery(document).ready(function() {
// easy toggle for categories
jQuery('#triggerCatID').click(function() {
jQuery(this).toggleClass('focus');
jQuery('#headerStrip').animate({ height: 'toggle', opacity: '100'}, 100);
return false;
});
jQuery('#triggerCatID2').click(function() {
jQuery(this).toggleClass('focus');
jQuery('#footerStrip').animate({ height: 'toggle', opacity: '100'}, 100);
return false;
});
});
\ No newline at end of file
<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<div class="comment-author">
<?php echo get_avatar( $comment, 16 ); ?>
<cite><?php comment_author_link() ?></cite> Says:
</div>
<div class="comment-meta">
<a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<?php comment_text() ?>
</li>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respondTitle">Leave a Reply</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
<?php else : ?>
<p class="contain"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
<p class="contain"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><small>Mail <?php if ($req) echo "(required)"; ?></small></label></p>
<p class="contain"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p class="contain"><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<div class="navStripWrapper">
<ul class="nav fix">
<li><a href="<?php echo get_settings('home'); ?>/" title="Return to the the frontpage">Frontpage<br /><span>Return home</span></a></li>
<li><a id="triggerCatID" href="#" title="Show categories">Browse<br /><span>By topic</span></a></li>
<li class="last"><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to the main feed via RSS">Subscribe<br /><span>RSS feed</span></a></li>
<li id="searchBar1" class="searchField">
<div>
<form method="get" id="searchForm1" action="<?php bloginfo('home'); ?>/">
<span><input type="text" value="Search the archives..." onfocus="if (this.value == 'Search the archives...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search the archives...';}" name="s" id="s1" /></span>
</form>
</div>
</li>
</ul>
<div id="headerStrip" class="toggleCategories fix" style="display: none;">
<ul class="fix">
<?php wp_list_cats('sort_column=name&optioncount=0'); ?>
</ul>
</div>
</div>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
get_header();
?>
<div id="filler" class="fix">
<div id="mainColumn" class="fix"><a name="main"></a>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="postMeta">
<p class="container">
<span class="date">&nbsp;<?php edit_post_link(' (Edit)', '', ''); ?></span>
</p>
</div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
</div>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . '/second.column.post.php'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<?php { /* search fields with separate ids in both navigation.strip.php and footer.strip.php ?>
<div>
<form method="get" id="searchForm" action="<?php bloginfo('home'); ?>/">
<span><input type="text" value="Search the archives..." onfocus="if (this.value == 'Search the archives...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search the archives...';}" name="s" id="s" /></span>
</form>
</div>
<?php */ } ?>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<div class="secondaryColumn">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Primary - Index') ) : else : ?>
<?php endif; ?>
</div>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
?>
<div class="secondaryColumn">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Primary - Post') ) : else : ?>
<?php endif; ?>
</div>
\ No newline at end of file
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
get_header();
?>
<div id="filler" class="fix">
<div id="mainColumn" class="fix"><a name="main"></a>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="postMeta fix">
<p class="container">
<span class="date"><?php the_time('M j, Y') ?><?php edit_post_link(' (Edit)', '', ''); ?></span>
</p>
</div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
<div class="entry">
<?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
</div>
<div class="entry meta">
<p><span class="highlight">Category:</span> <?php the_category(', ') ?></p>
<p><span class="highlight">Tagged:</span> <?php the_tags( '', ', ', ''); ?></p>
</div>
</div>
<div id="commentsContainer">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<div class="post">
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
</div>
</div>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . '/second.column.post.php'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
</div>
<?php get_footer(); ?>
\ No newline at end of file
/*
Theme Name: Grid Focus
Theme URI: http://5thirtyone.com/
Description: Grid aligned WordPress theme
Version: 1.1
Author: Derek Punsalan
Author URI: http://5thirtyone.com/
Tags: white, grid, whitespace, minimal, clean, widgets
Grid Focus was designed and coded by Derek Punsalan. Find
more info about the guy at http://5hthirtyone.com
Notes: Inspired and created for minimalist, content focused blogs
or websites. Customize, edit, poke, prod, and adapt to your own
style. Please leave credit where credit is due so that others may
find the source for your site and adapt a suitable version for their
own website.
See line 53 for a collection of the main font rules - size, line-height,
and color - combined for your convenience.
*/
* {
margin: 0;
padding: 0;
}
body {
background: #fff;
color: #333;
font-size: 62.5%;
font-family: arial, verdana, sans-serif;
text-align: center;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1.2em;
}
a {
color: #000;
outline: none;
text-decoration: none;
}