[SETTINGS] show/hide donors and about page
This commit is contained in:
parent
0164a7b918
commit
4fea5de341
@ -194,6 +194,20 @@ $aSettings['acl'][] = array(
|
|||||||
'name' => 'acl_uptime_statistics', 'value' => $setting->getValue('acl_uptime_statistics'),
|
'name' => 'acl_uptime_statistics', 'value' => $setting->getValue('acl_uptime_statistics'),
|
||||||
'tooltip' => 'Make the uptime statistics page private (users only) or public.'
|
'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(
|
$aSettings['system'][] = array(
|
||||||
'display' => 'E-mail address for system error notifications', 'type' => 'text',
|
'display' => 'E-mail address for system error notifications', 'type' => 'text',
|
||||||
'size' => 25,
|
'size' => 25,
|
||||||
|
|||||||
@ -103,6 +103,8 @@ $aGlobal['acl']['pool']['statistics'] = $setting->getValue('acl_pool_statistics'
|
|||||||
$aGlobal['acl']['block']['statistics'] = $setting->getValue('acl_block_statistics');
|
$aGlobal['acl']['block']['statistics'] = $setting->getValue('acl_block_statistics');
|
||||||
$aGlobal['acl']['round']['statistics'] = $setting->getValue('acl_round_statistics');
|
$aGlobal['acl']['round']['statistics'] = $setting->getValue('acl_round_statistics');
|
||||||
$aGlobal['acl']['uptime']['statistics'] = $setting->getValue('acl_uptime_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
|
// We don't want these session infos cached
|
||||||
if (@$_SESSION['USERDATA']['id']) {
|
if (@$_SESSION['USERDATA']['id']) {
|
||||||
|
|||||||
@ -55,11 +55,13 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<li><a href="{$smarty.server.PHP_SELF}?page=gettingstarted">Getting Started</a></li>
|
<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>
|
<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>
|
<li><a href="{$smarty.server.PHP_SELF}?page=about&action=pool">About</a>
|
||||||
|
{/if}
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{$smarty.server.PHP_SELF}?page=about&action=pool">This Pool</a></li>
|
<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}
|
{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>
|
</ul>
|
||||||
</li>
|
</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}
|
{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}
|
||||||
|
|||||||
@ -57,8 +57,12 @@
|
|||||||
<h3>Help</h3>
|
<h3>Help</h3>
|
||||||
<ul class="toggle">
|
<ul class="toggle">
|
||||||
<li class="icon-desktop"><a href="{$smarty.server.PHP_SELF}?page=gettingstarted">GettingStarted</a></li>
|
<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>
|
<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>
|
<li class="icon-money"><a href="{$smarty.server.PHP_SELF}?page=about&action=donors">Donors</a></li>
|
||||||
|
{/if}
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Other</h3>
|
<h3>Other</h3>
|
||||||
<ul class="toggle">
|
<ul class="toggle">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user