Skip to content
Snippets Groups Projects
Commit 83be3c03 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #22654 improve links display

parent 050941fe
Branches
Tags
3 merge requests!896Master,!792Dev#22657 pnb display user account,!783Dev#22657 pnb display user account
......@@ -32,14 +32,14 @@ class ZendAfi_View_Helper_TagDilicomWidget extends Zend_View_Helper_HtmlElement
'width' => '100%',
'height' => '600px']);
$link = $this->view->tag('p', $this->view->_('Vous devez vous connecter pour accéder à la consultation en ligne.'));
$links = $this->view->tag('p', $this->view->_('Vous devez vous connecter pour accéder à la consultation en ligne.'));
if(($this->_user = Class_Users::getIdentity()) && ($this->_user->hasRightAccessDilicom()))
$link = $this->getConsultBookAnchor()
$links = $this->getConsultBookAnchor()
. $this->getLoanBookAnchor()
. $this->getEndLoanBookAnchor();
return $link . $iframe;
return $links . $iframe;
}
......@@ -68,11 +68,12 @@ class ZendAfi_View_Helper_TagDilicomWidget extends Zend_View_Helper_HtmlElement
protected function getDilicomAnchor($action, $label) {
return $this->view->tagAnchor(['controller' => 'bib-numerique',
'action' => $action,
'id' => $this->_album->getId()],
$label,
['target' => '_blank']);
return $this->view->tag('div',
$this->view->tagAnchor(['controller' => 'bib-numerique',
'action' => $action,
'id' => $this->_album->getId()],
$label,
['target' => '_blank']));
}
}
?>
\ No newline at end of file
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