Changeset 8401 for trunk/index.php


Ignore:
Timestamp:
Dec 30, 2010, 8:47:17 PM (14 years ago)
Author:
rvelices
Message:

index.tpl and thumbnails change: category description above thumbs and enclosing ul moved to index.tpl
fix some combine_xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r6363 r8401  
    2727include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
    2828
     29// Check Access and exit when user status is not ok
     30check_status(ACCESS_GUEST);
     31
     32if (!isset($page['start']))
     33{
     34  $page['start'] = 0;
     35}
     36
     37// access authorization check
     38if (isset($page['category']))
     39{
     40  check_restrictions($page['category']['id']);
     41}
     42
    2943trigger_action('loc_begin_index');
    30 
    31 // +-----------------------------------------------------------------------+
    32 // | Check Access and exit when user status is not ok                      |
    33 // +-----------------------------------------------------------------------+
    34 check_status(ACCESS_GUEST);
    3544
    3645//---------------------------------------------- change of image display order
     
    5362}
    5463//-------------------------------------------------------------- initialization
    55 // detection of the start picture to display
    56 if (!isset($page['start']))
    57 {
    58   $page['start'] = 0;
    59 }
    60 
    61 // access authorization check
    62 if (isset($page['category']))
    63 {
    64   check_restrictions($page['category']['id']);
    65 }
    6664
    6765$page['navigation_bar'] = array();
     
    256254
    257255// category comment
    258 if (isset($page['comment']) and $page['comment'] != '')
     256if ($page['start']==0 and !isset($page['chronology_field']) and !empty($page['comment']) )
    259257{
    260258  $template->assign('CONTENT_DESCRIPTION', $page['comment'] );
Note: See TracChangeset for help on using the changeset viewer.