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/include/functions.inc.php

    r1717 r1722  
    11051105}
    11061106
     1107/**
     1108 * Return value for the current page define on $conf['filter_pages']
     1109 * Îf value is not defined, default value are returned
     1110 *
     1111 * @param value name
     1112 *
     1113 * @return filter page value
     1114 */
     1115function get_filter_page_value($value_name)
     1116{
     1117  global $conf;
     1118
     1119  $page_name = script_basename();
     1120
     1121  if (isset($conf['filter_pages'][$page_name][$value_name]))
     1122  {
     1123    return $conf['filter_pages'][$page_name][$value_name];
     1124  }
     1125  else if (isset($conf['filter_pages']['default'][$value_name]))
     1126  {
     1127    return $conf['filter_pages']['default'][$value_name];
     1128  }
     1129  else
     1130  {
     1131    return null;
     1132  }
     1133}
     1134
    11071135?>
Note: See TracChangeset for help on using the changeset viewer.