Permalink
Browse files

Importing the theme files and switching back to Hybrid Core trunk.

git-svn-id: http://svn.locallylost.com/themes/retro-fitted/trunk@536 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent fea0318 commit 74eeed151312c7e2980e7056b6c4530b741c02f4 greenshady committed Dec 13, 2010
View
@@ -0,0 +1,53 @@
+<?php
+/**
+ * 404 Template
+ *
+ * The 404 template is used when a reader visits an invalid URL on your site. By default, the template will
+ * display a generic message.
+ *
+ * @package Retro-fitted
+ * @subpackage Template
+ * @link http://codex.wordpress.org/Creating_an_Error_404_Page
+ */
+
+@header( 'HTTP/1.1 404 Not found', true, 404 );
+
+get_header(); // Loads the header.php template. ?>
+
+ <?php do_atomic( 'before_content' ); // retro-fitted_before_content ?>
+
+ <div id="content">
+
+ <?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
+
+ <?php do_atomic( 'open_content' ); // retro-fitted_open_content ?>
+
+ <div class="hfeed">
+
+ <div id="post-0" class="<?php hybrid_entry_class(); ?>">
+
+ <h1 class="error-404-title entry-title"><?php _e( 'Not Found', hybrid_get_textdomain() ); ?></h1>
+
+ <div class="entry-content">
+
+ <p>
+ <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', hybrid_get_textdomain() ), '<code>' . site_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
+ </p>
+
+ <?php get_search_form(); // Loads the searchform.php template. ?>
+
+ </div><!-- .entry-content -->
+
+ </div><!-- .hentry -->
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // retro-fitted_close_content ?>
+
+ <?php get_sidebar( 'after-content' ); // Loads the sidebar-after-content.php template. ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // retro-fitted_after_content ?>
+
+<?php get_footer(); // Loads the footer.php template. ?>
View
@@ -0,0 +1,74 @@
+<?php
+/**
+ * Archive Template
+ *
+ * The archive template is the default template used for archives pages without a more specific template.
+ *
+ * @package Retro-fitted
+ * @subpackage Template
+ */
+
+get_header(); // Loads the header.php template. ?>
+
+ <?php do_atomic( 'before_content' ); // retro-fitted_before_content ?>
+
+ <div id="content">
+
+ <?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
+
+ <?php do_atomic( 'open_content' ); // retro-fitted_open_content ?>
+
+ <div class="hfeed">
+
+ <?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php do_atomic( 'before_entry' ); // retro-fitted_before_entry ?>
+
+ <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // retro-fitted_open_entry ?>
+
+ <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail' ) ); ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
+
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-summary -->
+
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="| Tagged "] [entry-comments-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+
+ <?php do_atomic( 'close_entry' ); // retro-fitted_close_entry ?>
+
+ </div><!-- .hentry -->
+
+ <?php do_atomic( 'after_entry' ); // retro-fitted_after_entry ?>
+
+ <?php endwhile; ?>
+
+ <?php else : ?>
+
+ <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // retro-fitted_close_content ?>
+
+ <?php get_sidebar( 'after-content' ); // Loads the sidebar-after-content.php template. ?>
+
+ <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // retro-fitted_after_content ?>
+
+<?php get_footer(); // Loads the footer.php template. ?>
View
@@ -0,0 +1,87 @@
+<?php
+/**
+ * Attachment Template
+ *
+ * This is the default attachment template. It is used when visiting the singular view of a post attachment
+ * page (images, videos, audio, etc.).
+ *
+ * @package Retro-fitted
+ * @subpackage Template
+ */
+
+get_header(); // Loads the header.php template. ?>
+
+ <?php do_atomic( 'before_content' ); // retro-fitted_before_content ?>
+
+ <div id="content">
+
+ <?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
+
+ <?php do_atomic( 'open_content' ); // retro-fitted_open_content ?>
+
+ <div class="hfeed">
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php do_atomic( 'before_entry' ); // retro-fitted_before_entry ?>
+
+ <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // retro-fitted_open_entry ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
+
+ <div class="entry-content">
+ <?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
+
+ <p class="attachment-image">
+ <?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
+ </p><!-- .attachment-image -->
+
+ <?php else : ?>
+
+ <?php hybrid_attachment(); // Function for handling non-image attachments. ?>
+
+ <p class="download">
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
+ </p><!-- .download -->
+
+ <?php endif; ?>
+
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php if ( wp_attachment_is_image( get_the_ID() ) ) echo do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
+
+ <?php do_atomic( 'close_entry' ); // retro-fitted_close_entry ?>
+
+ </div><!-- .hentry -->
+
+ <?php do_atomic( 'after_entry' ); // retro-fitted_after_entry ?>
+
+ <?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
+
+ <?php do_atomic( 'after_singular' ); // retro-fitted_after_singular ?>
+
+ <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
+
+ <?php endwhile; ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // retro-fitted_close_content ?>
+
+ <?php get_sidebar( 'after-content' ); // Loads the sidebar-after-content.php template. ?>
+
+ <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // retro-fitted_after_content ?>
+
+<?php get_footer(); // Loads the footer.php template. ?>
View
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Comment Template
+ *
+ * The comment template displays an individual comment. This can be overwritten by templates specific
+ * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
+ * comment-trackback.php) in a child theme.
+ *
+ * @package Retro-fitted
+ * @subpackage Template
+ */
+
+ global $post, $comment;
+?>
+
+ <li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
+
+ <?php do_atomic( 'before_comment' ); // retro-fitted_before_comment ?>
+
+ <div class="comment-wrap">
+
+ <?php do_atomic( 'open_comment' ); // retro-fitted_open_comment ?>
+
+ <?php echo hybrid_avatar(); ?>
+
+ <?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link before="| "]</div>' ); ?>
+
+ <div class="comment-content comment-text">
+ <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', hybrid_get_textdomain() ) . '</p>' ); ?>
+ <?php endif; ?>
+
+ <?php comment_text( $comment->comment_ID ); ?>
+ </div><!-- .comment-content .comment-text -->
+
+ <?php do_atomic( 'close_comment' ); // retro-fitted_close_comment ?>
+
+ </div><!-- .comment-wrap -->
+
+ <?php do_atomic( 'after_comment' ); // retro-fitted_after_comment ?>
+
+ <?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
View
@@ -0,0 +1,70 @@
+<?php
+/**
+ * Comments Template
+ *
+ * Lists comments and calls the comment form. Individual comments have their own templates. The
+ * hierarchy for these templates is $comment_type.php, comment.php.
+ *
+ * @package Retro-fitted
+ * @subpackage Template
+ */
+
+/* Kill the page if trying to access this template directly. */
+if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
+ die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );
+
+/* If a post password is required or no comments are given and comments/pings are closed, return. */
+if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
+ return;
+?>
+
+<div id="comments-template">
+
+ <div class="comments-wrap">
+
+ <div id="comments">
+
+ <?php if ( have_comments() ) : ?>
+
+ <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>
+
+ <?php do_atomic( 'before_comment_list' );// retro-fitted_before_comment_list ?>
+
+ <?php if ( get_option( 'page_comments' ) ) : ?>
+ <div class="comments-nav">
+ <span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', hybrid_get_textdomain() ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
+ <?php previous_comments_link(); ?>
+ <?php next_comments_link(); ?>
+ </div><!-- .comments-nav -->
+ <?php endif; ?>
+
+ <ol class="comment-list">
+ <?php wp_list_comments( hybrid_list_comments_args() ); ?>
+ </ol><!-- .comment-list -->
+
+ <?php do_atomic( 'after_comment_list' ); // retro-fitted_after_comment_list ?>
+
+
+ <?php endif; ?>
+
+ <?php if ( pings_open() && !comments_open() ) : ?>
+
+ <p class="comments-closed pings-open">
+ <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), get_trackback_url() ); ?>
+ </p><!-- .comments-closed .pings-open -->
+
+ <?php elseif ( !comments_open() ) : ?>
+
+ <p class="comments-closed">
+ <?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
+ </p><!-- .comments-closed -->
+
+ <?php endif; ?>
+
+ </div><!-- #comments -->
+
+ <?php comment_form(); // Loads the comment form. ?>
+
+ </div><!-- .comments-wrap -->
+
+</div><!-- #comments-template -->
Oops, something went wrong.

0 comments on commit 74eeed1

Please sign in to comment.