Permalink
Browse files

Major Update with Internationalization and the LifeGuard Help Plugin

Added the LifeGuard Help Plugin – More info Internationalization
Commented out the Post Format Support as most users to not use this
feature Added a ul to the sidebar – thanks to Margarita for pointing
this out Prep work to be accepted into the WordPress.org Theme Directory
Modified: style.css Fixed some minor indention issues Theme clean up
Added post thumbnails to the RSS feed Removed the WordPress version from
the head for security reasons Minor bug fix with the WordPress header
image – thanks to David Ainsburg for pointing it out.
  • Loading branch information...
1 parent 83a71fe commit 82d3b9fc26073bf92c97c8c5fec4623e9be25225 Brian Purkiss committed Dec 13, 2011
View
Binary file not shown.
View
@@ -1,10 +1,10 @@
<?php get_header(); ?>
<div id="content">
<div id="error404" class="post">
- <h1>Error 404 Not Found</h1>
+ <h1><?php _e('Error 404 Not Found'); ?></h1>
<div class="post-content">
- <p>Oops. Fail. The page cannot be found.</p>
- <p>Please check your URL or use the search form below.</p>
+ <p><?php _e('Oops. Fail. The page cannot be found.'); ?></p>
+ <p><?php _e('Please check your URL or use the search form below.'); ?></p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div><!--.post-content-->
</div><!--#error404 .post-->
@@ -17,43 +17,29 @@
<div class="post-single">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <p>
- Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?>, by <?php the_author_posts_link() ?>
- </p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
<div class="post-excerpt">
<?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
</div>
<div class="post-meta">
- <p>
- <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
- <br />
- Categories: <?php the_category(', ') ?>
- <br />
- <?php if (the_tags('Tags: ', ', ', ' ')); ?>
- </p>
+ <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
+ <p><?php _e('Categories: '); the_category(', ') ?></p>
+ <p><?php if (the_tags('Tags: ', ', ', ' ')); ?></p>
</div><!--.postMeta-->
</div><!--.post-single-->
<?php endwhile; else: ?>
<div class="no-results">
- <p><strong>There has been an error.</strong></p>
- <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
+ <p><strong><?php _e('There has been an error.'); ?></strong></p>
+ <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.'); ?></p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div><!--noResults-->
<?php endif; ?>
- <nav class="oldernewer">
- <div class="older">
- <p>
- <?php next_posts_link('&laquo; Older Entries') ?>
- </p>
- </div><!--.older-->
- <div class="newer">
- <p>
- <?php previous_posts_link('Newer Entries &raquo;') ?>
- </p>
- </div><!--.older-->
- </nav><!--.oldernewer-->
+ <div class="oldernewer">
+ <p class="older"><?php next_posts_link('&laquo; Older Entries') ?></p>
+ <p class="newer"><?php previous_posts_link('Newer Entries &raquo;') ?></p>
+ </div><!--.oldernewer-->
</div><!--#content-->
<?php get_sidebar(); ?>
View
@@ -8,59 +8,51 @@
endif;
?>
<div class="author">
- <h1>About: <?php echo $curauth->display_name; ?></h1>
- <p class="avatar">
- <?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '180' ); } /* Displays the Gravatar based on the author's email address. Visit Gravatar.com for info on Gravatars */ ?>
- </p>
+ <h1><?php _e('About:'); ?> <?php echo $curauth->display_name; ?></h1>
+ <p class="avatar"><?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '180' ); } /* Displays the Gravatar based on the author's email address. Visit Gravatar.com for info on Gravatars */ ?></p>
<?php if($curauth->description !="") { /* Displays the author's description from their Wordpress profile */ ?>
<p><?php echo $curauth->description; ?></a></p>
<?php } ?>
</div><!--.author-->
<div id="recent-author-posts">
- <h3>Recent Posts by <?php echo $curauth->display_name; ?></h3>
+ <h3><?php _e('Recent Posts by '); echo $curauth->display_name; ?></h3>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); /* Displays the most recent posts by that author. Note that this does not display custom content types */ ?>
<?php static $count = 0;
- if ($count == "5") // Number of posts to display
- { break; }
- else { ?>
- <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
- <?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <div class="post-excerpt">
- <?php the_excerpt(); /* the excerpt is loaded to avoid duplicate content */ ?>
- </div><!--.postContent-->
- <div class="post-meta">
- <p>
- Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?><br />
- Categories: <?php the_category(', ');?>
- <?php the_tags('<br />Tags: ', ', ', ' '); ?>
- </p>
- </div><!--.postMeta-->
+ if ($count == "5") // Number of posts to display
+ { break; }
+ else { ?>
+ <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
+ <?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
+ <div class="post-excerpt">
+ <?php the_excerpt(); /* the excerpt is loaded to avoid duplicate content */ ?>
+ </div><!--.postContent-->
+ <div class="post-meta">
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() ?></p>
+ <p><?php _e('Categories: '); the_category(', ');?></p>
+ <p><?php the_tags('<br />Tags: ', ', ', ' '); ?></p>
+ </div><!--.postMeta-->
<?php $count++; } ?>
<?php endwhile; else: ?>
- <p>
- No posts by <?php echo $curauth->display_name; ?> yet.
- </p>
+ <p><?php _e('No posts by '); echo $curauth->display_name; ?> yet.</p>
<?php endif; ?>
</div><!--#recentPosts-->
<div id="recent-author-comments">
- <h3>Recent Comments by <?php echo $curauth->display_name; ?></h3>
+ <h3><?php _e('Recent Comments by '); echo $curauth->display_name; ?></h3>
+ <?php
+ $number=5; // number of recent comments to display
+ $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' and comment_author_email='$curauth->user_email' ORDER BY comment_date_gmt DESC LIMIT $number");
+ ?>
+ <ul>
<?php
- $number=5; // number of recent comments to display
- $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' and comment_author_email='$curauth->user_email' ORDER BY comment_date_gmt DESC LIMIT $number");
- ?>
- <ul>
- <?php
- if ( $comments ) : foreach ( (array) $comments as $comment) :
- echo '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_date(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
- endforeach; else: ?>
- <p>
- No comments by <?php echo $curauth->display_name; ?> yet.
- </p>
- <?php endif; ?>
- </ul>
+ if ( $comments ) : foreach ( (array) $comments as $comment) :
+ echo '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_date(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
+ endforeach; else: ?>
+ <p><?php _e('No comments by '); echo $curauth->display_name; ?></p>
+ <?php endif; ?>
+ </ul>
</div><!--#recentAuthorComments-->
</div><!--#content-->
<?php get_footer(); ?>
@@ -9,41 +9,29 @@
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?>
- <p>Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?>, by <?php the_author_posts_link() ?></p>
+ <p><?php _e('Written on '); the_time('F j, Y'); _e(' at '); the_time() _e(', by '); the_author_posts_link() ?></p>
<div class="post-excerpt">
<?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
</div>
<div class="post-meta">
- <p>
- <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
- <br />
- Categories: <?php the_category(', ') ?>
- <br />
- <?php if (the_tags('Tags: ', ', ', ' ')); ?>
- </p>
+ <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
+ <p><?php _e('Categories:'); ?> <?php the_category(', ') ?></p>
+ <p><?php if (the_tags('Tags: ', ', ', ' ')); ?></p>
</div><!--.postMeta-->
</div><!--.post-single-->
<?php endwhile; else: ?>
<div class="no-results">
- <p><strong>There has been an error.</strong></p>
- <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
+ <p><strong><?php _e('There has been an error.'); ?></strong></p>
+ <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.'); ?></p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div><!--noResults-->
<?php endif; ?>
- <nav class="oldernewer">
- <div class="older">
- <p>
- <?php next_posts_link('&laquo; Older Entries') ?>
- </p>
- </div><!--.older-->
- <div class="newer">
- <p>
- <?php previous_posts_link('Newer Entries &raquo;') ?>
- </p>
- </div><!--.older-->
- </nav><!--.oldernewer-->
+ <div class="oldernewer">
+ <p class="older"><?php next_posts_link('&laquo; Older Entries') ?></p>
+ <p class="newer"><?php previous_posts_link('Newer Entries &raquo;') ?></p>
+ </div><!--.oldernewer-->
</div><!--#content-->
<?php get_sidebar(); ?>
@@ -20,7 +20,7 @@
<li id="comment-<?php comment_ID(); ?>" class="comment <?php if($i&1) { echo 'odd';} else {echo 'even';} ?> <?php $user_info = get_userdata(1); if ($user_info->ID == $comment->user_id) echo 'authorComment'; ?> <?php if ($comment->user_id > 0) echo 'user-comment'; ?>">
<?php if ($comment->comment_approved == '0') : ?> <!-- if comment is awaiting approval -->
<p class="waiting-for-approval">
- <em>Your comment is awaiting approval.</em>
+ <em><?php _e('Your comment is awaiting approval.'); ?></em>
</p>
<?php endif; ?>
<div class="comment-text">
@@ -48,47 +48,45 @@
</ol>
<?php } ?>
<?php else : ?>
- <p>No comments yet. You should be kind and add one!</p>
+ <p><?php _e('No comments yet. You should be kind and add one!'); ?></p>
<?php endif; ?>
<div id="comments-form">
<?php if(comments_open()) : ?>
- <?php if(get_option('comment_registration') && !$user_ID) : ?>
- <p>Our apologies, 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>
- Allowed HTML tags: <?php echo allowed_tags(); /* outputs the html tags that are allowed in comments */ ?>
- </p>
- <p>
- <label for="author"><small>Name <?php if($req) echo "(required)"; ?></small></label>
- <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
- </p>
- <p>
- <label for="email"><small>Mail (will not be published) <?php if($req) echo "(required)"; ?></small></label>
- <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
- </p>
- <p>
- <label for="url"><small>Website</small></label>
- <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
- </p>
- <?php endif; ?>
- <p>
- <label for="comment"><small>Comment</small></label>
- <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
- </p>
- <p>
- <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
- <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
- </p>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- <p><small>By submitting a comment you grant <?php bloginfo('name'); ?> a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.</small></p>
- <?php endif; ?>
+ <?php if(get_option('comment_registration') && !$user_ID) : ?>
+ <p><?php _e('Our apologies, you must be '); ?><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in'); ?></a><?php _e(' 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><?php _e('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"><?php _e('Log out'); ?> &raquo;</a></p>
+ <?php else : ?>
+ <p><?php _e('Allowed HTML tags:'); ?> <?php echo allowed_tags(); /* outputs the html tags that are allowed in comments */ ?></p>
+ <p>
+ <label for="author"><small><?php _e('Name'); ?> <?php if($req) echo "(required)"; ?></small></label>
+ <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
+ </p>
+ <p>
+ <label for="email"><small><?php _e('Mail (will not be shared)'); ?> <?php if($req) echo "(required)"; ?></small></label>
+ <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
+ </p>
+ <p>
+ <label for="url"><small><?php _e('Website'); ?></small></label>
+ <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
+ </p>
+ <?php endif; ?>
+ <p>
+ <label for="comment"><small><?php _e('Comment'); ?></small></label>
+ <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
+ </p>
+ <p>
+ <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
+ <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
+ </p>
+ <?php do_action('comment_form', $post->ID); ?>
+ </form>
+ <p><small><?php _e('By submitting a comment you grant '); bloginfo('name'); _e(' a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.'); ?></small></p>
+ <?php endif; ?>
<?php else : ?>
- <p>The comments are closed.</p>
+ <p><?php _e('The comments are closed.'); ?></p>
<?php endif; ?>
</div><!--#commentsForm-->
</div><!--#comments-->
View
@@ -2,16 +2,14 @@
</div><!--.container-->
<div id="footer"><footer>
<div class="container">
- <div id="footer-content">
- <?php if ( ! dynamic_sidebar( 'Footer' ) ) : ?><!--Wigitized Footer--><?php endif ?>
- <div id="nav-footer" class="nav"><nav>
- <?php wp_nav_menu( array('theme_location' => 'footer-menu' )); /* editable within the Wordpress backend */ ?>
- </nav></div><!--#nav-footer-->
- <p class="clear"><a href="#main">Top</a></p>
- <p><a href="<?php bloginfo('rss2_url'); ?>" rel="nofollow">Entries (RSS)</a> | <a href="<?php bloginfo('comments_rss2_url'); ?>" rel="nofollow">Comments (RSS)</a></p>
- <p>&copy; <?php echo date("Y") ?> <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a>. All Rights Reserved.</p>
- <p>Built on the <a href="http://whiteboardframework.com/">Whiteboard Framework for Wordpress</a> <span class="amp">&amp;</span> <a href="http://lessframework.com">Less Framework</a>. Powered by <a href="http://wordpress.org">Wordpress</a>.</p><?php /* Whiteboard Framework is free to use. You are only required to keep a link in the CSS. We do not require a link on the site, though we do greatly appreciate it. Likewise, Less Framework is free to use. Links are not required on the website or in the CSS but are greatly appreciated. */ ?>
- </div><!--#footer-content-->
+ <?php if ( ! dynamic_sidebar( 'Footer' ) ) : ?><!--Wigitized Footer--><?php endif ?>
+ <div id="nav-footer" class="nav"><nav>
+ <?php wp_nav_menu( array('theme_location' => 'footer-menu' )); /* editable within the Wordpress backend */ ?>
+ </nav></div><!--#nav-footer-->
+ <p class="clear"><a href="#main"><?php _e('Top'); ?></a></p>
+ <p><a href="<?php bloginfo('rss2_url'); ?>" rel="nofollow"><?php _e('Entries (RSS)'); ?></a> | <a href="<?php bloginfo('comments_rss2_url'); ?>" rel="nofollow"><?php _e('Comments (RSS)'); ?></a></p>
+ <p>&copy; <?php echo date("Y") ?> <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a>. <?php _e('All Rights Reserved.'); ?></p>
+ <p><?php _e('Built on the'); ?> <a href="http://whiteboardframework.com/">Whiteboard Framework for Wordpress</a> <span class="amp">&amp;</span> <a href="http://lessframework.com">Less Framework</a>. <?php _e('Powered by'); ?> <a href="http://wordpress.org">Wordpress</a>.</p><?php /* Whiteboard Framework is free to use. You are only required to keep a link in the CSS. We do not require a link on the site, though we do greatly appreciate it. Likewise, Less Framework is free to use. Links are not required on the website or in the CSS but are greatly appreciated. */ ?>
</div><!--.container-->
</footer></div><!--#footer-->
</div><!--#main-->
Oops, something went wrong.

1 comment on commit 82d3b9f

@Djyp
Djyp commented on 82d3b9f Jul 10, 2013

Nice ! If you tell me how to create the translation file I'll translate all this in French !

Please sign in to comment.