| 276 | | if ( count($page['items']) > 0 ) |
| 277 | | { |
| | 276 | // category comment |
| | 277 | if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['comment']) ) |
| | 278 | { |
| | 279 | $template->assign('CONTENT_DESCRIPTION', $page['comment'] ); |
| | 280 | } |
| | 281 | |
| | 282 | // include menubar |
| | 283 | include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); |
| | 284 | |
| | 285 | if ( isset($page['category']['count_categories']) and $page['category']['count_categories']==0 ) |
| | 286 | {// count_categories might be computed by menubar - if the case unassign flat link if no sub albums |
| | 287 | $template->clear_assign('U_MODE_FLAT'); |
| | 288 | } |
| | 289 | |
| | 290 | //------------------------------------------------------ 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 | ) |
| | 297 | { |
| | 298 | include(PHPWG_ROOT_PATH.'include/category_cats.inc.php'); |
| | 299 | } |
| | 300 | if ( !empty($page['items']) ) |
| | 301 | { |
| | 302 | include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); |
| 296 | | } |
| 297 | | |
| 298 | | // category comment |
| 299 | | if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['comment']) ) |
| 300 | | { |
| 301 | | $template->assign('CONTENT_DESCRIPTION', $page['comment'] ); |
| 302 | | } |
| 303 | | |
| 304 | | // include menubar |
| 305 | | include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); |
| 306 | | |
| 307 | | if ( isset($page['category']['count_categories']) and $page['category']['count_categories']==0 ) |
| 308 | | {// count_categories might be computed by menubar - if the case unassign flat link if no sub albums |
| 309 | | $template->clear_assign('U_MODE_FLAT'); |
| 310 | | } |
| 311 | | |
| 312 | | //------------------------------------------------------ main part : thumbnails |
| 313 | | if ( 0==$page['start'] |
| 314 | | and !isset($page['flat']) |
| 315 | | and !isset($page['chronology_field']) |
| 316 | | and ('recent_cats'==$page['section'] or 'categories'==$page['section']) |
| 317 | | and (!isset($page['category']['count_categories']) or $page['category']['count_categories']>0 ) |
| 318 | | ) |
| 319 | | { |
| 320 | | include(PHPWG_ROOT_PATH.'include/category_cats.inc.php'); |
| 321 | | } |
| 322 | | if ( !empty($page['items']) ) |
| 323 | | { |
| 324 | | include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); |