diff --git a/functions.php b/functions.php index ec4980e3..3344c3e7 100644 --- a/functions.php +++ b/functions.php @@ -88,29 +88,28 @@ function bones_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • >
    -
    +
    ' ); ?>
    - %s'), get_comment_author_link()) ?> - - ','') ?> -
    - comment_approved == '0') : ?> -
    -

    -
    - -
    -
    - -
    +
    + %s'), get_comment_author_link()) ?> + ','') ?> + + comment_approved == '0') : ?> +
    +

    +
    + + + + + + + + $depth, 'max_depth' => $args['max_depth']))) ?> +
    - -
    - -
    - $depth, 'max_depth' => $args['max_depth']))) ?>
    '.$return.''; } +/*************************** shortcodes ************************************/ + +/* gallery shortcode */ + +// remove the standard shortcode +remove_shortcode('gallery', 'gallery_shortcode'); +add_shortcode('gallery', 'gallery_shortcode_tbs'); + +function gallery_shortcode_tbs($attr) { + global $post, $wp_locale; + + $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); + $attachments = get_posts($args); + if ($attachments) { + $output = ''; + } + + return $output; +} + + + + ?> \ No newline at end of file diff --git a/library/js/scripts.js b/library/js/scripts.js index af3be45e..e3b820bd 100644 --- a/library/js/scripts.js +++ b/library/js/scripts.js @@ -33,7 +33,7 @@ function addTwitterBSClass(thisObj) { var titles = title.split(' '); if (titles[0]) { var num = parseInt(titles[0]); - if (num == 1) + if (num > 0) $(thisObj).addClass('label'); if (num == 2) $(thisObj).addClass('label notice'); @@ -45,12 +45,11 @@ function addTwitterBSClass(thisObj) { $(thisObj).addClass('label important'); } } + else + $(thisObj).addClass('label'); return true; } - - - // as the page loads, cal these scripts $(document).ready(function() { @@ -59,5 +58,15 @@ $(document).ready(function() { addTwitterBSClass(this); return true; }); + + $("p.tags a").each(function() { + addTwitterBSClass(this); + return true; + }); + + $("ol.commentlist a.comment-reply-link").each(function() { + $(this).addClass('btn success small'); + return true; + }); }); /* end of as page load scripts */ \ No newline at end of file diff --git a/search.php b/search.php index c57f4776..489ca02c 100644 --- a/search.php +++ b/search.php @@ -64,13 +64,7 @@ - + diff --git a/searchform.php b/searchform.php index 9426c853..5430d1cd 100644 --- a/searchform.php +++ b/searchform.php @@ -1,13 +1,10 @@ -
    +
    -
    - -
    -
    +
    -
    +
    \ No newline at end of file diff --git a/single.php b/single.php index a15a34f6..8f5db072 100644 --- a/single.php +++ b/single.php @@ -24,7 +24,7 @@ diff --git a/style.css b/style.css index 3cb36184..14528661 100644 --- a/style.css +++ b/style.css @@ -37,7 +37,8 @@ margin-bottom: 18px; } -ol.commentlist{ +ol.commentlist, +ul.children{ list-style-type: none; margin-left: 0; } @@ -46,7 +47,12 @@ ol.commentlist div.avatar{ float: left; } -ol.commentlist header{ +ol.commentlist time{ + font-size: .8em; + color: #eeeeee; +} + +ol.commentlist div.comment-author{ position: relative; } @@ -61,6 +67,16 @@ ol.commentlist span.edit-comment{ top: 0; } +a.comment-reply-link{ + position: absolute; + right: 0; + bottom: 0; +} + +#cancel-comment-reply{ + padding-left: 20px; +} + #comment-nav ul{ list-style-type: none; margin: 0; @@ -73,10 +89,19 @@ ol.commentlist span.edit-comment{ /* widget styles */ +#tag-cloud{ + margin-bottom: 18px; +} + /* override standard link hover for the tag cloud widget */ -#tag-cloud a:hover{ +#tag-cloud a:hover, +.tags a:hover{ color: #ffffff; text-decoration: none; } +/* change default form padding for search */ +.widget_search form{ + padding-left: 0; +}