Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: index.php
- ===================================================================
- --- index.php (revision 20449)
- +++ index.php (working copy)
- @@ -107,15 +107,8 @@
- }
- $template->assign('U_CANONICAL', $canonical_url);
- -//----------------------------------------------------- template initialization
- -//
- -// Start output of page
- -//
- +
- $title = $page['title'];
- -$page['body_id'] = 'theCategoryPage';
- -
- -$template->set_filenames( array('index'=>'index.tpl') );
- -//-------------------------------------------------------------- category title
- $template_title = $page['section_title'];
- if (count($page['items']) > 0)
- {
- @@ -123,6 +116,18 @@
- }
- $template->assign('TITLE', $template_title);
- +// include menubar
- +include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
- +
- +if (!isset($page['body_id']))
- +{
- +//----------------------------------------------------- template initialization
- +$page['body_id'] = 'theCategoryPage';
- +
- +$template->set_filename('index', 'index.tpl');
- +//-------------------------------------------------------------- category title
- +
- +
- if (isset($page['flat']) or isset($page['chronology_field']))
- {
- $template->assign(
- @@ -273,9 +278,6 @@
- $template->assign('CONTENT_DESCRIPTION', $page['comment'] );
- }
- -// include menubar
- -include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
- -
- if ( isset($page['category']['count_categories']) and $page['category']['count_categories']==0 )
- {// count_categories might be computed by menubar - if the case unassign flat link if no sub albums
- $template->clear_assign('U_MODE_FLAT');
- @@ -330,12 +332,18 @@
- $template->assign('U_SLIDESHOW', $page['cat_slideshow_url']);
- }
- }
- +}
- +else
- +{
- + $template->set_filename('index', 'empty_page.tpl');
- +}
- include(PHPWG_ROOT_PATH.'include/page_header.php');
- trigger_action('loc_end_index');
- include(PHPWG_ROOT_PATH.'include/page_messages.php');
- $template->parse_index_buttons();
- $template->pparse('index');
- +
- //------------------------------------------------------------ log informations
- pwg_log();
- include(PHPWG_ROOT_PATH.'include/page_tail.php');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement