/
single.php
49 lines (35 loc) · 1.18 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
<?php
get_header();
// Declare global $more for content control
global $more;
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $more = 0;?>
<h1 class="single-title"><?php the_title(); ?></h1>
<div class="subtitle"><?php the_content('');?></div>
</header>
<div class="container">
<ul class="actions">
<li><a href="#more" class="button special scrolly">More</a></li>
</ul>
</div>
</section>
<section id="more" class="main special">
<div class="container">
<span class="image fit primary"><?php the_post_thumbnail();?></span>
<div class="content">
<?php
$more = 1;
the_content('', TRUE);
?>
<?php edit_post_link('Edit This', '<p class="edit-this"><span class="fa fa-pencil-square-o" aria-hidden="true"></span> ', '</p>');?>
<!-- home navigation -->
<div class="morebutton">
<a class="button special icon fa-chevron-left" href="<?php echo site_url()?>">RETURN</a>
</div>';
</div>
</div><!-- //containter -->
</section>
<?php endwhile;?>
<?php endif; ?>
<?php get_footer(); ?>