Rev | Line | |
---|
[5543] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* |
---|
[5754] | 4 | Theme Name: Sobre |
---|
[5543] | 5 | Version: 0.1a |
---|
| 6 | Description: Black and white theme, based on Yoga/dark. |
---|
[5754] | 7 | Theme URI: http://fr.piwigo.org/ext/extension_view.php?eid=375 |
---|
[5543] | 8 | Author: Gotcha |
---|
| 9 | Author URI: http://www.julien-moreau.fr |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | $themeconf = array( |
---|
[5544] | 13 | 'parent' => 'default', |
---|
[5543] | 14 | 'name' => 'sobre', |
---|
[5544] | 15 | 'local_head' => 'local_head.tpl', |
---|
[5543] | 16 | ); |
---|
| 17 | |
---|
[5582] | 18 | load_language('theme.lang', PHPWG_THEMES_PATH.'sobre/'); |
---|
| 19 | |
---|
[5544] | 20 | add_event_handler('loc_begin_page_header', 'set_sbre_header'); |
---|
| 21 | function set_sbre_header() |
---|
| 22 | { |
---|
| 23 | global $page, $conf, $template; |
---|
| 24 | $config = unserialize($conf['Sobre']); |
---|
| 25 | if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage') |
---|
| 26 | { |
---|
| 27 | $header = isset($page['category']) ? $config['categories'] : $config['home']; |
---|
| 28 | } |
---|
| 29 | elseif (isset($page['body_id']) and $page['body_id'] == 'thePicturePage') |
---|
| 30 | { |
---|
| 31 | $header = $config['picture']; |
---|
| 32 | } |
---|
| 33 | else |
---|
| 34 | { |
---|
| 35 | $header = $config['other']; |
---|
| 36 | } |
---|
| 37 | $template->assign('display_sbre_banner', $header); |
---|
| 38 | } |
---|
| 39 | |
---|
[6290] | 40 | |
---|
| 41 | add_event_handler('blockmanager_prepare_display', 'add_rss_icon'); |
---|
| 42 | function add_rss_icon() |
---|
| 43 | { |
---|
| 44 | global $lang; |
---|
[6293] | 45 | if (isset($lang['Notification'])) { |
---|
| 46 | $lang['Notification'] .= '<img src="./themes/sobre/images/rss.png" style="float:right; margin-right:10px; position:inherit;" class="button_rss" alt="flux-rss"/>'; |
---|
| 47 | } |
---|
| 48 | if (isset($lang['Notification RSS'])) { |
---|
| 49 | $lang['Notification RSS'] .= '<img src="./themes/sobre/images/rss.png" style="float:right; margin-right:10px; position:inherit;" class="button_rss" alt="flux-rss"/>'; |
---|
| 50 | } |
---|
[6290] | 51 | } |
---|
| 52 | |
---|
[5543] | 53 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.