[SETTINGS] show/hide donors and about page

This commit is contained in:
root 2013-11-10 11:06:20 +01:00
parent 0164a7b918
commit 4fea5de341
4 changed files with 23 additions and 1 deletions

View File

@ -194,6 +194,20 @@ $aSettings['acl'][] = array(
'name' => 'acl_uptime_statistics', 'value' => $setting->getValue('acl_uptime_statistics'),
'tooltip' => 'Make the uptime statistics page private (users only) or public.'
);
$aSettings['acl'][] = array(
'display' => 'Donors Page', 'type' => 'select',
'options' => array( 0 => 'Hide', 1 => 'Show'),
'default' => 1,
'name' => 'acl_donors_page', 'value' => $setting->getValue('acl_donors_page'),
'tooltip' => 'Showing Donors page in Navigation.'
);
$aSettings['acl'][] = array(
'display' => 'About Page', 'type' => 'select',
'options' => array( 0 => 'Hide', 1 => 'Show'),
'default' => 1,
'name' => 'acl_about_page', 'value' => $setting->getValue('acl_about_page'),
'tooltip' => 'Showing About page in Navigation.'
);
$aSettings['system'][] = array(
'display' => 'E-mail address for system error notifications', 'type' => 'text',
'size' => 25,

View File

@ -103,6 +103,8 @@ $aGlobal['acl']['pool']['statistics'] = $setting->getValue('acl_pool_statistics'
$aGlobal['acl']['block']['statistics'] = $setting->getValue('acl_block_statistics');
$aGlobal['acl']['round']['statistics'] = $setting->getValue('acl_round_statistics');
$aGlobal['acl']['uptime']['statistics'] = $setting->getValue('acl_uptime_statistics');
$aGlobal['acl']['navigation']['donors'] = $setting->getValue('acl_donors_page');
$aGlobal['acl']['navigation']['about'] = $setting->getValue('acl_about_page');
// We don't want these session infos cached
if (@$_SESSION['USERDATA']['id']) {

View File

@ -55,11 +55,13 @@
{/if}
<li><a href="{$smarty.server.PHP_SELF}?page=gettingstarted">Getting Started</a></li>
<li><a href="{$smarty.server.PHP_SELF}?page=support">Support</a></li>
{if $GLOBAL.config.acl.navigation.about|default:"0" == 1}
<li><a href="{$smarty.server.PHP_SELF}?page=about&action=pool">About</a>
{/if}
<ul>
<li><a href="{$smarty.server.PHP_SELF}?page=about&action=pool">This Pool</a></li>
{if !$GLOBAL.website.api.disabled}<li><a href="{$smarty.server.PHP_SELF}?page=about&action=api">API Reference</a></li>{/if}
<li><a href="{$smarty.server.PHP_SELF}?page=about&action=donors">Pool Donors</a></li>
{if $GLOBAL.config.acl.navigation.donors|default:"0" == 1}<li><a href="{$smarty.server.PHP_SELF}?page=about&action=donors">Pool Donors</a></li>{/if}
</ul>
</li>
{if $smarty.session.AUTHENTICATED|default == 1}<li><a href="{$smarty.server.PHP_SELF}?page=logout">Logout</a></li>{else}<li><a href="{$smarty.server.PHP_SELF}?page=register">Register</a></li>{/if}

View File

@ -57,8 +57,12 @@
<h3>Help</h3>
<ul class="toggle">
<li class="icon-desktop"><a href="{$smarty.server.PHP_SELF}?page=gettingstarted">GettingStarted</a></li>
{if $GLOBAL.config.acl.navigation.about|default:"0" == 1}
<li class="icon-doc"><a href="{$smarty.server.PHP_SELF}?page=about&action=pool">About</a></li>
{/if}
{if $GLOBAL.config.acl.navigation.donors|default:"0" == 1}
<li class="icon-money"><a href="{$smarty.server.PHP_SELF}?page=about&action=donors">Donors</a></li>
{/if}
</ul>
<h3>Other</h3>
<ul class="toggle">