From: vincent@cubedesigners.com Date: Tue, 23 Jun 2020 11:51:00 +0000 (+0000) Subject: wip #3726 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=688fb6513b0f88de368423540247b0e67f50ba75;p=fluidbook-v3.git wip #3726 @0.5 --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 1585c5e..6e093ae 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -33,18 +33,19 @@ class Bootstrap extends CubeIT_Bootstrap 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); } }