Changeset 18165 for trunk/index.php
- Timestamp:
- Sep 23, 2012, 1:19:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r16987 r18165 30 30 check_status(ACCESS_GUEST); 31 31 32 if (!isset($page['start']))33 {34 $page['start'] = 0;35 }36 32 37 33 // access authorization check … … 75 71 //-------------------------------------------------------------- initialization 76 72 73 // navigation bar 77 74 $page['navigation_bar'] = array(); 78 75 if (count($page['items']) > $page['nb_image_page']) … … 83 80 $page['start'], 84 81 $page['nb_image_page'], 85 true 86 ); 87 } 82 true, 'start' 83 ); 84 } 85 86 $page['cats_navigation_bar'] = array(); 87 if (count($page['categories']) > $conf['nb_categories_page']) 88 { 89 $page['cats_navigation_bar'] = create_navigation_bar( 90 duplicate_index_url(array(), array('starta')), 91 count($page['categories']), 92 $page['starta'], 93 $conf['nb_categories_page'], 94 true, 'starta' 95 ); 96 } 97 98 $template->assign( 'thumb_navbar', $page['navigation_bar'] ); 99 $template->assign( 'cats_navbar', $page['cats_navigation_bar'] ); 88 100 89 101 // caddie filling :-) … … 243 255 } 244 256 245 // navigation bar246 $template->assign( 'navbar', $page['navigation_bar'] );247 257 248 258 if ( $conf['index_sort_order_input'] … … 289 299 290 300 //------------------------------------------------------ main part : thumbnails 291 if ( 0==$page['start'] 292 and !isset($page['flat']) 293 and !isset($page['chronology_field']) 294 and ('recent_cats'==$page['section'] or 'categories'==$page['section']) 295 and (!isset($page['category']['count_categories']) or $page['category']['count_categories']>0 ) 296 ) 301 if ( !empty($page['categories']) ) 297 302 { 298 303 include(PHPWG_ROOT_PATH.'include/category_cats.inc.php');
Note: See TracChangeset
for help on using the changeset viewer.