protected function _makeNavigationOnePage(&$navigation, $r, $t, $isAdmin, $locale = false)
{
+ // Remove all reference of the blog on the english version
+ if ($r->template === 'blog' && $locale === 'en') {
+ if (!$isAdmin) {
+ return;
+ } else {
+ $r->online = false;
+ }
+ }
$page = parent::_makeNavigationOnePage($navigation, $r, $t, $isAdmin, $locale);
if (!$page) return;
if ($page->getTemplate() === 'blog') {
-
- // Don't show the Blog link in the main menu for the English locale
- if ($locale == 'en') {
- $page->setVisible(false);
- return;
- }
-
$this->addBlogPages($page, $locale, $isAdmin);
}
}