From d62dbe2c0b8cc373c623260c03360c7d31b64d7f Mon Sep 17 00:00:00 2001 From: david Date: Wed, 18 Jul 2012 16:31:03 +0000 Subject: [PATCH] =?UTF-8?q?Arreglos=20en=20p=C3=A1gina=20de=20inicio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@14 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6 --- wp-content/themes/score/lib/admin/inc/theme-widgets.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/score/lib/admin/inc/theme-widgets.php b/wp-content/themes/score/lib/admin/inc/theme-widgets.php index 795574e..85cb495 100644 --- a/wp-content/themes/score/lib/admin/inc/theme-widgets.php +++ b/wp-content/themes/score/lib/admin/inc/theme-widgets.php @@ -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 = ''.$artist.''.'. '.$song; + $new_name = $this->string_limit_words($artist_song_span, 6); + if ($new_name != $artist_song_span) + $new_name .= '...'; + ?> - +