source: extensions/floOS/OS_default/themeconf.inc.php @ 9120

Revision 9120, 1.8 KB checked in by flop25, 9 years ago (diff)

adding tiptip for icons
language code in smarty tag changed -> I hate that change !!
ready to be in PEM

Line 
1<?php
2/*
3Theme Name: OS_default
4Version: 1.0.0
5Description:
6Theme URI: http://fr.piwigo.org/ext/extension_view.php?eid=497
7Author: flop25
8Author URI: http://www.planete-flop.fr
9*/
10$themeconf = array(
11  'name'         => 'OS_default',
12  'parent'        => 'default',
13  'icon_dir'      => 'themes/OS_default/icon',
14  'mime_icon_dir' => 'themes/OS_default/icon/mimetypes/',
15  'local_head'    => 'local_head.tpl',
16  'activable' => false,
17        'add_menu_on_public_pages'                      => true,        # activation
18        'Exclude'                       => array('theNBMPage','thePicturePage','thePopuphelpPage',),    # Excluded pages
19);
20// thx to Vdigital and his plugin spreadmenus
21if ( !function_exists( 'add_menu_on_public_pages' ) ) {
22        if ( defined('IN_ADMIN') and IN_ADMIN ) return false;
23        add_event_handler('loc_after_page_header', 'add_menu_on_public_pages', 20);
24
25        function  add_menu_on_public_pages() {
26          if ( function_exists( 'initialize_menu') ) return false; # The current page has already the menu
27          if ( !get_themeconf('add_menu_on_public_pages') ) return false; # The current page has already the menu
28          global $template, $page, $conf;
29          if ( isset($page['body_id']) and in_array($page['body_id'], get_themeconf('Exclude')) ) return false;
30
31          $template->set_filenames(array(
32                'add_menu_on_public_pages' => dirname(__FILE__) . '/template/add_menu_on_public_pages.tpl',
33          ));
34          include_once(PHPWG_ROOT_PATH.'include/menubar.inc.php');
35          $template->parse('add_menu_on_public_pages');
36         
37          if (is_admin())
38                {
39          $template->assign(
40        'U_ADMIN', get_root_url().'admin.php?page=picture_modify'
41      .'&amp;cat_id='.(isset($page['category']) ? $page['category']['id'] : '')
42      .( isset($page['image_id']) ? '&amp;image_id='.$page['image_id'] : '')
43      );
44                }
45         
46        }
47}
48
49?>
Note: See TracBrowser for help on using the repository browser.