Changeset 23399


Ignore:
Timestamp:
Jun 20, 2013, 4:35:16 PM (11 years ago)
Author:
mistic100
Message:

feature:2832 Provide better integration of plugins adding a all new section
don't need for an extra file

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r23396 r23399  
    120120include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
    121121
     122$template->set_filename('index', 'index.tpl');
    122123
    123124// +-----------------------------------------------------------------------+
     
    128129  //----------------------------------------------------- template initialization
    129130  $page['body_id'] = 'theCategoryPage';
    130 
    131   $template->set_filename('index', 'index.tpl');
    132131 
    133132  if (isset($page['flat']) or isset($page['chronology_field']))
     
    336335  }
    337336}
    338 // +-----------------------------------------------------------------------+
    339 // |  other pages (added by plugins)                                       |
    340 // +-----------------------------------------------------------------------+
    341 else
    342 {
    343   $template->set_filename('index', 'common_page.tpl');
    344 }
    345337
    346338//------------------------------------------------------------ end
  • trunk/themes/default/template/index.tpl

    r23384 r23399  
    9494                </a>{/strip}</li>
    9595{/if}
    96 {if isset($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
     96{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
    9797{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
    9898        </ul>
     
    164164{/if}
    165165
     166{if !empty($CONTENT)}{$CONTENT}{/if}
     167
    166168{if !empty($CATEGORIES)}{$CATEGORIES}{/if}
     169
    167170{if !empty($cats_navbar)}
    168171        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
Note: See TracChangeset for help on using the changeset viewer.