Skip to content

Commit

Permalink
Inching closer to 0.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
zamoose committed Apr 19, 2012
1 parent 362b5f3 commit ecac1a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion include/css/lbcb-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
}

.authortitle,
.hextitle{
.hextitle,
.linktitle {
font-weight: bold;
}

Expand Down
2 changes: 1 addition & 1 deletion include/js/lbcb-ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jQuery(document).ready( function($) {
$.post(the_ajax_script.ajaxurl, data, function(response) {
alert(response);
});
$(this).closest('tr').addClass('kuler-saved');
//$(this).closest('tr').addClass('kuler-saved');
return false;
});
});
14 changes: 9 additions & 5 deletions include/lbcb-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function lbcb_output_colorbox_post( $content ){
if( 'colorbox' == get_post_type() ){
$hexes = array();
$lbcb_author = get_post_meta( $post->ID, '_lbcb_author', true);

$lbcb_url = get_post_meta( $post->ID, '_lbcb_link', true);

$cb_content .= '<div class="lbcb-swatch-wrapper">' . "\n";
for( $i = 1; $i <= 5; $i++ ){
Expand All @@ -36,7 +36,12 @@ function lbcb_output_colorbox_post( $content ){
}
$cb_content .= '</div><!-- .lbcb-swatch-wrapper -->' . "\n";
$cb_content .= '<div class="lbcb-meta-wrapper">' . "\n";
$cb_content .= '<div class="lbcb-author-wrapper"><span class="authortitle">Author:</span> ' . $lbcb_author . '</div>' . "\n";
if( !empty($lbcb_author) ){
$cb_content .= '<div class="lbcb-author-wrapper"><span class="authortitle">Author:</span> ' . $lbcb_author . '</div>' . "\n";
}
if( !empty($lbcb_url) ){
$cb_content .= '<div class="lbcb-link-wrapper"><span class="linktitle">Source:</span> ' . make_clickable( $lbcb_url ) . '</div>' . "\n";
}
$cb_content .= '<div class="lbcb-hex-wrapper"><span class="hextitle">Hex values:</span> ' . implode( ', ', $hexes ) . '</div>' . "\n";
$cb_content .= '</div><!-- .lbcb-meta-wrapper -->' . "\n";

Expand Down Expand Up @@ -96,9 +101,8 @@ function lbcb_colorbox_shortcode( $atts ){
'name' => '',
'slug' => '',
'id' => '',

), $atts
));
''
), $atts ));

$lbcb_args = array(
'order' => 'DESC',
Expand Down

0 comments on commit ecac1a2

Please sign in to comment.