Changeset 1082 for trunk/include/category_subcats.inc.php
- Timestamp:
- Mar 15, 2006, 11:44:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_subcats.inc.php
r1004 r1082 27 27 28 28 /** 29 * This file is included by category.phpto show thumbnails for a category29 * This file is included by the main page to show thumbnails for a category 30 30 * that have only subcategories 31 31 * … … 35 35 SELECT id, name, date_last, representative_picture_id 36 36 FROM '.CATEGORIES_TABLE.' 37 WHERE id_uppercat '; 38 if (!isset($page['cat']) or !is_numeric($page['cat'])) 39 { 40 $query.= 'is NULL'; 41 } 42 else 43 { 44 $query.= '= '.$page['cat']; 45 } 46 $query.= ' 37 WHERE id_uppercat '. 38 (!isset($page['category']) ? 'is NULL' : '= '.$page['category']).' 47 39 AND id NOT IN ('.$user['forbidden_categories'].') 48 40 ORDER BY rank … … 143 135 foreach ($cat_thumbnails as $item) 144 136 { 145 $url_link = PHPWG_ROOT_PATH.'category.php?cat='.$row['id'];146 147 137 $template->assign_block_vars( 148 138 'thumbnails.line.thumbnail', 149 139 array( 150 'IMAGE' => $images[$item['picture']],151 'IMAGE_ALT' => $item['name'],140 'IMAGE' => $images[$item['picture']], 141 'IMAGE_ALT' => $item['name'], 152 142 'IMAGE_TITLE' => $lang['hint_category'], 153 'IMAGE_TS' => get_icon(@$item['date_last']), 154 'U_IMG_LINK' => 155 PHPWG_ROOT_PATH.'category.php?cat='.$item['category'] 143 'IMAGE_TS' => get_icon(@$item['date_last']), 144 145 'U_IMG_LINK' => make_index_url( 146 array( 147 'category' => $item['category'], 148 ) 149 ), 156 150 ) 157 151 );
Note: See TracChangeset
for help on using the changeset viewer.