/
page.php
33 lines (31 loc) · 1.06 KB
/
page.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
<?php
/**
* Το αρχείο αυτό εμφανίζει τα single pages
* Workshop Helper
* Κώδικας 2A
*
* @url https://developer.wordpress.org/themes/template-files-section/post-template-files/#single-php
*/
get_header();
?>
<div class="single-page-container">
<div class="container container-fluid">
<div class="row">
<div class="col-sm-12">
<?php if (have_posts()):
while (have_posts()): the_post(); ?>
<article class="single-entry">
<?php if (has_post_thumbnail()):
the_post_thumbnail('full', array('class' => 'img-responsive')); endif;
?>
<h1><?php the_title();?></h1>
<?php the_content();?>
</article>
<?php endwhile;
endif; ?>
</div>
</div>
</div>
</div>
<?php
get_footer();