Skip to content

Commit

Permalink
Moved Translation Menu to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisOuellet committed Feb 14, 2024
1 parent 2096881 commit 4c3143f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion css/plugins/translation.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
padding: 10px;
padding-right: 20px;
left: 80px;
bottom: 0px;
top: 0px;

li,a,span {
width: 100%;
Expand Down
16 changes: 8 additions & 8 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@
?>
<!-- <li class="plugin_move_page" style="display: list-item;"><a href=""><span>Rename Page</span></a></li> -->
<?php endif ?>
<?php $items = (new \dokuwiki\Menu\PageMenu())->getItems();
foreach($items as $item) {
echo '<li>'
.'<a href="'.$item->getLink().'" class="action '.strtolower($item->getType()).'" title="'.$item->getTitle().'">'
.'<span class="icon"></span>'
.'<span class="a11y">'.$item->getLabel().'</span>'
.'</a></li>';
} ?>
<?php $translation = plugin_load('helper','translation');
if ($translation){
$render = $translation->showTranslations(false);
Expand All @@ -151,6 +143,14 @@
.$render
.'</li>';
} ?>
<?php $items = (new \dokuwiki\Menu\PageMenu())->getItems();
foreach($items as $item) {
echo '<li>'
.'<a href="'.$item->getLink().'" class="action '.strtolower($item->getType()).'" title="'.$item->getTitle().'">'
.'<span class="icon"></span>'
.'<span class="a11y">'.$item->getLabel().'</span>'
.'</a></li>';
} ?>
</ul>
</div>

Expand Down

0 comments on commit 4c3143f

Please sign in to comment.