Merge pull request #16 from gerundt/css-page-header
Use CSS classes for "Modified Date" and "Edit On" in page header
This commit is contained in:
commit
fc3d88d0ae
@ -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