Changeset 1090 for trunk/include/category_default.inc.php
- Timestamp:
- Mar 21, 2006, 2:27:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r1082 r1090 29 29 * This file is included by the main page to show thumbnails for the default 30 30 * case 31 * 31 * 32 32 */ 33 33 … … 53 53 { 54 54 $row['rank'] = $page['rank_of'][ $row['id'] ]; 55 55 56 56 array_push($pictures, $row); 57 57 } … … 73 73 { 74 74 $thumbnail_url = get_thumbnail_src($row['path'], @$row['tn_ext']); 75 75 76 76 // message in title for the thumbnail 77 77 $thumbnail_title = $row['file']; … … 80 80 $thumbnail_title .= ' : '.$row['filesize'].' KB'; 81 81 } 82 83 // url link on picture.php page84 $url_link = PHPWG_ROOT_PATH.'picture.php?/'.$row['id'];85 82 86 switch ($page['section']) 87 { 88 case 'categories' : 89 { 90 $url_link.= '/category/'.$page['category']; 91 break; 92 } 93 case 'tags' : 94 { 95 // TODO 96 break; 97 } 98 case 'search' : 99 { 100 $url_link.= '/search/'.$page['search']; 101 break; 102 } 103 case 'list' : 104 { 105 $url_link.= '/list/'.implode(',', $page['list']); 106 break; 107 } 108 default : 109 { 110 $url_link.= '/'.$page['section']; 111 } 112 } 113 114 if (isset($page['chronology'])) 115 { 116 $url_link.= '/chronology='.$page['chronology']; 117 } 118 83 // link on picture.php page 84 $url = duplicate_picture_url( 85 array( 86 'image_id' => $row['id'], 87 'image_file' => $row['file'] 88 ) 89 ); 90 119 91 $template->assign_block_vars( 120 92 'thumbnails.line.thumbnail', … … 124 96 'IMAGE_TITLE' => $thumbnail_title, 125 97 'IMAGE_TS' => get_icon($row['date_available']), 126 127 'U_IMG_LINK' => $url _link98 99 'U_IMG_LINK' => $url 128 100 ) 129 101 ); … … 159 131 } 160 132 } 161 133 162 134 $template->assign_block_vars( 163 135 'thumbnails.line.thumbnail.element_name', … … 167 139 ); 168 140 } 169 141 170 142 if ($user['show_nb_comments'] 171 143 and isset($page['category'])
Note: See TracChangeset
for help on using the changeset viewer.