Changeset 1135
- Timestamp:
- Apr 8, 2006, 9:42:11 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_subcats.inc.php
r1132 r1135 133 133 get_thumbnail_src($row['path'], @$row['tn_ext']); 134 134 } 135 135 136 136 if ($conf['subcatify']) 137 137 { … … 143 143 144 144 $template->assign_block_vars('categories', array()); 145 145 146 146 foreach ($categories as $category) 147 147 { … … 153 153 'TITLE' => $lang['hint_category'], 154 154 'ICON' => get_icon(@$category['date_last']), 155 155 156 156 'URL' => make_index_url( 157 157 array( … … 166 166 ); 167 167 } 168 168 169 169 $template->assign_var_from_handle('CATEGORIES', 'mainpage_categories'); 170 170 } … … 176 176 // current row displayed 177 177 $row_number = 0; 178 178 179 179 foreach ($categories as $category) 180 180 { … … 186 186 'IMAGE_TITLE' => $lang['hint_category'], 187 187 'IMAGE_TS' => get_icon(@$category['date_last']), 188 188 189 189 'U_IMG_LINK' => make_index_url( 190 190 array( 191 191 'category' => $category['category'], 192 'cat_name' => $category['name'], 192 193 ) 193 194 ), … … 202 203 ) 203 204 ); 204 205 205 206 // create a new line ? 206 207 if (++$row_number == $user['nb_image_line']) -
trunk/include/functions_tag.inc.php
r1119 r1135 55 55 ;'; 56 56 $image_ids = array_from_query($images_query, 'image_id'); 57 57 if ( empty($image_ids) ) 58 { 59 return array(); 60 } 58 61 $tags_query.= ' 59 62 WHERE image_id IN ('. … … 64 67 ).')'; 65 68 } 66 69 67 70 $tags_query.= ' 68 71 GROUP BY tag_id … … 70 73 71 74 $result = pwg_query($tags_query); 72 75 73 76 $tags = array(); 74 77 … … 94 97 ;'; 95 98 $result = pwg_query($query); 96 99 97 100 $tags = array(); 98 101 … … 124 127 return $tags; 125 128 } 126 129 127 130 $total_count = 0; 128 131 … … 147 150 { 148 151 $tags[$k]['level'] = 1; 149 152 150 153 // based on threshold, determine current tag level 151 154 for ($i = $conf['tags_levels'] - 1; $i >= 1; $i--) … … 178 181 // strategy is to list images associated to each tag 179 182 $tag_images = array(); 180 183 181 184 foreach ($tag_ids as $tag_id) 182 185 { -
trunk/picture.php
r1128 r1135 631 631 ) 632 632 ); 633 $infos['INFO_CREATION_DATE'] = '<a href="'.$url.'" >'.$val.'</a>';633 $infos['INFO_CREATION_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>'; 634 634 } 635 635 else … … 648 648 ) 649 649 ); 650 $infos['INFO_POSTED_DATE'] = '<a href="'.$url.'" >'.$val.'</a>';650 $infos['INFO_POSTED_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>'; 651 651 652 652 // size in pixels … … 700 700 { 701 701 $tags = array(); 702 702 703 703 while ($row = mysql_fetch_array($result)) 704 704 { -
trunk/template/yoga/index.tpl
r1132 r1135 109 109 </p> 110 110 <ul class="actions"> 111 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}" ><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li>112 <li><a href="{U_REGISTER}" title="{lang:Create a new account}" ><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li>111 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> 112 <li><a href="{U_REGISTER}" title="{lang:Create a new account}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> 113 113 </ul> 114 114 … … 152 152 <!-- END mode_normal --> 153 153 <!-- BEGIN mode_posted --> 154 <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" ><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>154 <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li> 155 155 <!-- END mode_posted --> 156 156 <!-- BEGIN mode_created --> 157 <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}" ><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li>157 <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li> 158 158 <!-- END mode_created --> 159 159 </ul>
Note: See TracChangeset
for help on using the changeset viewer.