Changeset 1722 for trunk/index.php


Ignore:
Timestamp:
Jan 15, 2007, 1:09:14 AM (18 years ago)
Author:
rub
Message:

There are no filter enabled if filter configuration is empty (no icon, no functions, ...)
New system for the filter page configuration

View mode flat_recent_cat becomes flat_cat (recent period is removed because global filter is sufficient)

Recent period of global filter must be defined "after" start parameter (default value is $userrecent_period).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1711 r1722  
    107107}
    108108
    109 if (isset($page['flat_recent_cat']) or isset($page['chronology_field']))
     109if (isset($page['flat_cat']) or isset($page['chronology_field']))
    110110{
    111111  $template->assign_block_vars(
    112112    'mode_normal',
    113113    array(
    114       'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_recent_cat') )
    115       )
    116     );
    117 }
    118 
    119 if (!isset($page['flat_recent_cat']) and 'categories'==$page['section'])
    120 {
    121   $template->assign_block_vars(
    122     'flat_recent_cat',
    123     array(
    124       'URL' => duplicate_index_url(array('flat_recent_cat' => $user['recent_period']), array('start', 'chronology_field'))
     114      'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_cat') )
     115      )
     116    );
     117}
     118
     119if (!isset($page['flat_cat']) and 'categories' == $page['section'])
     120{
     121  $template->assign_block_vars(
     122    'flat_cat',
     123    array(
     124      'URL' => duplicate_index_url(array('flat_cat' => ''), array('start', 'chronology_field'))
    125125      )
    126126    );
     
    138138    'mode_created',
    139139    array(
    140       'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_recent_cat') )
     140      'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
    141141      )
    142142    );
     
    146146    'mode_posted',
    147147    array(
    148       'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_recent_cat') )
     148      'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
    149149      )
    150150    );
     
    162162  $url = duplicate_index_url(
    163163            array('chronology_field'=>$chronology_field ),
    164             array('chronology_date', 'start', 'flat_recent_cat')
     164            array('chronology_date', 'start', 'flat_cat')
    165165          );
    166166  $template->assign_block_vars(
Note: See TracChangeset for help on using the changeset viewer.