added support for translation plugin

This commit is contained in:
Andreas Gohr 2021-10-21 19:14:19 +02:00
commit cfa8d1441b
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,32 @@
/**
* This file provides styles for the translation plugin
*/
.dokuwiki div.plugin_translation {
clear: none;
display: block;
position: relative;
float: none;
+ * {
clear: both;
padding-top: 1em; // as h1
}
ul li {
a.wikilink1:link,
a.wikilink1:hover,
a.wikilink1:active,
a.wikilink1:visited {
background-color: @ini_link;
}
}
}
@media @screen_max-md {
.dokuwiki div.plugin_translation {
clear: both;
margin-top: 1rem;
}
}

View file

@ -347,6 +347,13 @@ $classWideContent = (Template::getInstance())->fullWidthClass();
echo $highlightParent->tpl();
}
?>
<?php
/** @var helper_plugin_translation $translation */
$translation = plugin_load('helper','translation');
if ($translation) {
echo $translation->showTranslations();
}
?>
<div class="page-content">
<div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
<div class="clearer"></div>

View file

@ -118,6 +118,7 @@ css/plugins/sitemapnavi.less = all
css/plugins/data.less = all
css/plugins/fastwiki.less = all
css/plugins/tplinc.less = all
css/plugins/translation.less = all
; _____________ print styles _____________