Changeset 1082 for trunk/include/category_default.inc.php
- Timestamp:
- Mar 15, 2006, 11:44:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r1056 r1082 27 27 28 28 /** 29 * This file is included by category.phpto show thumbnails for the default29 * This file is included by the main page to show thumbnails for the default 30 30 * case 31 31 * … … 82 82 83 83 // url link on picture.php page 84 $url_link = PHPWG_ROOT_PATH.'picture.php? image_id='.$row['id'];84 $url_link = PHPWG_ROOT_PATH.'picture.php?/'.$row['id']; 85 85 86 if (isset($page['cat']))86 switch ($page['section']) 87 87 { 88 $url_link.= '&cat='.$page['cat']; 89 90 if ($page['cat'] == 'search') 88 case 'categories' : 91 89 { 92 $url_link.= '&search='.$_GET['search']; 90 $url_link.= '/category/'.$page['category']; 91 break; 93 92 } 94 else if ($page['cat'] == 'list')93 case 'tags' : 95 94 { 96 $url_link.= '&list='.$_GET['list']; 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']; 97 111 } 98 112 } 99 113 100 if (isset($ _GET['calendar']))114 if (isset($page['chronology'])) 101 115 { 102 $url_link.= ' &calendar='.$_GET['calendar'];116 $url_link.= '/chronology='.$page['chronology']; 103 117 } 104 118 … … 126 140 $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 127 141 } 128 if ( isset($page['cat']) ) 142 143 switch ($page['section']) 129 144 { 130 if ($page['cat'] == 'best_rated')145 case 'best_rated' : 131 146 { 132 147 $name = '('.$row['average_rate'].') '.$name; 148 break; 133 149 } 134 elseif ($page['cat'] == 'most_visited')150 case 'most_visited' : 135 151 { 136 152 $name = '('.$row['hit'].') '.$name; 153 break; 137 154 } 138 139 if ($page['cat'] == 'search') 155 case 'search' : 140 156 { 141 157 $name = replace_search($name, $_GET['search']); 158 break; 142 159 } 143 160 } … … 152 169 153 170 if ($user['show_nb_comments'] 154 and is _numeric($page['cat'])171 and isset($page['category']) 155 172 and $page['cat_commentable']) 156 173 {
Note: See TracChangeset
for help on using the changeset viewer.