Changeset 6391


Ignore:
Timestamp:
05/27/10 15:52:33 (9 years ago)
Author:
patdenice
Message:

Create tag 2.1.a

Location:
extensions/rv_menutree/tags/2.1.a
Files:
2 added
9 copied

Legend:

Unmodified
Added
Removed
  • extensions/rv_menutree/tags/2.1.a/main.inc.php

    r6376 r6391  
    11<?php /* 
    22Plugin Name: RV Menu Tree 
    3 Version: 2.0.c 
     3Version: 2.1.a 
    44Plugin URI: http://piwigo.org/ext/extension_view.php?eid=238 
    55Description: Replaces the categories in the menu bar with a nicer one (javascript). 
     
    2828{ 
    2929        if (rv_ua_is_handheld()) return $where; 
    30         add_event_handler('get_html_menu_category', 'rv_mt_get_html_menu_category', EVENT_HANDLER_PRIORITY_NEUTRAL, 3); 
     30 
     31        $dirname = dirname(__FILE__); 
     32 
     33        global $template, $page; 
     34        $template->set_extent('rvtree_menubar_categories.tpl', 'mbCategories', $dirname.'//'); 
     35 
     36        $template->assign('RVMT', array( 
     37          'PATH' => get_root_url().'plugins/'. basename($dirname).'/', 
     38          'CSS' => str_replace( 'url(', 'url('.get_root_url().'plugins/'.basename($dirname).'/',file_get_contents($dirname.'/rvtree-min.css')), 
     39                'ALL_OPEN' => $filter, 
     40                'UPPER_IDS' => isset($page['category']) ? array_flip( explode(',', $page['category']['uppercats'])) : null, 
     41          ) 
     42        ); 
    3143 
    3244        if ($expand) 
Note: See TracChangeset for help on using the changeset viewer.