Skip to content

Commit

Permalink
Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Motto committed Sep 16, 2012
0 parents commit a247ad8
Show file tree
Hide file tree
Showing 22 changed files with 1,043 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 404.php
@@ -0,0 +1,5 @@
<?php get_header(); ?>

<h2>Page not found</h2>

<?php get_footer(); ?>
62 changes: 62 additions & 0 deletions archive.php
@@ -0,0 +1,62 @@
<?php get_header(); ?>

<?php if (have_posts()): ?>

<h2>Archives</h2>

<!-- Section -->
<section>

<?php while (have_posts()) : the_post(); ?>

<!-- Article -->
<article>

<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
<?php the_post_thumbnail(array(120,120)); // Show Thumbnail at 120px by 120px, change to whatever size you need ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->

<!-- Post Title -->
<h2>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->

<!-- Post Date + Time -->
<span class="date"><?php the_date(); ?></span>
<span class="time"><?php the_time(); ?></span>
<!-- /Post Date + Time -->

<?php comments_popup_link('Leave your thoughts', '1 Comment', '% Comments'); // Comments ?>

<?php html5wp_excerpt('html5wp_index'); // Callback length customisable in functions.php ?>

<br class="clear">

<?php edit_post_link(); // Always handy to have Edit Post Links available ?>

</article>
<!-- /Article -->

<?php endwhile; ?>

</section>
<!-- /Section -->

<?php else: ?>

<h2>Sorry, no posts to display!</h2>

<?php endif; ?>

<div id="pagination">
<?php html5wp_pagination(); // Pagination links (inside Functions.php) ?>
</div>

<?php get_sidebar(); // Get Sidebar (sidebar.php) ?>

<?php get_footer(); ?>
71 changes: 71 additions & 0 deletions author.php
@@ -0,0 +1,71 @@
<?php get_header(); ?>

<?php if (have_posts()): the_post(); ?>

<h2>Author Archives for <?php echo get_the_author() ; ?></h2>

<?php if ( get_the_author_meta( 'description' ) ) : ?>
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ); ?>
<h3>About <?php echo get_the_author() ; ?></h3>
<?php the_author_meta( 'description' ); ?>
<?php endif; ?>

<!-- Section -->
<section>

<?php rewind_posts(); while (have_posts()) : the_post(); ?>

<!-- Article -->
<article>

<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
<?php
the_post_thumbnail(array(120,120));
// Show Thumbnail at 120px by 120px, change to whatever size you need or use custom size in function.php
?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->

<!-- Post Title -->
<h2>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->

<!-- Post Date + Time -->
<span class="date"><?php the_date(); ?></span>
<span class="time"><?php the_time(); ?></span>
<!-- /Post Date + Time -->

<?php comments_popup_link('Leave your thoughts', '1 Comment', '% Comments'); // Comments ?>

<?php html5wp_excerpt('html5wp_index'); // Callback length customisable in functions.php ?>

<br class="clear">

<?php edit_post_link(); // Always handy to have Edit Post Links available ?>

</article>
<!-- /Article -->

<?php endwhile; ?>

</section>
<!-- /Section -->

<?php else: ?>

<h2>No posts from <?php echo get_the_author() ; ?></h2>

<?php endif; ?>

<div id="pagination">
<?php html5wp_pagination(); // Pagination links (inside Functions.php) ?>
</div>

<?php get_sidebar(); // Get Sidebar (sidebar.php) ?>

<?php get_footer(); ?>
62 changes: 62 additions & 0 deletions category.php
@@ -0,0 +1,62 @@
<?php get_header(); ?>

<?php if (have_posts()): ?>

<h2>Archives</h2>

<!-- Section -->
<section>

<?php while (have_posts()) : the_post(); ?>

<!-- Article -->
<article>

<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
<?php the_post_thumbnail(array(120,120)); // Show Thumbnail at 120px by 120px, change to whatever size you need ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->

<!-- Post Title -->
<h2>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->

<!-- Post Date + Time -->
<span class="date"><?php the_date(); ?></span>
<span class="time"><?php the_time(); ?></span>
<!-- /Post Date + Time -->

<?php comments_popup_link('Leave your thoughts', '1 Comment', '% Comments'); // Comments ?>

<?php html5wp_excerpt('html5wp_index'); // Callback length customisable in functions.php ?>

<br class="clear">

<?php edit_post_link(); // Always handy to have Edit Post Links available ?>

</article>
<!-- /Article -->

<?php endwhile; ?>

</section>
<!-- /Section -->

<?php else: ?>

<h2>Sorry, nothing in this category.</h2>

<?php endif; ?>

<div id="pagination">
<?php html5wp_pagination(); // Pagination links (inside Functions.php) ?>
</div>

<?php get_sidebar(); // Get Sidebar (sidebar.php) ?>

<?php get_footer(); ?>
22 changes: 22 additions & 0 deletions comments.php
@@ -0,0 +1,22 @@
<div id="comments">
<?php if (post_password_required()) : ?>
<p>This post is password protected. Enter the password to view any comments.</p>
</div>

<?php return; endif; ?>

<?php if (have_comments()) : ?>

<h2><?php comments_number(); ?></h2>

<ul>
<?php wp_list_comments(); ?>
</ul>

<?php elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : ?>

<p>Comments are closed here.</p>

<?php endif; ?>

<?php comment_form(); ?>
25 changes: 25 additions & 0 deletions footer.php
@@ -0,0 +1,25 @@
<footer>
&copy; <?php echo date("Y"); ?> Copyright.
</footer>

<?php wp_footer(); ?>

</div>
<!-- /Wrapper -->

<!-- Optimised Asynchronous Google Analytics -->
<script>
var _gaq=[['_setAccount','UA-XXXXXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
<!-- /Optimised Asynchronous Google Analytics -->

<!-- Protocol Relative jQuery fall back if Google CDN offline -->
<script>
window.jQuery || document.write('<script src="<?php bloginfo('template_url'); ?>/js/jquery-1.8.1.min.js"><\/script>')
</script>

</body>
</html>

0 comments on commit a247ad8

Please sign in to comment.