Arreglos en página de inicio

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@14 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-07-18 16:31:03 +00:00
parent c3cbbc1e28
commit d62dbe2c0b

View File

@ -111,9 +111,13 @@ class SidebarPosts extends WP_Widget {
$artist = get_post_meta($post->ID, 'ghostpool_dedication_artist', true);
$song = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
$artist_song = $artist . '. ' . $song;
?>
$artist_song_span = '<span>'.$artist.'</span>'.'. '.$song;
$new_name = $this->string_limit_words($artist_song_span, 6);
if ($new_name != $artist_song_span)
$new_name .= '...';
?>
<a href="<?php the_permalink(); ?>" class="post-artist-song" title="<?php echo $artist_song; ?>"><span><?php echo $artist; ?></span>.&nbsp;<?php echo $song; ?></a>
<a href="<?php the_permalink(); ?>" class="post-artist-song" title="<?php echo $artist_song; ?>"><?php echo $new_name; ?></a>
<?php } ?>
<?php