Skip to content
Snippets Groups Projects
Commit 869b4ba8 authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Robert Lange
Browse files

refs #20748 [fid_adlr] adds accessibility to non-active bookbar

parent cb5ab93f
Branches
Tags
No related merge requests found
......@@ -30,36 +30,37 @@
<?php endif; ?>
</span>
<?php /*
<ul>
<?php $cart = $this->cart();
if ($cart->isActive()): ?>
<li id="cartSummary">
<a id="cartItems" data-lightbox title="<?=$this->transEsc('View Book Bag')?>" href="<?=$this->url('cart-home')?>">
<i class="icon icon-calendar" aria-hidden="true"></i> <strong><?=count($cart->getItems())?></strong> <?=$this->transEsc('items')?>
<span class="full<?=!$cart->isFull() ? ' hidden' : ''?>">(<?=$this->transEsc('bookbag_full')?>)</span>
</a>
</li>
<?php endif; ?>
<?php /* adlr currently doesn't use cart/bookbag, but accessibility of the following was already improved */
/*
<?php $cart = $this->cart();
if ($cart->isActive()): ?>
<div id="cartSummary" role="status">
<a id="cartItems" class="bookmark" data-lightbox title="<?=$this->transEsc('View Book Bag')?>" href="<?=$this->url('cart-home')?>">
<i class="icon icon-calendar" aria-hidden="true"></i>
<span class="sr-only"><?=$this->transEsc('Book Bag')?>:</span>
<strong class="cart-size"><?= count($cart->getItems()) ?></strong>
<span class="cart-label"><?=$this->transEsc('items')?></span>
<span class="cart-size full<?= !$cart->isFull() ? ' hidden' : '' ?>">(<?= $this->transEsc('bookbag_full') ?>)</span>
</a>
</div>
<?php endif; ?>
<?php if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?>
<li class="theme dropdown">
<form method="post" name="themeForm" id="themeForm">
<input type="hidden" name="ui"/>
</form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Theme")?> <b class="icon icon-chevron-down"></b></a>
<ul class="dropdown-menu">
<?php foreach ($this->layout()->themeOptions as $current): ?>
<li<?=$current['selected'] ? ' class="active"' : ''?>>
<a href="#" onClick="document.themeForm.ui.value='<?=$this->escapeHtmlAttr($current['name'])?>';document.themeForm.submit()"><?=$this->transEsc($current['desc'])?></a>
</li>
<?php endforeach; ?>
</ul>
</li>
<?php endif;?>
</ul>
*/ ?>
<?php if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?>
<div class="theme dropdown">
<form method="post" name="themeForm" id="themeForm">
<input type="hidden" name="ui"/>
</form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Theme")?> <b class="icon icon-chevron-down"></b></a>
<ul class="dropdown-menu">
<?php foreach ($this->layout()->themeOptions as $current): ?>
<li<?=$current['selected'] ? ' class="active"' : ''?>>
<a href="#" onClick="document.themeForm.ui.value='<?=$this->escapeHtmlAttr($current['name'])?>';document.themeForm.submit()"><?=$this->transEsc($current['desc'])?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif;?>
*/ ?>
</div>
<?php endif; ?>
<?php /* fid_adlr: header-menu-collapse for feedback (disabled?) / registering / card (disabled) - END */ ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment