Skip to content

Commit 5bf9ff9

Browse files
author
Eddie Machado
committed
added all theme files
1 parent 45b69a8 commit 5bf9ff9

31 files changed

+3044
-0
lines changed

404.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php get_header(); ?>
2+
3+
<div id="content" class="clear">
4+
5+
<div id="main" class="col620 clear" role="main">
6+
7+
<article id="post-not-found" class="clear">
8+
9+
<header>
10+
11+
<h1>Epic 404 - Article Not Found</h1>
12+
13+
</header> <!-- end article header -->
14+
15+
<section class="post_content">
16+
17+
<p>The article you were looking for was not found, but maybe try looking again!</p>
18+
19+
</section> <!-- end article section -->
20+
21+
<footer>
22+
23+
</footer> <!-- end article footer -->
24+
25+
</article> <!-- end article -->
26+
27+
</div> <!-- end #main -->
28+
29+
</div> <!-- end #content -->
30+
31+
<?php get_footer(); ?>

archive.php

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php get_header(); ?>
2+
3+
<div id="content" class="clear">
4+
5+
<div id="main" class="col620 clear" role="main">
6+
7+
<?php if (is_category()) { ?>
8+
<h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
9+
<?php } elseif (is_tag()) { ?>
10+
<h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
11+
<?php } elseif (is_author()) { ?>
12+
<h1 class="archive_title h2"><span>Posts By:</span> <?php echo get_author_name(get_query_var('author')); ?></h1>
13+
<?php } elseif (is_day()) { ?>
14+
<h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
15+
<?php } elseif (is_month()) { ?>
16+
<h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
17+
<?php } elseif (is_year()) { ?>
18+
<h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
19+
<?php } ?>
20+
21+
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
22+
23+
<article id="post-<?php the_ID(); ?>" class="clear">
24+
25+
<header>
26+
27+
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
28+
29+
<p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
30+
31+
</header> <!-- end article header -->
32+
33+
<section class="post_content">
34+
<?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
35+
36+
</section> <!-- end article section -->
37+
38+
<footer>
39+
40+
</footer> <!-- end article footer -->
41+
42+
</article> <!-- end article -->
43+
44+
<?php endwhile; ?>
45+
46+
<?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
47+
48+
<?php page_navi(); // use the page navi function ?>
49+
50+
<?php } else { // if it is disabled, display regular wp prev & next links ?>
51+
<nav class="wp-prev-next">
52+
<ul class="clear">
53+
<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
54+
<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
55+
</ul>
56+
</nav>
57+
<?php } ?>
58+
59+
60+
<?php else : ?>
61+
62+
<article id="post-not-found">
63+
<header>
64+
<h1>No Posts Yet</h1>
65+
</header>
66+
<section class="post_content">
67+
<p>Sorry, but the requested resource was not found on this site.</p>
68+
</section>
69+
<footer>
70+
</footer>
71+
</article>
72+
73+
<?php endif; ?>
74+
75+
</div> <!-- end #main -->
76+
77+
<?php get_sidebar(); // sidebar 1 ?>
78+
79+
</div> <!-- end #content -->
80+
81+
<?php get_footer(); ?>

