From 9fbbfb2f4388c582e49b1c9cfcb952b446b6d83c Mon Sep 17 00:00:00 2001 From: Claas Kazzer <kazzer@uni-leipzig.de> Date: Tue, 5 Jan 2016 16:39:47 +0100 Subject: [PATCH] refs #6748: * changed tabs in view.phtml files --- themes/finc/templates/collection/view.phtml | 6 ++++-- themes/finc/templates/record/view.phtml | 5 +++-- themes/foundation5/templates/collection/view.phtml | 4 +++- themes/foundation5/templates/record/view.phtml | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/themes/finc/templates/collection/view.phtml b/themes/finc/templates/collection/view.phtml index d3c8ca59a3b..4b27b6afdae 100644 --- a/themes/finc/templates/collection/view.phtml +++ b/themes/finc/templates/collection/view.phtml @@ -58,7 +58,9 @@ <? if (count($this->tabs) > 0): ?> <a name="tabnav"></a> - <ul class="recordTabs tabs"><? /*<!-- DO NOT use standard data-tab option (<ul class="recordTabs tabs" data-tab>) here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> + <div class="record-tabs"> + <ul class="recordTabs tabs"> + <? /*<!-- DO NOT use standard data-tab option (<ul class= ... data-tab>) here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); @@ -84,7 +86,7 @@ <?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : '' ?> </div> </div> - + </div> <?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?> </div> diff --git a/themes/finc/templates/record/view.phtml b/themes/finc/templates/record/view.phtml index 947fcd2838e..860be137b3a 100644 --- a/themes/finc/templates/record/view.phtml +++ b/themes/finc/templates/record/view.phtml @@ -52,7 +52,8 @@ <? if (count($this->tabs) > 0): ?> <a name="tabnav"></a> - <ul class="recordTabs tabs"><? /* DO NOT use standard data-tab option here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> + <div class="record-tabs"> + <ul class="recordTabs tabs"><? /* DO NOT use standard data-tab option here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); @@ -78,7 +79,7 @@ <?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : '' ?> </div> </div> - +</div> <?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?> </div> diff --git a/themes/foundation5/templates/collection/view.phtml b/themes/foundation5/templates/collection/view.phtml index 82f006ed9eb..407134d9cfd 100644 --- a/themes/foundation5/templates/collection/view.phtml +++ b/themes/foundation5/templates/collection/view.phtml @@ -58,7 +58,8 @@ $this->layout()->breadcrumbs .= '<li><a href="' . $this->url('collections-home') <? if (count($this->tabs) > 0): ?> <a name="tabnav"></a> - <ul class="record-tabs tabs"><? /*<!-- DO NOT use standard data-tab option (<ul class="recordTabs tabs" data-tab>) here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> + <div class="record-tabs"> + <ul class="recordTabs tabs"><? /*<!-- DO NOT use standard data-tab option here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); @@ -91,6 +92,7 @@ $this->layout()->breadcrumbs .= '<li><a href="' . $this->url('collections-home') </div> <? endif; ?> </div> + </div> <? endif; ?> <?=$this->driver->supportsCoinsOpenURL() ? '<span class="Z3988" title="' . $this->escapeHtmlAttr($this->driver->getCoinsOpenURL()) . '"></span>' : ''?> diff --git a/themes/foundation5/templates/record/view.phtml b/themes/foundation5/templates/record/view.phtml index 3ced9114474..445379a7e29 100644 --- a/themes/foundation5/templates/record/view.phtml +++ b/themes/foundation5/templates/record/view.phtml @@ -61,7 +61,7 @@ $this->layout()->title = $this->driver->getShortTitle(); <? if (count($this->tabs) > 0): ?> <a name="tabnav"></a> <div class="record-tabs"> - <ul class="tabs"><? /* DO NOT use standard data-tab option here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> + <ul class="recordTabs tabs"><? /* DO NOT use standard data-tab option here as it triggers Foundation's normal tab behaviour while Vufind only uses tab appearance! FIXME CK */ ?> <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); -- GitLab