Commit b0bd732c authored by efalcy's avatar efalcy
Browse files

dev #17875 : RGAA NAV-16 : title/alt missing for a links

parent dcdeca1e
......@@ -32,7 +32,7 @@ class ZendAfi_View_Helper_TagBanniere extends Zend_View_Helper_HtmlElement {
$top_profil = $this->_profil->getParentsAndSelf()[0];
return sprintf('<div id="banniere">%s<a class="home" href="%s" style="display:block">%s</a></div>',
return sprintf('<div id="banniere">%s<a class="home" alt="bandeau" href="%s" style="display:block">%s</a></div>',
$this->_getLogos(),
$this->view->url(['id_profil' => $top_profil->getId()],
null,
......
......@@ -25,6 +25,8 @@ class ZendAfi_View_Helper_TagImg extends Zend_View_Helper_HtmlElement {
* @return string
*/
public function tagImg($url, Array $attribs = array()) {
if (!array_key_exists('alt', $attribs) && array_key_exists('title',$attribs))
$attribs['alt']=$attribs['title'];
if (!array_key_exists('alt', $attribs))
$attribs['alt'] = '';
......
......@@ -109,7 +109,7 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
'$(\'%s\').cycle(%s);
var container = $(\'%1$s\').parent();
container.addClass(\'slideshow\');
container.prepend(\'<div class="controls"><a href="#"></a><a href="#"></a></div>\');
container.prepend(\'<div class="controls"><a href="#">&nbsp;</a><a href="#">&nbsp;</a></div>\');
container.find(\'.controls a:first-child\').click(
function(event){
event.preventDefault();
......
Markdown is supported
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