Last change
on this file since 9370 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
|
Rev | Line | |
---|
[3609] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | Plugin Name: Remove MB Header |
---|
| 5 | Version: 2.0.a |
---|
| 6 | Description: Replace banner from image page for fixed width themes. |
---|
| 7 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=154 |
---|
| 8 | Author: P@t |
---|
| 9 | Author URI: http://www.gauchon.com |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | define('RMBH_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
| 13 | |
---|
| 14 | function 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 | |
---|
| 24 | add_event_handler('loc_begin_page_header', 'remove_mb_header'); |
---|
| 25 | |
---|
[3303] | 26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.