forked from zutrinken/Scapegoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
53 lines (40 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php get_header(); ?>
<!-- Mobiel Detect -->
<?php $detect = new Mobile_Detect(); ?>
<div id="container">
<div id="content" role="main">
<!-- Mobile Query -->
<?php if(!$detect->isMobile() || $detect->isTablet()) : ?>
<?php if(has_post_thumbnail()) : ?>
<figure class="post-image">
<?php $image_id = get_post_thumbnail_id();$image_url = wp_get_attachment_image_src($image_id,'full', true); ?>
<?php the_post_thumbnail('featured'); ?>
<?php if(get_post(get_post_thumbnail_id())->post_excerpt) : ?>
<span class="meta-thumbnail-caption">
<?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?>
</span>
<?php endif; ?>
</figure>
<?php endif; ?>
<?php if(function_exists('breadcrumb')) : ?>
<?php breadcrumb(); ?>
<?php endif; ?>
<?php endif; ?>
<!-- Mobile Query -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="header">
<h2 class="post-title"><?php the_title(); ?></h2>
</header>
<article class="article">
<!--<div class="excerpt"><?php the_excerpt(); ?></div>-->
<?php the_content(); ?>
</article>
</section>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- content -->
<?php get_sidebar(); ?>
<div class="clear"></div>
</div><!-- container -->
<?php get_footer(); ?>