Commit 06cd49a3 authored by Administrator's avatar Administrator 💬

feat: hide the language selector on lessons pages

parent e82b3add
...@@ -293,6 +293,9 @@ class M3P2Plugin extends Plugin ...@@ -293,6 +293,9 @@ class M3P2Plugin extends Plugin
$this->grav['twig']->twig()->addGlobal('target_pages', $target_pages); $this->grav['twig']->twig()->addGlobal('target_pages', $target_pages);
$this->grav['twig']->twig()->addGlobal('disable_multilingual', true); $this->grav['twig']->twig()->addGlobal('disable_multilingual', true);
// hotfix until we know how to fetch the appropriate translation
$this->grav['twig']->twig()->addGlobal('disable_language_selector', true);
$page = new Page; $page = new Page;
$page->init(new \SplFileInfo(__DIR__ . '/pages/lesson-columns.md')); $page->init(new \SplFileInfo(__DIR__ . '/pages/lesson-columns.md'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment