-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·40 lines (33 loc) · 1.28 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
34
35
36
37
38
39
40
<?php get_header(); ?>
<?php get_template_part('parts/topbar');
?>
<div class="compensator">
<div class="project">
<?php // theloop
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<header class="project__header loading">
<div class="bottom">
<h1 class="project__title"><?php the_title(); ?></h1>
</div>
<div class="project__overimage">
<?php if ( has_post_thumbnail() ) { ?>
<img class="project__featuredimg blazy"
alt="<?php the_title(); ?>"
src="<?php bloginfo('template_directory'); ?>/build/img/full.png"
data-src="<?php echo wp_get_attachment_image_src(get_post_thumbnail_id(), 'full', true)[0];?>"
data-src-small="<?php echo wp_get_attachment_image_src(get_post_thumbnail_id(), 'card_image', true)[0];?>"/>
<?php } else { ?>
<img class="blazy"
src="<?php bloginfo('template_directory'); ?>/build/img/full.png" data-src="<?php bloginfo('template_directory'); ?>/build/img/full.png"
data-src-small="<?php bloginfo('template_directory'); ?>/build/img/card.png"/><?php } ?>
</div>
</header>
<div class="project__content"><?php the_content(); ?></div>
<?php wp_link_pages(); ?>
<?php endwhile; ?>
<?php else: ?>
<?php get_404_template(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>