mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
feature:2832 Provide better integration of plugins adding a all new section
don't need for an extra file git-svn-id: http://piwigo.org/svn/trunk@23399 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -119,6 +119,7 @@ $template->assign('TITLE', $template_title);
|
||||
//-------------------------------------------------------------- menubar
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
|
||||
$template->set_filename('index', 'index.tpl');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | index page (categories, thumbnails, search, calendar, random, etc.) |
|
||||
@@ -127,8 +128,6 @@ if ( empty($page['is_external']) or !$page['is_external'] )
|
||||
{
|
||||
//----------------------------------------------------- template initialization
|
||||
$page['body_id'] = 'theCategoryPage';
|
||||
|
||||
$template->set_filename('index', 'index.tpl');
|
||||
|
||||
if (isset($page['flat']) or isset($page['chronology_field']))
|
||||
{
|
||||
@@ -335,13 +334,6 @@ if ( empty($page['is_external']) or !$page['is_external'] )
|
||||
}
|
||||
}
|
||||
}
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | other pages (added by plugins) |
|
||||
// +-----------------------------------------------------------------------+
|
||||
else
|
||||
{
|
||||
$template->set_filename('index', 'common_page.tpl');
|
||||
}
|
||||
|
||||
//------------------------------------------------------------ end
|
||||
include(PHPWG_ROOT_PATH.'include/page_header.php');
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
{combine_script id='core.switchbox' load='footer' require='jquery' path='themes/default/js/switchbox.js'}
|
||||
{$MENUBAR}
|
||||
|
||||
|
||||
{if isset($errors) or isset($infos)}
|
||||
<div class="content messages{if isset($MENUBAR)} contentWithMenu{/if}">
|
||||
{include file='infos_errors.tpl'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
|
||||
<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions">
|
||||
{if !empty($image_orders)}
|
||||
<li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
|
||||
<span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span>
|
||||
</a>
|
||||
<div id="sortOrderBox" class="switchBox">
|
||||
<div class="switchBoxTitle">{'Sort order'|@translate}</div>
|
||||
{foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
|
||||
{if $image_order.SELECTED}
|
||||
<span>✔ </span>{$image_order.DISPLAY}
|
||||
{else}
|
||||
<span style="visibility:hidden">✔ </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{footer_script require='core.switchbox'}switchBox("#sortOrderLink", "#sortOrderBox");{/footer_script}
|
||||
{/strip}</li>
|
||||
{/if}
|
||||
{if !empty($image_derivatives)}
|
||||
<li>{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
|
||||
<span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span>
|
||||
</a>
|
||||
<div id="derivativeSwitchBox" class="switchBox">
|
||||
<div class="switchBoxTitle">{'Photo sizes'|@translate}</div>
|
||||
{foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
|
||||
{if $image_derivative.SELECTED}
|
||||
<span>✔ </span>{$image_derivative.DISPLAY}
|
||||
{else}
|
||||
<span style="visibility:hidden">✔ </span><a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{footer_script require='core.switchbox'}switchBox("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script}
|
||||
{/strip}</li>
|
||||
{/if}
|
||||
{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
|
||||
{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
|
||||
</ul>
|
||||
|
||||
<h2>{$TITLE}</h2>
|
||||
</div>{* <!-- titrePage --> *}
|
||||
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
|
||||
|
||||
{if !empty($CONTENT)}{$CONTENT}{/if}
|
||||
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
|
||||
</div>{* <!-- content --> *}
|
||||
{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
|
||||
@@ -93,7 +93,7 @@
|
||||
<span class="pwg-icon pwg-icon-camera-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span>
|
||||
</a>{/strip}</li>
|
||||
{/if}
|
||||
{if isset($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
|
||||
{if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if}
|
||||
{if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
|
||||
</ul>
|
||||
|
||||
@@ -163,7 +163,10 @@ jQuery("#calendarViewSwitchBox").on("mouseleave", function() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($CONTENT)}{$CONTENT}{/if}
|
||||
|
||||
{if !empty($CATEGORIES)}{$CATEGORIES}{/if}
|
||||
|
||||
{if !empty($cats_navbar)}
|
||||
{include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user