-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
50 lines (49 loc) · 2.26 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php get_header(); ?>
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
$postID = get_the_ID();
$postTitle = get_the_title();
$postDate = get_the_date('d-m-Y');
$postUpdateDate = get_the_modified_date('d-m-Y');
$postCommentsNum = get_comments_number();
$postContent = get_the_content();
}
}
?>
<article>
<div class="content__title">
<h1><?= $postTitle; ?></h1>
</div>
<div class="content__data">
<ul class="list-no-style">
<li class="content__data-item">Autore: Marco Valeri</li>
<li class="content__data-item">Pubblicato il: <?= $postDate; ?></li>
<li class="content__data-item">Ultima modifica: <?= $postUpdateDate; ?></li>
<li class="content__data-item">Commenti: <?= $postCommentsNum; ?></li>
</ul>
</div>
<div class="content__main">
<?= $postContent; ?>
</div>
<section>
<div class="banner-author">
<div class="banner-author__wrapper">
<div class="banner-author__container-image">
<img class="banner-author__image" src="<?= get_site_url(); ?>/wp-content/uploads/marco-valeri-conferenza-di-bristol-uk.webp" alt="Immagine dell'autore Marco Valeri ad una conferenza a Bristol" />
</div>
<div class="banner-author__container-content">
<h3 class="banner-author__title h3">Marco Valeri</h3>
<p class="banner-author__description p">Mi chiamo Marco Valeri, sono nato a Roma e attualmente vivo a Londra, città che mi ha cambiato la vita.<br /><br />Laureato in Computer Science alla Birkbeck University of London, divoro libri, amo scrivere e non mi stanco mai di conoscere cose nuove, soprattutto legate al mondo dell'informatica.<br /><br />Ogni giorno provo a mettere in atto il concetto secondo cui 'La disciplina è libertà'.</p>
</div>
</div>
</div>
</section>
<?php
if (comments_open()) {
comments_template();
}
?>
</article>
<?php get_footer(); ?>