Permalink
Browse files

adding theme files

  • Loading branch information...
0 parents commit 12e6a107d0e0f4108f06cb8e59a47d47175c0d59 Jarret Cade committed Apr 10, 2012
Showing with 1,222 additions and 0 deletions.
  1. +19 −0 404.php
  2. +39 −0 comments.php
  3. +17 −0 footer.php
  4. +162 −0 functions.php
  5. +56 −0 header.php
  6. BIN images/tactile_noise.png
  7. BIN images/wrapper-bg.png
  8. +68 −0 index.php
  9. BIN screenshot.png
  10. +7 −0 searchform.php
  11. +10 −0 sidebar.php
  12. +52 −0 single.php
  13. +792 −0 style.css
@@ -0,0 +1,19 @@
+<?php
+
+get_header();
+
+?>
+
+<div id="wrapper">
+<div id="content">
+
+ <p class="archive-title">
+ Whoops! Looks like you came across something that doesn't exist anymore.
+ </p>
+ <p class="padding">
+ Try heading to the <a href="<?php echo home_url() ?>">homepage</a> to get some footing, or try searching below for more information.
+ </p>
+ <?php get_search_form(); ?>
+
+</div>
+<?php get_sidebar('primary'); get_footer(); ?>
@@ -0,0 +1,39 @@
+<ol class="commentlist">
+ <?php if ( have_comments() && comments_open() ) : ?>
+ <p id="comments-status">
+ <?php printf( _n( 'One comment so far', '%1$s comments already', get_comments_number() ), number_format_i18n( get_comments_number() ) ); ?>
+ | <a href="#respond">Leave your own comment</a>
+ <?php else : endif; ?>
+ </p>
+ <?php
+ if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
+ ?>
+ <div class="comment-paging">
+ <p class="older-comments">
+ <?php previous_comments_link(); ?>
+ </p>
+ <p class="newer-comments">
+ <?php next_comments_link(); ?>
+ </p>
+ </div>
+ <?php
+ endif;
+ wp_list_comments( 'callback=steele_comments&type=comment' );
+ if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
+ <div class="comment-paging bottom">
+ <p class="older-comments">
+ <?php previous_comments_link(); ?>
+ </p>
+ <p class="newer-comments">
+ <?php next_comments_link(); ?>
+ </p>
+ </div>
+ <?php
+ endif;
+ if ( ! empty( $comments_by_type['pings'] ) ) :
+ echo '<h6>Trackbacks & Pingbacks</h6>';
+ wp_list_comments( 'callback=steele_pingback_trackback&type=pings' );
+ endif;
+ steele_comment_form();
+ ?>
+</ol>
@@ -0,0 +1,17 @@
+
+<div class="clear"></div>
+</div><!-- End #wrapper -->
+
+ <div id="footer">
+ <p class="copyright">
+ <?php bloginfo( 'name' ); ?> &copy; <?php echo date( 'Y' ); ?>
+ </p>
+ <p class="themelink">
+ <a href="http://jarretcade.com/2011/11/08/wordpress-theme-steele/">Steele WordPress Theme</a>
+ </p>
+ </div>
+<?php wp_footer(); ?>
+
+</div><!-- End #page -->
+</body>
+</html>
@@ -0,0 +1,162 @@
+<?php
+
+if ( ! isset( $content_width ) )
+ $content_width = 515;
+
+add_theme_support( 'automatic-feed-links' );
+
+load_theme_textdomain( 'steele', TEMPLATEPATH . '/languages' );
+
+/* Sidebar Widget Styling */
+
+add_action( 'widgets_init', 'steele_primary_sidebar' );
+function steele_primary_sidebar() {
+
+ register_sidebar( array(
+ 'id' => 'primary',
+ 'name' => __('Primary Sidebar', 'steele'),
+ 'description' => 'This is the main sidebar to display widgets within.',
+ 'before_widget' => '<div id="%1$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<p class="widget-title">',
+ 'after_title' => '</p>',
+ ) );
+
+}
+
+/* End Sidebar Widget Styling */
+
+/* Comment Template Styling */
+
+function steele_comments( $comment, $args, $depth ) {
+ $GLOBALS['comment'] = $comment;
+ ?>
+ <!-- Begin comment -->
+ <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
+ <div id="comment-<?php comment_ID(); ?>" class="comment">
+ <div class="comment-author vcard">
+ <?php
+ printf( __( '%1$s', 'steele' ), get_comment_author_link() );
+ get_comment_author_link(); ?>
+ <br />
+ <?php echo get_avatar( $comment, $size='60' ); ?>
+ <p><?php
+ printf( __( '%1$s | %2$s' ), get_comment_date( ' n/j/Y' ), get_comment_time() ); ?>
+ <br />
+ <a href="<?php the_permalink(); echo "#li-comment-"; comment_ID(); ?>">Permalink</a>
+ </p>
+ <?php if ( current_user_can( 'edit_comment' ) )
+ edit_comment_link( __( 'Edit Comment', 'steele' ) ); ?>
+ </div>
+ <?php comment_text(); ?>
+ <!-- Start comment reply link -->
+ <p class="comment-reply">
+ <?php
+ if ( ! comments_open() ) : else :
+ comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Respond to this comment', 'steele' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );
+ endif;
+ ?>
+ </p>
+ </div>
+<?php
+
+}
+
+/* End Comment Template Styling */
+
+function steele_pingback_trackback( $comment, $args, $depth ) {
+ $GLOBALS['comment'] = $comment;
+ if ( $comment->comment_type == 'pingback' ) { ?>
+ <li class="ping">
+ <?php comment_author_link();
+ } elseif ( $comment->comment_type == 'trackback' ) { ?>
+ <li class="track">
+ <?php comment_author_link();
+ }
+}
+
+/* Comment Form Styling */
+
+function steele_comment_form( $args = array(), $post_id = null ) {
+ global $user_identity, $id;
+
+ if ( null === $post_id )
+ $post_id = $id;
+ else
+ $id = $post_id;
+
+ $commenter = wp_get_current_commenter();
+
+ $req = get_option( 'require_name_email' );
+ $aria_req = ( $req ? " aria-required='true'" : '' );
+ $fields = array(
+ 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'steele' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
+ '<br /><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
+ 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'steele' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
+ '<br /><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
+ 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website', 'steele' ) . '</label>' .
+ '<br /><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
+ );
+
+ $required_text = sprintf( ' ' . __('Required fields are marked %s', 'steele'), '<span class="required">*</span>' );
+ $defaults = array(
+ 'fields' => apply_filters( 'comment_form_default_fields', $fields ),
+ 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun', 'steele' ) . '</label><br /><textarea id="comment" name="comment" cols="57" rows="12" aria-required="true"></textarea></p>',
+ 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
+ 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
+ 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.', 'steele' ) . ( $req ? $required_text : '' ) . '</p>',
+ 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
+ 'id_form' => 'commentform',
+ 'id_submit' => 'submit',
+ 'title_reply' => __( 'Leave a comment', 'steele' ),
+ 'title_reply_to' => __( 'Leave a comment to %s', 'steele' ),
+ 'cancel_reply_link' => __( 'Cancel comment', 'steele' ),
+ 'label_submit' => __( 'Post Comment', 'steele' ),
+ );
+
+ $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
+
+ ?>
+ <?php if ( comments_open() ) : ?>
+ <?php do_action( 'comment_form_before' ); ?>
+ <div id="respond">
+ <p id="reply-title"><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></p>
+ <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?>
+ <?php echo $args['must_log_in']; ?>
+ <?php do_action( 'comment_form_must_log_in_after' ); ?>
+ <?php else : ?>
+ <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
+ <?php do_action( 'comment_form_top' ); ?>
+ <?php if ( is_user_logged_in() ) : ?>
+ <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>
+ <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?>
+ <?php else : ?>
+ <?php echo $args['comment_notes_before']; ?>
+ <?php
+ do_action( 'comment_form_before_fields' );
+ foreach ( (array) $args['fields'] as $name => $field ) {
+ echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";
+ }
+ do_action( 'comment_form_after_fields' );
+ ?>
+ <?php endif; ?>
+ <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>
+ <p class="form-submit">
+ <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
+ <?php comment_id_fields( $post_id ); ?>
+ </p>
+ <?php echo $args['comment_notes_after']; ?>
+ <?php do_action( 'comment_form', $post_id ); ?>
+ </form>
+ <?php endif; ?>
+ </div><!-- #respond -->
+ <?php do_action( 'comment_form_after' ); ?>
+ <?php else : ?>
+ <?php do_action( 'comment_form_comments_closed' ); ?>
+ <?php endif; ?>
+ <?php
+}
+
+/* End Comment Form Styling */
+
+?>
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<!--[if IE 8]>
+<html id="ie8" <?php language_attributes(); ?>>
+<![endif]-->
+<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
+<html <?php language_attributes(); ?>>
+<!--<![endif]-->
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>" />
+<title><?php
+ /*
+ * Print the <title> tag based on what is being viewed.
+ */
+ global $page, $paged;
+
+ wp_title( '|', true, 'right' );
+
+ // Add the blog name.
+ bloginfo( 'name' );
+
+ // Add the blog description for the home/front page.
+ $site_description = get_bloginfo( 'description', 'display' );
+ if ( $site_description && ( is_home() || is_front_page() ) )
+ echo " | $site_description";
+
+ // Add a page number if necessary:
+ if ( $paged >= 2 || $page >= 2 )
+ echo ' | ' . sprintf( __( 'Page %s', 'steele' ), max( $paged, $page ) );
+
+ ?></title>
+<link rel="profile" href="http://gmpg.org/xfn/11" />
+<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
+<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+<?php
+ /* We add some JavaScript to pages with the comment form
+ * to support sites with threaded comments (when in use).
+ */
+ if ( is_singular() && get_option( 'thread_comments' ) )
+ wp_enqueue_script( 'comment-reply' );
+
+ /* Always have wp_head() just before the closing </head>
+ * tag of your theme, or you will break many plugins, which
+ * generally use this hook to add elements to <head> such
+ * as styles, scripts, and meta tags.
+ */
+ wp_head();
+?>
+</head>
+
+<body <?php body_class(); ?>>
+<div id="page">
+ <div id="header">
+ <p class="sitename">
+ <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
+ </p>
+ </div><!-- End #header -->
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,68 @@
+<?php get_header(); ?>
+
+<div id="wrapper">
+<div id="content">
+ <?php
+ if ( is_category() ) {
+ echo '<p class="archive-title">Category: ' . single_cat_title( '', false ) . '</p>';
+ } elseif ( is_tag() ) {
+ echo '<p class="archive-title">Tag: ' . single_tag_title( '', false ) . '</p>';
+ } elseif ( is_month() ) {
+ echo '<p class="archive-title">Month: ' . single_month_title( ' ', false ) . '</p>';
+ } elseif ( is_day() ) {
+ echo '<p class="archive-title">Day: ' . get_the_date() . '</p>';
+ } elseif ( is_year() ) {
+ echo '<p class="archive-title">Year: ' . get_the_date( 'Y' ) . '</p>';
+ } elseif ( is_author() ) {
+ echo '<p class="archive-title">Author: ' . get_the_author_meta( 'display_name', $_GET['author'] ) . '</p>';
+ } elseif ( is_search() ) {
+ echo '<p class="archive-title">Search Term: ' . $term = $_GET['s']; $term . '</p>';
+ }
+
+ if ( $paged > 1 ) : ?>
+ <div class="postnav">
+ <?php posts_nav_link(); ?>
+ </div>
+ <?php endif; if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
+ <div id="post-<?php the_ID(); ?>" <?php post_class('post-wrapper'); ?>>
+ <div class="pre-meta">
+ <p class="post-date">
+ Date: <?php the_time( 'F j, Y' ); ?>
+ </p>
+ <p class="post-author">
+ Author: <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>">
+ <?php printf( __( '%s', 'steele' ), get_the_author() ); ?></a>
+ </p>
+ <p class="post-comments">
+ <?php if ( !comments_open() ) {
+ echo 'Comments disabled';
+ } else { ?>
+ <a href="<?php the_permalink() ?>#comments-wrapper"><?php comments_number( 'Add a comment!', '1 comment', '% comments' ); ?></a>
+ <?php } ?>
+ </p>
+ </div>
+ <div class="post-content">
+ <h2 class="post-title">
+ <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
+ </h2>
+ <?php if ( is_archive() || is_search() ) :
+ the_excerpt(); wp_link_pages();
+ else :
+ the_content(); wp_link_pages();
+ endif;
+ ?>
+ <p class="post-link">
+ <?php if ( the_title( ' ', ' ', false ) == "" )
+ echo '<a href="<?php the_permalink(); ?>" rel="nofollow">View Post</a>';
+ ?>
+ </p>
+ </div>
+ <div class="clear"></div>
+ </div>
+ <?php endwhile; endif; ?>
+ <div class="postnav">
+ <?php posts_nav_link(); ?>
+ </div>
+</div><!-- End #content -->
+
+<?php get_sidebar('primary'); get_footer(); ?>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,7 @@
+<form role="search" method="get" id="searchform" action="">
+
+ <input type="text" name="s" id="s" />
+ <br />
+ <button type="submit" id="searchsubmit">Search</button>
+
+</form>
@@ -0,0 +1,10 @@
+ <div id="sidebar">
+ <?php
+ if ( is_active_sidebar( 'primary' ) ) :
+ dynamic_sidebar( 'primary' );
+ else :
+ echo '<p class="no-widgets">Oops! Looks like you need to configure some widgets for this area.<br /> Click <a href="wp-admin/widgets.php">here</a> to do so.</p>';
+ endif;
+ ?>
+
+ </div>
Oops, something went wrong.

0 comments on commit 12e6a10

Please sign in to comment.