Ignore:
Timestamp:
Jul 20, 2007, 1:45:57 AM (17 years ago)
Author:
rvelices
Message:

merge -r2069 from branch-1_7 to trunk
added 2 events: get_categories_menu_sql_where and get_html_menu_category in order to allow personalisation of the category menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_category.inc.php

    r2047 r2070  
    7373  if (!$user['expand'] and !$filter['enabled'])
    7474  {
    75     $query.= '
    76 WHERE
     75    $where = '
    7776(id_uppercat is NULL';
    7877    if (isset($page['category']))
    7978    {
    80       $query.= ' OR id_uppercat IN ('.$page['category']['uppercats'].')';
    81     }
    82     $query.= ')';
     79      $where .= ' OR id_uppercat IN ('.$page['category']['uppercats'].')';
     80    }
     81    $where .= ')';
    8382  }
    8483  else
    8584  {
    86     $query.= '
     85    $where = '
    8786  '.get_sql_condition_FandF
    8887    (
     
    9190          'visible_categories' => 'id',
    9291        ),
    93       'WHERE'
     92      null,
     93      true
    9494    );
    9595  }
    9696
     97  $where = trigger_event('get_categories_menu_sql_where',
     98    $where, $user['expand'], $filter['enabled'] );
     99
    97100  $query.= '
     101WHERE '.$where.'
    98102;';
    99103
Note: See TracChangeset for help on using the changeset viewer.