-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
166 lines (163 loc) · 6.49 KB
/
Copy pathfront-page.php
File metadata and controls
166 lines (163 loc) · 6.49 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php get_header('home'); ?>
<?php
$i = 1;
?>
<div data-active-slide='1' id='feature-slides'>
<div class='slides'>
<ol class='slide-images'>
<?php
$slides_query = array('posts_per_page'=> -1, 'numberposts'=> 0,'offset'=> 0,'orderby'=> 'post_date','order'=> 'DESC','post_type'=> 'project','post_status'=> 'publish');
$feature_slides = new WP_Query($slides_query);
if($feature_slides) : while ($feature_slides ->have_posts()) : $feature_slides->the_post();
$focused_ID = get_post_meta($post->ID, '_cmb_focused_image_id', true);
$blurred_ID = get_post_meta($post->ID, '_cmb_blur_image_id', true);
$featured_focused = wp_get_attachment_url($focused_ID);
$featured_blurred = wp_get_attachment_url( $blurred_ID);
if($focused_ID) { ?>
<li class='slide' data-slide='<?php echo $i ?>' style='background: url(<?php echo $featured_focused; ?>) center 60px no-repeat;'>
<h1><?php echo $focused_ID; ?></h1>
<div class="blur" style="background: url(<?php echo $featured_blurred; ?>) center top no-repeat;"> </div>
<?php echo get_the_title(); ?>
</li>
<?php
$i = $i + 1;
}
endwhile;
endif;
rewind_posts();
$i = 1;
?>
</ol>
<!-- Slide Tabs -->
<ol class='slide-tabs'>
<?php
$tabs_query = array('posts_per_page'=> -1, 'numberposts'=> 0,'offset'=> 0,'orderby'=> 'post_date','order'=> 'DESC','post_type'=> 'project','post_status'=> 'publish');
$feature_tabs = new WP_Query($tabs_query);
if($feature_tabs) : while ($feature_tabs ->have_posts()) : $feature_tabs->the_post();
$focused_ID = get_post_meta($post->ID, '_cmb_focused_image_id', true);
if($focused_ID) { ?>
<li class='slide slide-<?php echo $i; ?>' data-slide='<?php echo $i ?>'><a href="#">Tab <?php echo $i; ?></a></li>
<?php
$i = $i + 1;
}
endwhile;
endif;
$i = 1;
?>
</ol>
</div>
<div class='inner-container'>
<!-- Slide details -->
<ol class='slide-details'>
<?php
$details_query = array('posts_per_page'=> -1, 'numberposts'=> 0,'offset'=> 0,'orderby'=> 'post_date','order'=> 'DESC','post_type'=> 'project','post_status'=> 'publish');
$feature_details = new WP_Query($details_query);
if($feature_details) : while ($feature_details ->have_posts()) : $feature_details->the_post();
# $p_year = get_post_meta( $post->ID, '_cmb_year_completed', true );
$p_director = get_post_meta( $post->ID, '_cmb_director', true );
$p_director_imdb = get_post_meta( $post->ID, '_cmb_director-imdb', true );
$p_producer = get_post_meta( $post->ID, '_cmb_producer', true );
$p_producer_imdb = get_post_meta( $post->ID, '_cmb_producer-imdb', true );
$p_cinematographer = get_post_meta( $post->ID, '_cmb_cinematographer', true );
$p_cinematographer_imdb = get_post_meta( $post->ID, '_cmb_cinematographer-imdb', true );
$p_colorist = get_the_terms( $post->ID, 'talent');
$p_camera = get_the_terms( $post->ID, 'camera');
$p_genre = get_the_terms( $post->ID, 'genres');
$p_services = get_the_terms( $post->ID, 'service');
#$featured_image_details = kd_mfi_get_featured_image_url('project-featured-image', 'project', 'full');
#$featured_focused = get_post_meta($post->ID, '_cmb_focused_image', true);
$focused_ID = get_post_meta($post->ID, '_cmb_focused_image_id', true);
if($focused_ID) : ?>
<li class='slide' data-slide='<?php echo $i ?>'>
<h2>
<a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a>
<span>
<?php if($p_genre) { foreach($p_genre as $the_genre) echo $the_genre->name; } ?>
</span>
</h2>
<div class='cols'>
<?php if($p_colorist) : ?>
<div class='col'>
<h3 class='title'>Colorist</h3>
<div class='details'>
<ul>
<?php foreach ( $p_colorist as $the_colorist ) { ?>
<li><?php echo $the_colorist->name; ?></li>
<?php } ?>
</ul>
</div>
</div>
<?php endif; ?>
<?php if ($p_cinematographer) : ?>
<div class='col'>
<h3 class='title'>Cinematographer</h3>
<div class='details'>
<ul>
<li><?php echo $p_cinematographer; ?></li>
</ul>
</div>
<?php endif; ?>
</div>
</li>
<?php
$i = $i + 1;
endif;
endwhile;
endif;
$i = 1;
?>
</ol>
</div>
</div>
<div id='content'>
<div class='inner-container'>
<div class='cta-columns'>
<div class='col services'>
<div class='inner'>
<h3>Acquisition Through Distribution</h3>
<h2>Services</h2>
<ul class='cta-list'>
<li class="di_color">Color Grading</li>
<li class="finishing">Online & Finishing</li>
<li class="lto_data">LTO-5 Data Archiving</li>
<li class="digital_dalies">Digital Dailies</li>
<li class="dcp">DCP Mastering</li>
</ul>
<a class='more' href='services'>View All Services</a>
</div>
</div>
<div class='col amenities'>
<div class='inner'>
<h3>Finest Coffee in the West</h3>
<h2>Facility</h2>
<ul class='cta-list'>
<li class="theater">DI Theater</li>
<li class="hd_suites">HD Suites</li>
<li class="parking">Private Parking</li>
<li class="near_food">Near Gourmet Ghetto</li>
<li class="transportation">Close to BART, OAK, SFO</li>
</ul>
<!-- <a class='more' href='amenities'>See The Facility</a> -->
</div>
</div>
<div class='col location'>
<div class='inner'>
<?php
$t_options = turing_get_theme_options();
$email = $t_options['company_email'];
?>
<h2><?php echo $t_options['company_phone']; ?></h2>
<p><a href="mailto:<?php echo $email ?>"><?php echo $email ?></a></p>
<h4><?php echo $t_options['company_address_1']; ?></h4>
<p>
<?php echo $t_options['company_address_2'].' Ste. '.$t_options['company_address_2b'];; ?>
<br/>
<?php echo $t_options['company_address_3']; ?>
</p>
</div>
<div class="building"> </div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>