change url opinion and author_Alias
This commit is contained in:
@@ -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'
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user