-
Notifications
You must be signed in to change notification settings - Fork 0
/
LED-sub-page.php
81 lines (78 loc) · 3.92 KB
/
LED-sub-page.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
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
<?php
/* Template Name: LED Sub Page */
get_header();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
?>
<article class="led bg-image-wrap" data-type="background" data-background="<?php echo($image[0]); ?>">
<section class="centerpiece intro-header">
<h1><?php echo($post->post_title); ?></h1>
<p><?php echo($post->post_content); ?></p>
</section>
</article>
<article class="trifecta">
<section class="featured col-4-12">
<h2><?php $ben = get_post_meta($post->ID, 'benefit_a_title'); echo($ben[0]); ?></h2>
<p><?php $ben = get_post_meta($post->ID, 'benefit_a_text'); echo($ben[0]); ?></p>
</section>
<section class="featured col-4-12" >
<h2><?php $ben = get_post_meta($post->ID, 'benefit_b_title'); echo($ben[0]); ?></h2>
<p><?php $ben = get_post_meta($post->ID, 'benefit_b_text'); echo($ben[0]); ?></p>
</section>
<section class="featured col-4-12" >
<h2><?php $ben = get_post_meta($post->ID, 'benefit_c_title'); echo($ben[0]); ?></h2>
<p><?php $ben = get_post_meta($post->ID, 'benefit_c_text'); echo($ben[0]); ?></p>
</section>
</article>
<article class="list">
<section class="centerpiece screen-items">
<h1><?php $sectit = get_post_meta($post->ID, 'section_title'); echo($sectit[0]); ?></h1>
<?php
$screen_option_args = array(
'post_type' => 'screen',
'numberposts'=> -1,
'posts_per_page'=> -1,
'post_status'=> 'publish',
'orderby'=> 'title',
'order'=> 'ASC',
'category_name'=> $post->post_name
);
$screen_options = new WP_Query( $screen_option_args );
if ( $screen_options->have_posts() ) while ( $screen_options->have_posts() ) : $screen_options->the_post();
?>
<section class="col-4-12">
<figure class="featured" data-type="background" data-background="<?php the_field('screenshot'); ?>"></figure>
<h2 class="tech-title"><?php the_title(); ?></h2>
<?php the_content(); ?>
</section>
<?php
endwhile;
wp_reset_postdata();
?>
</section>
<div style="width:100%; float: left;"><a href="<?php bloginfo('template_directory');?>/img/RauschLEDSpecSheet.pdf" download><button>Download Tech Specs</button></a></div>
</article>
<article class="testimonial" data-type="background" data-background="<?php $bg = get_post_meta($post->ID, 'background_image'); echo(wp_get_attachment_url($bg[0])); ?>">
<section class="centerpiece">
<blockquote class="blockquote"><?php $quo = get_post_meta($post->ID, 'testimonial'); echo($quo[0]); ?></blockquote>
<p>-<?php $testif = get_post_meta($post->ID, 'testifier'); echo($testif[0]); ?></p>
<p><?php $jobtit = get_post_meta($post->ID, 'job_title'); echo($jobtit[0]); ?></p>
</section>
</article>
<article class="trifecta">
<section class="centerpiece">
<h1>Why Choose Rausch?</h1>
</section>
<section class="featured col-4-12">
<h2>Experience</h2>
<p>With over 15 years of experience in event management, live event production, video production, special events, and LED technology, Rausch understands the business inside and out.</p>
</section>
<section class="featured col-4-12" >
<h2>Knowledge</h2>
<p>By staying on top of the newest technology and equipment, our talented crew maintains the experience and knowledge needed to run successful events and productions.</p>
</section>
<section class="featured col-4-12" >
<h2>Commitment</h2>
<p>Our first priority is helping you create the best live event experience from start to finish. Our commitment to your success is what makes Rausch Productions the best in the business.</p>
</section>
</article>
<?php get_footer(); ?>