Commits

Doug Stewart committed 2cd497f

Inching closer to 0.5.

  • Participants
  • Parent commits d7082ac

Comments (0)

Files changed (3)

File include/css/lbcb-core.css

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

File include/js/lbcb-ajax.js

 		$.post(the_ajax_script.ajaxurl, data, function(response) {
 			alert(response);
 		});
-		$(this).closest('tr').addClass('kuler-saved');
+		//$(this).closest('tr').addClass('kuler-saved');
 		return false;
 	});
 });

File include/lbcb-output.php

 	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++ ){
 		}
 		$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";
 		
 			'name'	=> '',
 			'slug'	=> '',
 			'id'	=> '',
-			
-			), $atts
-	));
+			''
+			), $atts ));
 	
 	$lbcb_args = array(
 		'order'				=> 'DESC',