2004-02-02 00:55:18 +00:00
|
|
|
<?php
|
2004-02-11 23:20:38 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
2011-01-18 00:02:52 +00:00
|
|
|
// | Piwigo - a PHP based photo gallery |
|
2008-04-04 22:57:23 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
2016-01-14 12:17:58 +01:00
|
|
|
// | Copyright(C) 2008-2016 Piwigo Team http://piwigo.org |
|
2008-04-04 22:57:23 +00: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-11 23:20:38 +00: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 01:57:13 +00:00
|
|
|
|
2004-02-02 00:55:18 +00:00
|
|
|
//
|
|
|
|
// Start output of page
|
|
|
|
//
|
2006-06-22 18:17:47 +00:00
|
|
|
$template->set_filenames(array('header'=>'header.tpl'));
|
2004-02-02 00:55:18 +00:00
|
|
|
|
2014-06-02 07:55:46 +00:00
|
|
|
trigger_notify('loc_begin_page_header');
|
2006-11-01 05:54:35 +00:00
|
|
|
|
2008-03-02 00:29:27 +00:00
|
|
|
$template->assign(
|
2004-03-31 20:43:09 +00: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-25 22:43:47 +00:00
|
|
|
'GALLERY_TITLE' =>
|
|
|
|
isset($page['gallery_title']) ?
|
|
|
|
$page['gallery_title'] : $conf['gallery_title'],
|
2006-03-09 01:57:13 +00:00
|
|
|
|
|
|
|
'PAGE_BANNER' =>
|
2014-06-02 07:55:46 +00:00
|
|
|
trigger_change(
|
2011-08-30 08:24:42 +00:00
|
|
|
'render_page_banner',
|
|
|
|
str_replace(
|
|
|
|
'%gallery_title%',
|
|
|
|
$conf['gallery_title'],
|
|
|
|
isset($page['page_banner']) ? $page['page_banner'] : $conf['page_banner']
|
|
|
|
)
|
|
|
|
),
|
2006-03-09 01:57:13 +00: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-25 22:43:47 +00:00
|
|
|
'BODY_ID' =>
|
|
|
|
isset($page['body_id']) ?
|
|
|
|
$page['body_id'] : '',
|
2006-03-09 01:57:13 +00:00
|
|
|
|
2007-10-08 23:46:09 +00:00
|
|
|
'CONTENT_ENCODING' => get_pwg_charset(),
|
2006-04-04 00:35:12 +00:00
|
|
|
'PAGE_TITLE' => strip_tags($title),
|
2006-03-09 01:57:13 +00:00
|
|
|
|
2011-06-14 12:14:29 +00:00
|
|
|
'U_HOME' => get_gallery_home_url(),
|
2012-04-15 17:10:16 +00:00
|
|
|
|
|
|
|
'LEVEL_SEPARATOR' => $conf['level_separator'],
|
2004-03-31 20:43:09 +00:00
|
|
|
));
|
2004-02-07 11:50:26 +00:00
|
|
|
|
2006-12-21 21:38:20 +00:00
|
|
|
|
|
|
|
// Header notes
|
2008-03-02 00:29:27 +00:00
|
|
|
if ( !empty($header_notes) )
|
2006-12-21 21:38:20 +00:00
|
|
|
{
|
2008-03-02 00:29:27 +00:00
|
|
|
$template->assign('header_notes',$header_notes);
|
2006-12-21 21:38:20 +00:00
|
|
|
}
|
|
|
|
|
2009-01-03 21:08:22 +00:00
|
|
|
// No referencing is required
|
2012-02-09 21:11:34 +00:00
|
|
|
if ( !$conf['meta_ref'] )
|
2009-01-03 21:08:22 +00:00
|
|
|
{
|
|
|
|
$page['meta_robots']['noindex'] = 1;
|
|
|
|
$page['meta_robots']['nofollow'] = 1;
|
|
|
|
}
|
|
|
|
|
2007-01-09 01:30:02 +00:00
|
|
|
if ( !empty($page['meta_robots']) )
|
|
|
|
{
|
2008-03-02 00:29:27 +00:00
|
|
|
$template->append('head_elements',
|
|
|
|
'<meta name="robots" content="'
|
|
|
|
.implode(',', array_keys($page['meta_robots']))
|
|
|
|
.'">'
|
2007-01-09 01:30:02 +00:00
|
|
|
);
|
|
|
|
}
|
2009-01-03 21:08:22 +00:00
|
|
|
if ( !isset($page['meta_robots']['noindex']) )
|
2012-02-09 21:11:34 +00:00
|
|
|
{
|
|
|
|
$template->assign('meta_ref',1);
|
2009-01-03 21:08:22 +00:00
|
|
|
}
|
2007-01-09 01:30:02 +00:00
|
|
|
|
2006-10-26 03:35:20 +00:00
|
|
|
// refresh
|
|
|
|
if ( isset( $refresh ) and intval($refresh) >= 0
|
2008-09-12 02:17:35 +00:00
|
|
|
and isset( $url_link ) )
|
2006-10-26 03:35:20 +00:00
|
|
|
{
|
2008-03-02 00:29:27 +00:00
|
|
|
$template->assign(
|
2006-10-26 03:35:20 +00:00
|
|
|
array(
|
2008-03-02 00:29:27 +00:00
|
|
|
'page_refresh' => array(
|
|
|
|
'TIME' => $refresh,
|
|
|
|
'U_REFRESH' => $url_link
|
|
|
|
)
|
2006-10-26 03:35:20 +00:00
|
|
|
));
|
|
|
|
}
|
2012-06-06 20:29:30 +00:00
|
|
|
|
2014-06-02 07:55:46 +00:00
|
|
|
trigger_notify('loc_end_page_header');
|
2006-11-01 05:54:35 +00:00
|
|
|
|
2007-10-08 23:46:09 +00:00
|
|
|
header('Content-Type: text/html; charset='.get_pwg_charset());
|
2005-01-13 10:18:49 +00:00
|
|
|
$template->parse('header');
|
2007-02-04 18:42:37 +00:00
|
|
|
|
2014-06-02 07:55:46 +00:00
|
|
|
trigger_notify('loc_after_page_header');
|
2007-11-01 23:08:27 +00:00
|
|
|
?>
|