Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2329
Modified Files:
serendipity_functions.inc.php
Log Message:
Add a hover title to category icons - figured we should use the category_description somewhere
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.331
retrieving revision 1.332
diff -u -d -r1.331 -r1.332
--- serendipity_functions.inc.php 14 Jul 2004 13:04:09 -0000 1.331
+++ serendipity_functions.inc.php 14 Jul 2004 13:57:26 -0000 1.332
@@ -1176,7 +1176,7 @@
$icon_string = '';
foreach ($entry['categories'] as $cat) {
if ($cat['category_icon'] != '') {
- $icon_string .= '<a href="' . $serendipity['serendipityHTTPPath'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'categories/' . $cat['categoryid'] . '_' . serendipity_makeFilename($cat['category_name']) . '"><img class="serendipity_entryIcon" alt="' . htmlspecialchars($cat['category_name']) . '" src="' . htmlspecialchars($cat['category_icon']) . '"/></a>';
+ $icon_string .= '<a href="' . $serendipity['serendipityHTTPPath'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'categories/' . $cat['categoryid'] . '_' . serendipity_makeFilename($cat['category_name']) . '"><img class="serendipity_entryIcon" title="' . htmlspecialchars($cat['category_name']) . ' : ' . htmlspecialchars($cat['category_description']) . '" alt="' . htmlspecialchars($cat['category_name']) . '" src="' . htmlspecialchars($cat['category_icon']) . '"/></a>';
}
}
if ($icon_string != '') {
|