Changeset 1145 for trunk/include/category_recent_cats.inc.php
- Timestamp:
- Apr 11, 2006, 5:55:51 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_recent_cats.inc.php
r1132 r1145 47 47 , tn_ext 48 48 , nb_images 49 , c.name AS cat_name 49 50 FROM '.CATEGORIES_TABLE.' AS c 50 51 INNER JOIN '.IMAGES_TABLE.' AS i ON i.id = c.representative_picture_id … … 68 69 ) 69 70 ); 70 71 71 72 // template thumbnail initialization 72 73 if (mysql_num_rows($result) > 0) 73 74 { 74 75 $template->assign_block_vars('categories', array()); 76 } 77 78 $comment = null; 79 if (isset($row['comment'])) 80 { 81 $comment = strip_tags($row['comment'], '<a><br><p><b><i><small><strong>'); 75 82 } 76 83 … … 85 92 'ALT' => $row['file'], 86 93 'TITLE' => $lang['hint_category'], 87 94 88 95 'URL' => make_index_url( 89 96 array( 90 97 'category' => $row['category_id'], 98 'cat_name' => $row['cat_name'], 91 99 ) 92 100 ), 93 101 'NAME' => get_cat_display_name_cache($row['uppercats'], null, false), 94 102 'NB_IMAGES' => $row['nb_images'], 95 'DESCRIPTION' => @$row['comment'],103 'DESCRIPTION' => $comment, 96 104 ) 97 105 ); … … 111 119 $row_number = 0; 112 120 } 113 121 114 122 $old_level_separator = $conf['level_separator']; 115 123 $conf['level_separator'] = '<br />'; … … 124 132 'IMAGE_ALT' => $row['file'], 125 133 'IMAGE_TITLE' => $lang['hint_category'], 126 134 127 135 'U_IMG_LINK' => make_index_url( 128 136 array( 129 137 'category' => $row['category_id'], 138 'cat_name' => $row['cat_name'], 130 139 ) 131 140 ),
Note: See TracChangeset
for help on using the changeset viewer.