-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
58 lines (54 loc) · 1.71 KB
/
page.php
File metadata and controls
58 lines (54 loc) · 1.71 KB
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
54
55
56
57
58
<?php get_header(); ?>
<section id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="header">
</header>
<section class="entry-content">
<?php if (get_the_content()){ ?>
<div class="fullContainer greyBox">
<div class="fixedContainerBox">
<div class="fixedContainer">
<?php the_content(); ?>
<div class="mobile servicesGif">
<img src="<?php echo get_template_directory_uri(); ?>/images/icons.gif"/>
</div>
</div>
</div>
<?php if (get_custom_field("bottom_link:get_post")){
$linkpost = get_custom_field("bottom_link:get_post");
$link = $linkpost['permalink'];
$title = $linkpost['post_title'];
if (get_custom_field('bottom_text')){
$title = get_custom_field('bottom_text');
}
?>
<div class="bottomLink">
<div class="fixedInnerBox">
<a href="<?php echo $link; ?>"><?php echo $title; ?></a>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</section>
</article>
<?php $id = get_the_ID(); ?>
<?php if ( is_active_sidebar( $id.'-sidebar' ) ){ ?>
<?php dynamic_sidebar( $id.'-sidebar' ); ?>
<?php } ?>
<?php if ( get_custom_field('footer_image:to_image_src')){
$imageUrl = get_custom_field('footer_image:to_image_src');
$shortUrl = explode( 'wp-content/', $imageUrl );
$shortUrl = 'wp-content/'.$shortUrl[1]; ?>
<div class="imageFooter">
<div class="imageFooterBackground" style="background-image:url('<?php echo $imageUrl ?>');">
</div>
</div>
<script>
detectImageLoad('<?php echo $imageUrl; ?>', 'imageFooterBackground');
</script>
<?php } ?>
<?php endwhile; endif; ?>
</section>
<?php get_footer(); ?>