Project

General

Profile

Support #4031 » template-15-splash.php

Alex Hills, 2015-05-01 07:16 AM

 
1
<?php
2
/**
3
 * Template Name: 2015 Splash Page
4
 *
5
 * This page is specifically designed for the index page of Prelude.12
6
 * 
7
 * @package Thematic
8
 * @subpackage Templates
9
 */
10
?>
11

    
12
<?php
13
    // calling the header.php
14
    get_header();
15

    
16
    // action hook for placing content above #container
17
    thematic_abovecontainer();
18

    
19
	// var definition for style directories
20
	$PRELUDEimagedir = get_stylesheet_directory_uri();
21
	$PRELUDEimagedir .= '/library/images/';
22
	
23
	$PRELUDEFlashdir = $PRELUDEimagedir;
24
	$PRELUDEFlashdir .= 'flash/' ; 
25
	
26
	$PRELUDEfronttempdir = $PRELUDEimagedir;
27
	$PRELUDEfronttempdir .= 'front_temp/' ;
28
	
29
	$PRELUDEscriptdir = get_stylesheet_directory_uri();
30
	$PRELUDEscriptdir .= '/library/scripts/'; 
31
	
32
?>
33
<style>
34
	.home #header {
35
		bottom:initial;
36
		top:265px;
37
		z-index:10;
38
		display: none;
39
	}
40
	.thelogo {
41
	  z-index: 1000;
42
	  width: 900px;
43
	  margin: 0 auto;
44
	  background-color:rgba(255,255,255,0.8);
45
	}
46
		.thelogo img {
47
			width: 100%;
48
		}
49

    
50
	.top {
51
		z-index: 1000; position: relative; width: 560px; margin:90px auto 40px; font-size:16px; line-height:22px; background-color:rgba(255,255,255,0.8); padding:20px;
52
	}
53
	.bottom {
54
		z-index: 1000; width: 560px; top: 200px; margin:40px auto; font-size:16px; line-height:22px; background-color:rgba(255,255,255,0.8); padding:20px;
55
	}
56
</style>
57
<div class="backgrounds">
58
	<?php
59
	$images = get_field('landing_background_images','options');
60
	if($images):
61
		foreach($images as $image): ?>
62
			<div class="backgroundImage" style="background-image: url(<?php echo $image['url']; ?>)">
63
				<div class="backgroundImageCaption">
64
					<?php echo $image['caption']; ?>
65
				</div>
66
			</div>
67
		<?php endforeach; ?>
68
	<?php endif; ?>
69
</div>
70
<div class="homeWrapper" style="overflow-y:scroll;">
71
	<?php
72
	$top = get_field('top_splash', 'options');
73
	if($top): ?>
74
		<div class="top">
75
			<?php the_field('top_splash', 'options');?>
76
		</div>
77
	<?php endif; ?>
78
	<div class="thelogo">
79
		<img src="<?php the_field('landing_banner','options'); ?>">
80
	</div>
81
	<?php
82
	$bottom = get_field('bottom_splash', 'options');
83
	if($bottom): ?>
84
		<div class="bottom">
85
			<?php the_field('bottom_splash', 'options');?>
86
		</div>
87
	<?php endif; ?>
88
</div>
89

    
90

    
91

    
92

    
93

    
94
<?php 
95
    // action hook for placing content below #container
96
    thematic_belowcontainer();
97
    
98
    // calling footer.php
99
    get_footer();
100
?>
    (1-1/1)