diff --git a/src/Model/Navigation/NaviEntryAbsoluteLink.php b/src/Model/Navigation/NaviEntryAbsoluteLink.php index 17dcf4af6..95a0ef0fd 100644 --- a/src/Model/Navigation/NaviEntryAbsoluteLink.php +++ b/src/Model/Navigation/NaviEntryAbsoluteLink.php @@ -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 "self: "; var_dump($GLOBALS("self")); $self = $GLOBALS["self"]; diff --git a/src/Template/Element/navi.ctp b/src/Template/Element/navi.ctp index cb8caad69..72f352dca 100644 --- a/src/Template/Element/navi.ctp +++ b/src/Template/Element/navi.ctp @@ -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( diff --git a/src/Template/Layout/frontend.ctp b/src/Template/Layout/frontend.ctp index d363ed8d1..8f004eeb9 100644 --- a/src/Template/Layout/frontend.ctp +++ b/src/Template/Layout/frontend.ctp @@ -62,12 +62,17 @@ if(!isset($balance)) {
  • 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]) ?>
  • Html->link(__('Startseite'), ['controller' => 'Dashboard', 'action' => 'index'], ['class' => 'grd-nav-bn'])?>
  • +
  • + + + +
  • 0) : ?>
  • diff --git a/webroot/css/styles.css b/webroot/css/styles.css index f2c7a3dea..143cbdc08 100644 --- a/webroot/css/styles.css +++ b/webroot/css/styles.css @@ -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