Answer the question
In order to leave comments, you need to log in
How to make Joomla logo clickable?
Hello everyone on the site, the logo changes when changing the language,
how to correctly write in this code so that the logo is clickable
<?php
$lang = $this->language;
switch ($lang) {
case "ro-ro":
echo '<img src="templates/'.$this->template.'/images/akzente-logo-ro.jpg" alt="Akzente Ro" />';
break;
case "de-de":
echo '<img src="templates/'.$this->template.'/images/akzente-logo-de.jpg" alt="Akzente De" />';
break;
default:
echo '<img src="templates/'.$this->template.'/images/akzente-logo-ro.jpg" alt="Akzente" />';
break;
}
?>
<a href="<?php echo $this->baseurl; ?>/">echo '<img src="templates/'.$this->template.'/images/akzente-logo-ro.jpg" alt="Akzente" />' </a>
Answer the question
In order to leave comments, you need to log in
function theLogo($obj) {
switch ($obj->language) {
case "ro-ro":
$image = '<img src="templates/' . $obj->template . '/images/akzente-logo-ro.jpg" alt="Akzente Ro" />';
break;
case "de-de":
$image = '<img src="templates/' . $obj->template . '/images/akzente-logo-de.jpg" alt="Akzente De" />';
break;
default:
$image = '<img src="templates/' . $obj->template . '/images/akzente-logo-ro.jpg" alt="Akzente" />';
break;
}
echo '<a href="'.$obj->baseurl.'">'.$image.'</a>';
}
$this);
theLogo(Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question