mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
switch to hide user menu
This commit is contained in:
@@ -728,8 +728,12 @@ $config['disable_oqrs'] = false;
|
||||
| Example: Special Callsign: DL250CDF
|
||||
| Operator: DF2TG
|
||||
|
|
||||
| It is recommend to enable also "Disable Syncing to 3rd party-Services at UI"
|
||||
| More Information about this feature and how to use it, you can find here: TODO add link to Wiki
|
||||
|
|
||||
*/
|
||||
|
||||
$config['special_callsign'] = false;
|
||||
$config['special_callsign'] = false;
|
||||
|
||||
// hides the usermenu; takes action only if "special_callsign" is true
|
||||
$config['sc_hide_usermenu'] = true;
|
||||
@@ -355,7 +355,12 @@
|
||||
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-user"></i> <?php echo $this->session->userdata('user_callsign'); ?></a>
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('user/edit') . "/" . $this->session->userdata('user_id'); ?>" title="Account"><i class="fas fa-user"></i> <?= __("Account"); ?></a></li>
|
||||
<?php
|
||||
if (!$this->config->item('special_callsign') ||
|
||||
$this->session->userdata('user_type') == '99' ||
|
||||
($this->config->item('special_callsign') && !$this->config->item('sc_hide_usermenu'))) { ?>
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('user/edit') . "/" . $this->session->userdata('user_id'); ?>" title="Account"><i class="fas fa-user"></i> <?= __("Account"); ?></a></li>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name' => 'locations_quickswitch'))->row()->option_value ?? 'false');
|
||||
if ($quickswitch_enabled != 'true') {
|
||||
|
||||
@@ -728,8 +728,12 @@ $config['disable_oqrs'] = false;
|
||||
| Example: Special Callsign: DL250CDF
|
||||
| Operator: DF2TG
|
||||
|
|
||||
| It is recommend to enable also "Disable Syncing to 3rd party-Services at UI"
|
||||
| More Information about this feature and how to use it, you can find here: TODO add link to Wiki
|
||||
|
|
||||
*/
|
||||
|
||||
$config['special_callsign'] = false;
|
||||
|
||||
// hides the usermenu; takes action only if "special_callsign" is true
|
||||
$config['sc_hide_usermenu'] = true;
|
||||
Reference in New Issue
Block a user