mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adding mitgliederbereich link to menus
This commit is contained in:
parent
8189fd7d86
commit
8fae6c3f84
@ -14,11 +14,11 @@ use Cake\Routing\Router;
|
||||
|
||||
class NaviEntryAbsoluteLink extends NaviEntryBase {
|
||||
|
||||
private $link = '';
|
||||
private $active = '';
|
||||
private $iconClass = '';
|
||||
private $iconColor = '';
|
||||
private $bgColorClass = '';
|
||||
protected $link = '';
|
||||
protected $active = '';
|
||||
protected $iconClass = '';
|
||||
protected $iconColor = '';
|
||||
protected $bgColorClass = '';
|
||||
|
||||
public function __construct($title, $iconClass, $link, $active = null) {
|
||||
|
||||
@ -45,7 +45,7 @@ class NaviEntryAbsoluteLink extends NaviEntryBase {
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
private function link() {
|
||||
protected function link() {
|
||||
//global $self;
|
||||
//echo "<i>self: </i>"; var_dump($GLOBALS("self"));
|
||||
$self = $GLOBALS["self"];
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
use Model\Navigation\NaviEntry;
|
||||
use Model\Navigation\NaviEntrySub;
|
||||
use Model\Navigation\NaviEntryAbsoluteLink;
|
||||
use Model\Navigation\NaviEntryExternLink;
|
||||
|
||||
$session = $this->getRequest()->getSession();
|
||||
$transactionPendings = $session->read('Transactions.pending');
|
||||
@ -34,6 +35,7 @@ if($balance < 0 ) {
|
||||
array_push($navi, $balanceNaviEntry);
|
||||
array_push($navi, new NaviEntry(__('Startseite'), 'mdi-gauge', 'Dashboard', 'index'));
|
||||
array_push($navi, new NaviEntry(__('Überweisung'), 'mdi-bank-transfer-out', 'TransactionSendCoins', 'create'));
|
||||
array_push($navi, new NaviEntryExternLink(__('Mitgliederbereich'), 'mdi-account-switch', 'https://elopage.com/s/gradido/sign_in'));
|
||||
|
||||
if(intval($transactionPendings) > 0) {
|
||||
/* array_push($navi, new NaviEntryAbsoluteLink(
|
||||
|
||||
@ -62,12 +62,17 @@ if(!isset($balance)) {
|
||||
<?php endif; ?>
|
||||
<?php if(isset($balance)) : ?>
|
||||
<li><?= $this->Html->link($this->element('printGradido', ['number' => $balance]),
|
||||
['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn grd-nav-without-border', 'escape' => false])
|
||||
['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn', 'escape' => false])
|
||||
?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li><?= $this->Html->link(__('Startseite'), ['controller' => 'Dashboard', 'action' => 'index'], ['class' => 'grd-nav-bn'])?></li>
|
||||
<!--<li><?= $this->Html->link(__('Kontostand'), ['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn']) ?>-->
|
||||
<li>
|
||||
<a href="https://elopage.com/s/gradido/sign_in" target="_blank" class="grd-nav-bn">
|
||||
<?= __("Mitgliederbereich") ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php if(intval($transactionPendings) > 0) : ?>
|
||||
<li>
|
||||
<a href="<?= Router::url('./', true) ?>account/checkTransactions" class="grd-nav-bn">
|
||||
|
||||
@ -231,7 +231,7 @@ nav.grd-left-bar {
|
||||
top: 80.5px;
|
||||
}
|
||||
nav .grd-nav-bn {
|
||||
width: 100px;
|
||||
width: 120px;
|
||||
}
|
||||
nav ul {
|
||||
margin-top: 0;
|
||||
@ -251,6 +251,9 @@ nav ul {
|
||||
vertical-align: middle;
|
||||
color: grey;
|
||||
}
|
||||
.grd-nav-without-border {
|
||||
border: none;
|
||||
}
|
||||
.grd-nav-bn-large {
|
||||
width: 40vw;
|
||||
height: 18vh;
|
||||
@ -261,6 +264,9 @@ a.grd-nav-bn:visited {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
.grd-nav-bn-discard {
|
||||
color: darkred !important;
|
||||
}
|
||||
/*
|
||||
To change this license header, choose License Headers in Project Properties.
|
||||
To change this template file, choose Tools | Templates
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user