Changeset 2118 for branches/branch-1_7/include/functions_html.inc.php
- Timestamp:
- Oct 2, 2007, 7:42:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/include/functions_html.inc.php
r2069 r2118 59 59 { 60 60 // Use MySql date in order to standardize all recent "actions/queries" 61 list($page['get_icon_cache']['unix_timestamp']) = 61 list($page['get_icon_cache']['unix_timestamp']) = 62 62 mysql_fetch_array(pwg_query('select UNIX_TIMESTAMP(CURRENT_DATE)')); 63 63 } … … 456 456 $menu.= "\n".'<span class="'; 457 457 // at least one image in this category -> class menuInfoCat 458 $menu.= ($category['nb_images'] > 0 ? "menuInfoCat" 458 $menu.= ($category['nb_images'] > 0 ? "menuInfoCat" 459 459 : "menuInfoCatByChild").'"'; 460 460 $menu.= ' title=" '.$title.'">'; … … 736 736 function set_span_class($count) 737 737 { 738 if ($count > 1) 739 { 738 if ($count > 1) 739 { 740 740 return 'plural'; 741 741 } 742 return ( $count == 0 ) ? 'zero':'one'; 742 return ( $count == 0 ) ? 'zero':'one'; 743 } 744 745 /** returns the category comment for rendering in html. 746 * this is an event handler. don't call directly 747 */ 748 function render_category_description($desc) 749 { 750 global $conf; 751 if ( !( $conf['allow_html_descriptions'] and 752 preg_match('/<(div|br|img|script).*>/i', $desc) ) ) 753 { 754 $desc = nl2br($desc); 755 } 756 return $desc; 757 } 758 759 /** returns the category comment for rendering in html textual mode (subcatify) 760 * this is an event handler. don't call directly 761 */ 762 function render_category_literal_description($desc) 763 { 764 return strip_tags($desc, '<span><p><a><br><b><i><small><big><strong><em>'); 743 765 } 744 766 ?>
Note: See TracChangeset
for help on using the changeset viewer.