Use CSS classes for "Modified Date" and "Edit On" in page header
This commit is contained in:
commit
60c7737e8a
13
global.json
13
global.json
@ -44,6 +44,19 @@
|
|||||||
"Edit_on": "Editer sur :name:",
|
"Edit_on": "Editer sur :name:",
|
||||||
"View_on_github": "Voir sur GitHub",
|
"View_on_github": "Voir sur GitHub",
|
||||||
"View_documentation": "Voir la Documentation"
|
"View_documentation": "Voir la Documentation"
|
||||||
|
},
|
||||||
|
"de": {
|
||||||
|
"CodeBlocks_title": "Code-Blöcke",
|
||||||
|
"CodeBlocks_hide": "Aus",
|
||||||
|
"CodeBlocks_below": "Unterhalb",
|
||||||
|
"CodeBlocks_inline": "Linear",
|
||||||
|
"CodeBlocks_show": "Code-Blöcke anzeigen",
|
||||||
|
"Search_placeholder": "Suchen...",
|
||||||
|
"Link_previous": "Zurück",
|
||||||
|
"Link_next": "Weiter",
|
||||||
|
"Edit_on": "Bearbeiten bei :name:",
|
||||||
|
"View_on_github": "Bei GitHub anzeigen",
|
||||||
|
"View_documentation": "Dokumentation anzeigen"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="Page__header">
|
<div class="Page__header">
|
||||||
<h1><?= $page['breadcrumbs'] ? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
|
<h1><?= $page['breadcrumbs'] ? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
|
||||||
<?php if ($params['html']['date_modified']) { ?>
|
<?php if ($params['html']['date_modified']) { ?>
|
||||||
<span style="float: left; font-size: 10px; color: gray;">
|
<span class="ModifiedDate">
|
||||||
<?php $date_format = isset($params['html']['date_modified_format']) ? $params['html']['date_modified_format'] : 'l, F j, Y g:i A'; ?>
|
<?php $date_format = isset($params['html']['date_modified_format']) ? $params['html']['date_modified_format'] : 'l, F j, Y g:i A'; ?>
|
||||||
<?= date($date_format, $page['modified_time']); ?>
|
<?= date($date_format, $page['modified_time']); ?>
|
||||||
</span>
|
</span>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$edit_on = $params->getHTML()->getEditOn();
|
$edit_on = $params->getHTML()->getEditOn();
|
||||||
if ($edit_on) { ?>
|
if ($edit_on) { ?>
|
||||||
<span style="float: right; font-size: 10px; color: gray;">
|
<span class="EditOn">
|
||||||
<a href="<?= $edit_on['basepath'] ?>/<?= $page['relative_path'] ?>" target="_blank">
|
<a href="<?= $edit_on['basepath'] ?>/<?= $page['relative_path'] ?>" target="_blank">
|
||||||
<?= str_replace(":name:", $edit_on['name'], $this->translate("Edit_on")) ?>
|
<?= str_replace(":name:", $edit_on['name'], $this->translate("Edit_on")) ?>
|
||||||
</a>
|
</a>
|
||||||
|
@ -256,6 +256,18 @@ Components
|
|||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ModifiedDate {
|
||||||
|
float: left;
|
||||||
|
font-size: 10px;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.EditOn {
|
||||||
|
float: right;
|
||||||
|
font-size: 10px;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.Links {
|
.Links {
|
||||||
|
Loading…
Reference in New Issue
Block a user