source: extensions/RemoveMbHeader/main.inc.php @ 31988

Last change on this file since 31988 was 3609, checked in by patdenice, 15 years ago

Convert all php and tpl files in Unix format for my plugins.

File size: 743 bytes
Line 
1<?php
2
3/*
4Plugin Name: Remove MB Header
5Version: 2.0.a
6Description: Replace banner from image page for fixed width themes.
7Plugin URI: http://piwigo.org/ext/extension_view.php?eid=154
8Author: P@t
9Author URI: http://www.gauchon.com
10*/
11
12define('RMBH_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
13
14function remove_mb_header()
15{
16  global $page,$template,$user;
17
18  if ( isset($page['body_id']) and $page['body_id'] == 'thePicturePage' and file_exists(RMBH_PATH . $user['theme'] . '/picture.css'))
19  {
20    $template->block_html_head('', '<link rel="stylesheet" type="text/css" '. 'href="'. RMBH_PATH . $user['theme'] . '/picture.css">', $smarty, $repeat);
21  }
22}
23
24add_event_handler('loc_begin_page_header', 'remove_mb_header');
25
26?>
Note: See TracBrowser for help on using the repository browser.