Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
4aa37706
Commit
4aa37706
authored
Mar 28, 2019
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
m3-p2.php
user/plugins/m3-p2/m3-p2.php
+2
-0
language-selector.html.twig
...s/textbook/templates/partials/language-selector.html.twig
+1
-1
No files found.
user/plugins/m3-p2/m3-p2.php
View file @
4aa37706
...
@@ -209,6 +209,7 @@ class M3P2Plugin extends Plugin
...
@@ -209,6 +209,7 @@ class M3P2Plugin extends Plugin
}
}
$this
->
grav
[
'twig'
]
->
twig
()
->
addGlobal
(
'target_page'
,
$target_page
);
$this
->
grav
[
'twig'
]
->
twig
()
->
addGlobal
(
'target_page'
,
$target_page
);
$this
->
grav
[
'twig'
]
->
twig
()
->
addGlobal
(
'disable_multilingual'
,
true
);
$page
=
new
Page
;
$page
=
new
Page
;
$page
->
init
(
new
\SplFileInfo
(
__DIR__
.
'/pages/polyglot-columns.md'
));
$page
->
init
(
new
\SplFileInfo
(
__DIR__
.
'/pages/polyglot-columns.md'
));
...
@@ -287,6 +288,7 @@ class M3P2Plugin extends Plugin
...
@@ -287,6 +288,7 @@ 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
);
$page
=
new
Page
;
$page
=
new
Page
;
$page
->
init
(
new
\SplFileInfo
(
__DIR__
.
'/pages/lesson-columns.md'
));
$page
->
init
(
new
\SplFileInfo
(
__DIR__
.
'/pages/lesson-columns.md'
));
...
...
user/themes/textbook/templates/partials/language-selector.html.twig
View file @
4aa37706
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
{%
endfor
%}
{%
endfor
%}
{%
block
polyglot_language_selector
%}
{%
block
polyglot_language_selector
%}
{%
if
uri.paths
and
uri.paths
(
0
)
!=
"polyglot-columns"
%}
{%
if
uri.paths
and
not
disable_multilingual
%}
<li>
<li>
<a
href=
"
{{
'/polyglot-columns'
~
uri.path
}}
"
>
<a
href=
"
{{
'/polyglot-columns'
~
uri.path
}}
"
>
{%
if
language_display.select
==
'default'
or
language_display.select
==
'flag'
%}
{%
if
language_display.select
==
'default'
or
language_display.select
==
'flag'
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment