pile/www/_templates/front_doc_overview.php

33 lines
1.1 KiB
PHP
Raw Normal View History

2017-02-04 22:10:59 +01:00
<div class="text document">
<h1><?= $doc["Title"] ?></h1>
2018-07-31 15:58:23 +02:00
2017-03-08 10:10:23 +01:00
<?php if (!empty($doc["Author"])): ?>
2018-07-31 15:58:23 +02:00
<h2><?= $doc["Author"] ?></h2>
2017-03-08 10:10:23 +01:00
<?php endif; ?>
2018-07-31 15:58:23 +02:00
2017-03-07 09:38:47 +01:00
<?php if (!empty($doc["Published"])): ?>
2018-07-31 15:58:23 +02:00
<h3>Published: <?= $doc["Published"] ?></h3>
2017-03-07 09:38:47 +01:00
<?php endif; ?>
2018-07-31 15:58:23 +02:00
2017-03-08 10:10:23 +01:00
<?php if (!empty($doc["tags"])): ?>
2018-07-31 15:58:23 +02:00
<h3 class="doc-taglist">Tags:
2018-09-17 11:25:56 +02:00
<?php
2018-07-31 15:58:23 +02:00
foreach ($doc["tags"] as $tag) {
echo '<li><a href="?tag=' . $tag["Name"] . "\">" . $tag["Name"] . "</a></li>";
}
?>
</h3>
2017-03-08 10:10:23 +01:00
<?php endif; ?>
2018-07-31 15:58:23 +02:00
2017-03-08 10:10:23 +01:00
<?php if (!empty($doc["Description"])): ?>
2018-07-31 15:58:23 +02:00
<p class="doc-description"><span
class="doc-description-intro"><?= empty($doc["URL"]) ? "Content" : "Description" ?>
: </span><?= $doc["Description"] ?></p>
2017-03-08 10:10:23 +01:00
<?php endif; ?>
2018-07-31 15:45:54 +02:00
<?php if (!empty($doc["URL"])): ?>
2018-07-31 15:58:23 +02:00
<div class="doc-link"><span class="doc-link-intro">Access file at: </span><a
href="<?= $doc["URL"] ?>"><?= urldecode($doc["URL"]) ?></a></div>
2018-07-31 15:45:54 +02:00
<?php endif; ?>
2017-03-07 09:38:47 +01:00
</div>