diff options
author | Yaco <franco@reevo.org> | 2023-06-21 12:26:47 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2023-06-21 12:26:47 -0300 |
commit | 9b2afd45becdba8796dbc74c491d259f8f0f75a0 (patch) | |
tree | 7550aae4adecccf5212b1e65e2bbeb3f0848e05a | |
parent | 8dd9860a813421fa2e215b0291d888a636ff36f9 (diff) |
agrega estilos para fecha de blog
-rw-r--r-- | platform/www/lib/tpl/acervus/css/hacks.css | 15 | ||||
-rw-r--r-- | platform/www/lib/tpl/acervus/main.php | 13 |
2 files changed, 27 insertions, 1 deletions
diff --git a/platform/www/lib/tpl/acervus/css/hacks.css b/platform/www/lib/tpl/acervus/css/hacks.css index 3349974..c68b383 100644 --- a/platform/www/lib/tpl/acervus/css/hacks.css +++ b/platform/www/lib/tpl/acervus/css/hacks.css @@ -185,3 +185,18 @@ text-decoration:none !important; content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) ". "; counter-increment: level5; } + +.date { + float: right; + text-align: center; + margin: 1.5em; +} + +.date .date-dm { + font-size: 19pt; +} + +.date .date-y { + font-size: 14pt; + line-height: 5pt; +} diff --git a/platform/www/lib/tpl/acervus/main.php b/platform/www/lib/tpl/acervus/main.php index 27f35b2..4314745 100644 --- a/platform/www/lib/tpl/acervus/main.php +++ b/platform/www/lib/tpl/acervus/main.php @@ -144,6 +144,7 @@ if ($lang2 != '') { <div class="wrapper group"> <!-- ********** CONTENT ********** --> + <div id="dokuwiki__content"><div class="group"> <?php tpl_flush() ?> <?php tpl_includeFile('pageheader.html') ?> @@ -179,6 +180,17 @@ if ($lang2 != '') { } + // $id = $INFO['meta']['id']; + // echo 'algooo'; + // print_r(pageinfo('id')); + $ns = $INFO['namespace']; + $creation_date = $INFO['meta']['date']['created']; + if (strpos($ns, 'blog') !== false) { + $d = strftime("%d", $creation_date); + $m = strftime("%m", $creation_date); + $y = strftime("%Y", $creation_date); + echo "<div class='date'><div class='date-dm'>$d/$m</div><div class='date-y'>$y</div></div>"; + } ?> @@ -210,7 +222,6 @@ if ($lang2 != '') { if ($translation) echo $translation->showTranslations(); ?></center> </div><!-- /footer --> - <?php tpl_includeFile('footer.html') ?> </div><!-- /wrapper --> |