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
f5a3d679
Commit
f5a3d679
authored
Sep 30, 2020
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: move the polyglot columns top the `polyglot` prefix
parent
0c4d8ab4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
m3-p2.php
user/plugins/m3-p2/m3-p2.php
+1
-1
language-selector.html.twig
...s/textbook/templates/partials/language-selector.html.twig
+2
-2
No files found.
user/plugins/m3-p2/m3-p2.php
View file @
f5a3d679
...
...
@@ -189,7 +189,7 @@ class M3P2Plugin extends Plugin
$uri
=
$this
->
grav
[
'uri'
];
// var_dump($uri); // best doc ftw
if
(
"polyglot
-columns
"
!=
$uri
->
paths
(
0
))
{
if
(
"polyglot"
!=
$uri
->
paths
(
0
))
{
return
;
// perhaps not
}
...
...
user/themes/textbook/templates/partials/language-selector.html.twig
View file @
f5a3d679
...
...
@@ -56,8 +56,8 @@
{%
if
uri.paths
and
not
disable_multilingual
%}
<li>
{# Ideally we'd give the localized slug, but I can't ->find() it afterwards #}
{# <a href="
{{
'/polyglot
-columns
' ~ uri.path }}">#}
<a
href=
"
{{
'/polyglot
-columns
'
~
page.rawRoute
}}
"
>
{# <a href="
{{
'/polyglot' ~ uri.path }}">#}
<a
href=
"
{{
'/polyglot'
~
page.rawRoute
}}
"
>
{%
if
language_display.select
==
'default'
or
language_display.select
==
'flag'
%}
<img
alt=
"Rosetta"
src=
"/
{{
grav.locator.findResource
(
'plugin://m3-p2/flags/xx.png'
,
false
)
}}
"
/>
{%
endif
%}
...
...
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