2004-02-02 01:55:18 +01:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2011-01-18 01:02:52 +01:00
|
|
|
// | Piwigo - a PHP based photo gallery |
|
2008-04-05 00:57:23 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
2011-01-18 01:02:52 +01:00
|
|
|
// | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org |
|
2008-04-05 00:57:23 +02:00
|
|
|
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
|
|
|
|
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
2004-02-12 00:20:38 +01:00
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2006-03-09 02:57:13 +01:00
|
|
|
|
2004-02-02 01:55:18 +01:00
|
|
|
//
|
|
|
|
// Start output of page
|
|
|
|
//
|
2006-06-22 20:17:47 +02:00
|
|
|
$template->set_filenames(array('header'=>'header.tpl'));
|
2004-02-02 01:55:18 +01:00
|
|
|
|
2006-11-01 06:54:35 +01:00
|
|
|
trigger_action('loc_begin_page_header');
|
|
|
|
|
2008-03-02 01:29:27 +01:00
|
|
|
$template->assign(
|
2004-03-31 22:43:09 +02:00
|
|
|
array(
|
- new : HTML BODY identifier to let CSS stylesheets manage specific
behaviour.
- deletion : admin/search useless
- improvement : in admin/user_list, special behaviour for true/false fields
(expand, show_comments)
- new : gallery_title and gallery_description are displayed at the top of
each page.
- improvement : simplification in HTML for categories menu.
- improvement : standardization of presentation in all public pages
(identification, registration, search, profile, notification, comments,
etc.)
(not in ChangeLog, below this line)
- add forgotten notification.php (should have been added in a previous
commit)
- [template cclear] deletion of useless class .bouton
- [template cclear] for test purpose, new presentation of register page
(using FORM.filter)
- [template cclear] adaptation of admin/group_list from template default
- [template cclear] deletion of obsolete admin/infos_images
- [template cclear] deletion of obsolete admin/search_username
- [template cclear] new icon register.png
git-svn-id: http://piwigo.org/svn/trunk@850 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-08-26 00:43:47 +02:00
|
|
|
'GALLERY_TITLE' =>
|
|
|
|
isset($page['gallery_title']) ?
|
|
|
|
$page['gallery_title'] : $conf['gallery_title'],
|
2006-03-09 02:57:13 +01:00
|
|
|
|
|
|
|
'PAGE_BANNER' =>
|
2011-08-30 10:24:42 +02:00
|
|
|
trigger_event(
|
|
|
|
'render_page_banner',
|
|
|
|
str_replace(
|
|
|
|
'%gallery_title%',
|
|
|
|
$conf['gallery_title'],
|
|
|
|
isset($page['page_banner']) ? $page['page_banner'] : $conf['page_banner']
|
|
|
|
)
|
|
|
|
),
|
2006-03-09 02:57:13 +01:00
|
|
|
|
- new : HTML BODY identifier to let CSS stylesheets manage specific
behaviour.
- deletion : admin/search useless
- improvement : in admin/user_list, special behaviour for true/false fields
(expand, show_comments)
- new : gallery_title and gallery_description are displayed at the top of
each page.
- improvement : simplification in HTML for categories menu.
- improvement : standardization of presentation in all public pages
(identification, registration, search, profile, notification, comments,
etc.)
(not in ChangeLog, below this line)
- add forgotten notification.php (should have been added in a previous
commit)
- [template cclear] deletion of useless class .bouton
- [template cclear] for test purpose, new presentation of register page
(using FORM.filter)
- [template cclear] adaptation of admin/group_list from template default
- [template cclear] deletion of obsolete admin/infos_images
- [template cclear] deletion of obsolete admin/search_username
- [template cclear] new icon register.png
git-svn-id: http://piwigo.org/svn/trunk@850 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-08-26 00:43:47 +02:00
|
|
|
'BODY_ID' =>
|
|
|
|
isset($page['body_id']) ?
|
|
|
|
$page['body_id'] : '',
|
2006-03-09 02:57:13 +01:00
|
|
|
|
2009-01-17 23:22:30 +01:00
|
|
|
'REVERSE' =>
|
|
|
|
(isset($conf['reverse_home_title']) and $conf['reverse_home_title']) ?
|
|
|
|
true : false,
|
|
|
|
|
2007-10-09 01:46:09 +02:00
|
|
|
'CONTENT_ENCODING' => get_pwg_charset(),
|
2006-04-04 02:35:12 +02:00
|
|
|
'PAGE_TITLE' => strip_tags($title),
|
2006-03-09 02:57:13 +01:00
|
|
|
|
2011-06-14 14:14:29 +02:00
|
|
|
'U_HOME' => get_gallery_home_url(),
|
2004-03-31 22:43:09 +02:00
|
|
|
));
|
2004-02-07 12:50:26 +01:00
|
|
|
|
2006-12-21 22:38:20 +01:00
|
|
|
|
|
|
|
// Header notes
|
2008-03-02 01:29:27 +01:00
|
|
|
if ( !empty($header_notes) )
|
2006-12-21 22:38:20 +01:00
|
|
|
{
|
2008-03-02 01:29:27 +01:00
|
|
|
$template->assign('header_notes',$header_notes);
|
2006-12-21 22:38:20 +01:00
|
|
|
}
|
|
|
|
|
2009-01-03 22:08:22 +01:00
|
|
|
// No referencing is required
|
|
|
|
if ( !$conf['meta_ref'] )
|
|
|
|
{
|
|
|
|
$page['meta_robots']['noindex'] = 1;
|
|
|
|
$page['meta_robots']['nofollow'] = 1;
|
|
|
|
}
|
|
|
|
|
2007-01-09 02:30:02 +01:00
|
|
|
if ( !empty($page['meta_robots']) )
|
|
|
|
{
|
2008-03-02 01:29:27 +01:00
|
|
|
$template->append('head_elements',
|
|
|
|
'<meta name="robots" content="'
|
|
|
|
.implode(',', array_keys($page['meta_robots']))
|
|
|
|
.'">'
|
2007-01-09 02:30:02 +01:00
|
|
|
);
|
|
|
|
}
|
2009-01-03 22:08:22 +01:00
|
|
|
if ( !isset($page['meta_robots']['noindex']) )
|
|
|
|
{
|
|
|
|
$template->assign('meta_ref',1);
|
|
|
|
}
|
2007-01-09 02:30:02 +01:00
|
|
|
|
2006-10-26 05:35:20 +02:00
|
|
|
// refresh
|
|
|
|
if ( isset( $refresh ) and intval($refresh) >= 0
|
2008-09-12 04:17:35 +02:00
|
|
|
and isset( $url_link ) )
|
2006-10-26 05:35:20 +02:00
|
|
|
{
|
2008-03-02 01:29:27 +01:00
|
|
|
$template->assign(
|
2006-10-26 05:35:20 +02:00
|
|
|
array(
|
2008-03-02 01:29:27 +01:00
|
|
|
'page_refresh' => array(
|
|
|
|
'TIME' => $refresh,
|
|
|
|
'U_REFRESH' => $url_link
|
|
|
|
)
|
2006-10-26 05:35:20 +02:00
|
|
|
));
|
|
|
|
}
|
2006-07-28 16:07:57 +02:00
|
|
|
|
2006-11-01 06:54:35 +01:00
|
|
|
trigger_action('loc_end_page_header');
|
|
|
|
|
2007-10-09 01:46:09 +02:00
|
|
|
header('Content-Type: text/html; charset='.get_pwg_charset());
|
2005-01-13 11:18:49 +01:00
|
|
|
$template->parse('header');
|
2007-02-04 19:42:37 +01:00
|
|
|
|
|
|
|
trigger_action('loc_after_page_header');
|
2007-11-02 00:08:27 +01:00
|
|
|
?>
|