|
|
@@ -4,7 +4,7 @@ Author: Eddie Machado
|
|
|
URL: htp://themble.com/bones/
|
|
|
|
|
|
This is where you can drop your custom functions or
|
|
|
-just edit things like thumbnail sizes, header images,
|
|
|
+just edit things like thumbnail sizes, header images,
|
|
|
sidebars, comments, ect.
|
|
|
*/
|
|
|
|
|
|
@@ -50,8 +50,8 @@ require_once('library/custom-post-type.php'); // you can disable this if you lik
|
|
|
// Thumbnail sizes
|
|
|
add_image_size( 'bones-thumb-600', 600, 150, true );
|
|
|
add_image_size( 'bones-thumb-300', 300, 100, true );
|
|
|
-/*
|
|
|
-to add more sizes, simply copy a line from above
|
|
|
+/*
|
|
|
+to add more sizes, simply copy a line from above
|
|
|
and change the dimensions & name. As long as you
|
|
|
upload a "featured image" as large as the biggest
|
|
|
set width or height, all the other sizes will be
|
|
|
@@ -60,7 +60,7 @@ auto-cropped.
|
|
|
To call a different size, simply change the text
|
|
|
inside the thumbnail function.
|
|
|
|
|
|
-For example, to call the 300 x 300 sized image,
|
|
|
+For example, to call the 300 x 300 sized image,
|
|
|
we would use the function:
|
|
|
<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
|
|
|
for the 600 x 100 image:
|
|
|
@@ -83,15 +83,15 @@ function bones_register_sidebars() {
|
|
|
'before_title' => '<h4 class="widgettitle">',
|
|
|
'after_title' => '</h4>',
|
|
|
));
|
|
|
-
|
|
|
- /*
|
|
|
+
|
|
|
+ /*
|
|
|
to add more sidebars or widgetized areas, just copy
|
|
|
- and edit the above sidebar code. In order to call
|
|
|
+ and edit the above sidebar code. In order to call
|
|
|
your new sidebar just use the following code:
|
|
|
-
|
|
|
+
|
|
|
Just change the name to whatever your new
|
|
|
sidebar's id is, for example:
|
|
|
-
|
|
|
+
|
|
|
register_sidebar(array(
|
|
|
'id' => 'sidebar2',
|
|
|
'name' => __('Sidebar 2', 'bonestheme'),
|
|
|
@@ -101,28 +101,28 @@ function bones_register_sidebars() {
|
|
|
'before_title' => '<h4 class="widgettitle">',
|
|
|
'after_title' => '</h4>',
|
|
|
));
|
|
|
-
|
|
|
+
|
|
|
To call the sidebar in your template, you can just copy
|
|
|
the sidebar.php file and rename it to your sidebar's name.
|
|
|
So using the above example, it would be:
|
|
|
sidebar-sidebar2.php
|
|
|
-
|
|
|
+
|
|
|
*/
|
|
|
} // don't remove this bracket!
|
|
|
|
|
|
/************* COMMENT LAYOUT *********************/
|
|
|
-
|
|
|
+
|
|
|
// Comment Layout
|
|
|
function bones_comments($comment, $args, $depth) {
|
|
|
$GLOBALS['comment'] = $comment; ?>
|
|
|
<li <?php comment_class(); ?>>
|
|
|
<article id="comment-<?php comment_ID(); ?>" class="clearfix">
|
|
|
<header class="comment-author vcard">
|
|
|
- <?php
|
|
|
+ <?php
|
|
|
/*
|
|
|
this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:
|
|
|
echo get_avatar($comment,$size='32',$default='<path_to_url>' );
|
|
|
- */
|
|
|
+ */
|
|
|
?>
|
|
|
<!-- custom gravatar call -->
|
|
|
<?php
|
|
|
@@ -136,7 +136,7 @@ function bones_comments($comment, $args, $depth) {
|
|
|
<?php edit_comment_link(__('(Edit)', 'bonestheme'),' ','') ?>
|
|
|
</header>
|
|
|
<?php if ($comment->comment_approved == '0') : ?>
|
|
|
- <div class="alert info">
|
|
|
+ <div class="alert alert-info">
|
|
|
<p><?php _e('Your comment is awaiting moderation.', 'bonestheme') ?></p>
|
|
|
</div>
|
|
|
<?php endif; ?>
|