change url opinion and author_Alias

This commit is contained in:
2026-03-03 09:33:15 +00:00
parent 0403e6ed50
commit c750a4f969
4 changed files with 28 additions and 5 deletions

View File

@@ -479,13 +479,23 @@ class StarterSite extends Site {
//Para Footer
$context['lasts_posts_news'] = $this->getLastsPostsNews();
$context['last_posts_opinion'] = $this->getLastPostOpinion();
//otros
$context = array_merge($context, $this->getPolylangData());
$context['opinion_url'] = $this->getOpinionUrl($context['current_language']);
return $context;
}
public function getOpinionUrl($current_lang)
{
if ($current_lang === 'es') {
return "/".$current_lang."/opinion";
} else {
return "/".$current_lang."/iritzia";
}
}
/**
* Funciones public 'Template-Portada'
*/