Commit 4aa37706 authored by Administrator's avatar Administrator 💬

Disable the multilingual, rosetta stone columns on lesson columns.

We'd need 3D for this, or way too much javascript.
parent 6221a75d
Pipeline #57 passed with stage
in 44 seconds
......@@ -209,6 +209,7 @@ class M3P2Plugin extends Plugin
}
$this->grav['twig']->twig()->addGlobal('target_page', $target_page);
$this->grav['twig']->twig()->addGlobal('disable_multilingual', true);
$page = new Page;
$page->init(new \SplFileInfo(__DIR__ . '/pages/polyglot-columns.md'));
......@@ -287,6 +288,7 @@ class M3P2Plugin extends Plugin
}
$this->grav['twig']->twig()->addGlobal('target_pages', $target_pages);
$this->grav['twig']->twig()->addGlobal('disable_multilingual', true);
$page = new Page;
$page->init(new \SplFileInfo(__DIR__ . '/pages/lesson-columns.md'));
......
......@@ -53,7 +53,7 @@
{% endfor %}
{% block polyglot_language_selector %}
{% if uri.paths and uri.paths(0) != "polyglot-columns" %}
{% if uri.paths and not disable_multilingual %}
<li>
<a href="{{ '/polyglot-columns' ~ uri.path }}">
{% if language_display.select == 'default' or language_display.select == 'flag' %}
......
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