This repository was archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
53 lines (49 loc) · 1.67 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
51
52
53
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="page open">
<div class="background-image" style="background-image: url('<?php echo get_field( 'preview_photo' )['url'] ?>');"></div>
<article id="post-<?php the_ID(); ?>">
<div class="cover">
<div class="inside">
<div class="wrapper">
<p class="category"><?php echo get_the_category_list(', ') ?></p>
<p class="title">
<?php echo get_the_title() ?>
</p>
<?php
$subtitle = get_field('preview_subtitle');
if ( !empty( $subtitle ) ) :
?>
<p class="subtitle"><?php echo $subtitle ?></p>
<?php endif; ?>
<p class="date"><?php printf( '%1$s, %2$s', get_the_date(), get_the_author() ) ?></p>
</div>
</div>
</div>
<div class="all">
<div class="wrapper">
<div class="content">
<?php the_content(); ?>
</div>
<div class="wnl-post-social">
<div class="fb-like" data-href="<?php echo get_the_permalink(); ?>" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
</div>
<div class="content-comments">
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>
</div><!-- .entry-content -->
<div class="section back">
<a href="#" title="" class="wnl-scroll-top" data-section-target="0">
<img src="<?php echo get_template_directory_uri() ?>/assets/button/arrow_up/normal.svg" alt="Powrót do góry" />
</a>
</div>
</div>
</article><!-- #post-## -->
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>