comments.php

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?php
2+
/*
3+
The comments page for Bones
4+
*/
5+
6+
// Do not delete these lines
7+
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
8+
die ('Please do not load this page directly. Thanks!');
9+
10+
if ( post_password_required() ) { ?>
11+
<div class="help">
12+
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
13+
</div>
14+
<?php
15+
return;
16+
}
17+
?>
18+
19+
<!-- You can start editing here. -->
20+
21+
<?php if ( have_comments() ) : ?>
22+
23+
<h3 id="comments" class="h2"><?php comments_number('<span>No</span> Responses', '<span>One</span> Response', '<span>%</span> Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
24+
25+
<nav id="comment-nav">
26+
<ul class="clear">
27+
<li><?php previous_comments_link() ?></li>
28+
<li><?php next_comments_link() ?></li>
29+
</ul>
30+
</nav>
31+
32+
<ol class="commentlist">
33+
<?php wp_list_comments('type=comment&callback=bones_comments'); ?>
34+
</ol>
35+
36+
<nav id="comment-nav">
37+
<ul class="clear">
38+
<li><?php previous_comments_link() ?></li>
39+
<li><?php next_comments_link() ?></li>
40+
</ul>
41+
</nav>
42+
43+
<?php else : // this is displayed if there are no comments so far ?>
44+
45+
<?php if ( comments_open() ) : ?>
46+
<!-- If comments are open, but there are no comments. -->
47+
48+
<?php else : // comments are closed ?>
49+
<!-- If comments are closed. -->
50+
<p class="nocomments">Comments are closed.</p>
51+
52+
<?php endif; ?>
53+
54+
<?php endif; ?>
55+
56+
57+
<?php if ( comments_open() ) : ?>
58+
59+
<section id="respond">
60+
61+
<h3 id="comment-form-title" class="h2"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
62+
63+
<div id="cancel-comment-reply">
64+
<p class="small"><?php cancel_comment_reply_link(); ?></p>
65+
</div>
66+
67+
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
68+
<div class="help">
69+
<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
70+
</div>
71+
<?php else : ?>
72+
73+
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
74+
75+
<?php if ( is_user_logged_in() ) : ?>
76+
77+
<p class="comments-logged-in-as">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>
78+
79+
<?php else : ?>
80+
81+
<ul id="comment-form-elements" class="clear">
82+
83+
<li>
84+
<label for="author">Name <?php if ($req) echo "(required)"; ?></label>
85+
<input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="Your Name" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
86+
</li>
87+
88+
<li>
89+
<label for="email">Mail <?php if ($req) echo "(required)"; ?></label>
90+
<input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="Your Email" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
91+
<small>(will not be published)</small>
92+
</li>
93+
94+
<li>
95+
<label for="url">Website</label>
96+
<input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="Your Website" tabindex="3" />
97+
</li>
98+
99+
</ul>
100+
101+
<?php endif; ?>
102+
103+
<p><textarea name="comment" id="comment" placeholder="Your Comment Here..." tabindex="4"></textarea></p>
104+
105+
<p>
106+
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
107+
<?php comment_id_fields(); ?>
108+
</p>
109+
110+
<p id="allowed_tags"><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>
111+
112+
<?php do_action('comment_form', $post->ID); ?>
113+
114+
</form>
115+
116+
<?php endif; // If registration required and not logged in ?>
117+
</section>
118+
119+
<?php endif; // if you delete this the sky will fall on your head ?>

favicon.ico

1.12 KB
Binary file not shown.

footer.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<footer role="contentinfo">
2+
3+
<div id="inner-footer">
4+
5+
<nav role="navigation">
6+
<?php bones_footer_links(); // Adjust using Menus in Wordpress Admin ?>
7+
</nav>
8+
9+
<p class="attribution">&copy; <?php bloginfo('name'); ?> is powered by <a href="http://wordpress.org/" title="WordPress">Wordpress</a> <span class="amp">&</span> <a rel="nofollow" href="http://www.themble.com/bones" title="Bones" class="footer_bones_link">Bones</a>.</p>
10+
11+
</div> <!-- end #inner-footer -->
12+
13+
</footer> <!-- end footer -->
14+
15+
</div> <!-- end #container -->
16+
17+
<?php wp_footer(); // js scripts are inserted using this function ?>
18+
19+
<!-- custom scripts -->
20+
<script src="<?php bloginfo('template_directory'); ?>/library/js/scripts.js"></script>
21+
22+
<!--[if lt IE 7 ]>
23+
<script src="<?php bloginfo('template_directory'); ?>/library/js/libs/dd_belatedpng.js"></script>
24+
<script> DD_belatedPNG.fix('img, .png_bg'); </script>
25+
<![endif]-->
26+
27+
<!-- Insert Analytics -->
28+
29+
<!-- End Analytics -->
30+
31+
</body>
32+
33+
</html>

0 commit comments

Comments
 (0)