forked from hultsfredskommun/hultsfredskommun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single.php
50 lines (47 loc) · 1.42 KB
/
content-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
<?php
/**
* The default template for displaying single content
*/
$options = get_option('hk_theme');
?>
<!--googleon: all-->
<article id="post-<?php the_ID(); ?>" <?php post_class((is_sticky())?"sticky single full":"single full"); ?>>
<?php
if ($options["new_post_template"] == 1 || get_field('new_post_template')) :
require("inc/single_content_new.php");
else:
?>
<div class="article-border-wrapper">
<div class="article-wrapper">
<div class="single-content content-wrapper">
<?php
if (get_post_type() == "hk_kontakter") {
require("inc/hk-article-header.php");
hk_the_contact(array(
'image' => true,
'name' => true,
'title' => true,
'workplace' => true,
'phone' => true,
'email' => true,
'description' => true,
'address' => true,
'visit_hours' => true,
'map' => true,
'title_link' => false));
//require("inc/hk-aside-content.php");
require("inc/single_footer_content.php");
}
else {
require("inc/single_content.php");
}
?>
</div><!-- .single-content .content-wrapper -->
<?php //require("inc/hk-aside-content.php"); ?>
<?php //require("inc/single_footer_content.php"); ?>
</div>
</div>
<?php endif; ?>
<span class='hidden article_id'><?php the_ID(); ?></span>
</article><!-- #post-<?php the_ID(); ?> -->
<!--googleoff: all-->