Project

General

Profile

Support #8761 » template-livestream.php

Alex Hills, 2017-10-02 01:48 PM

 
1
<?php
2
/**
3
Template Name: Livestream Page
4
**/
5
?>
6
<!DOCTYPE html>
7
<html xmlns="http://www.w3.org/1999/xhtml" style="margin-top: 0 !important;">
8
<head>
9
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
10
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
11
	<link rel="icon" type="image/x-icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.jpg">
12
	<title><?php wp_title( '|', true, 'right' ); ?> <?php bloginfo('name'); ?></title>
13
	<?php wp_head(); ?>
14
</head>
15
<body>
16
	<div id="wrapper" class="single_page">
17
		<div id="header">
18
			<div class="mast_head">
19
				<h1 class="fest_title"><a href="<?php echo get_site_url(); ?>"><?php the_field('festival_title','options'); ?></a></h1><h1 class="year"><a href="<?php echo get_site_url(); ?>"><?php the_field('festival_year','options'); ?></a></h1>
20
				<div class="sub_heads">
21
					<h2><a href="<?php echo get_site_url(); ?>"><?php the_field('festival_subtitle','options'); ?></a></h2>
22
					<h3><a href="<?php echo get_site_url(); ?>"><?php the_field('festival_dates','options'); ?></a></h3>
23
					<div class="line"></div><div class="angled_line"></div>
24
				</div>
25
				<br clear="all">
26
			</div>
27
			<div class="nav">
28
				<div class="instructions"><?php the_field('header_text','options'); ?></div>
29
				<div class="nav_items">
30
					<?php wp_nav_menu(); ?>
31
				</div>
32
			</div>
33
		</div>
34
		<?php
35
		if(have_posts()){ ?>
36
			<div id="the_event">
37
			<?php while(have_posts()){
38
				the_post(); ?>
39
				<div class="event_box">
40
					<div class="event_details">
41
						<div class="event_details_wrapper">
42
							<h2><?php the_title(); ?></h2><br>
43
							<?php if(have_rows('content_sections')){ ?>
44
								<?php while(have_rows('content_sections')){ ?>
45
									<?php the_row(); ?>
46
									<?php if(get_row_layout() == 'content'){ ?>
47
										<?php the_sub_field('content'); ?>
48
									<?php } elseif(get_row_layout() == 'howlround_1') { ?>
49
										<?php
50
										$on = get_sub_field('show_howlround_1');
51
										if($on == 1) { ?>
52
											<br>
53
											<iframe width="100%" height="400" src="http://cdn.livestream.com/embed/newplay?layout=4&color=0xe7e7e7&autoPlay=false&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true&height=400&width=600" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe><br>
54
										<?php } ?>
55
									<?php } elseif(get_row_layout() == 'howlround_2') { ?>
56
										<?php
57
										$on = get_sub_field('show_howlround_2');
58
										if($on == 1) { ?>
59
											<br><br>
60
											<iframe width="100%" height="400" src="http://cdn.livestream.com/embed/howlround?layout=4&color=0xe7e7e7&autoPlay=false&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true&height=400&width=600" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe><br>
61
										<?php } ?>
62
									<?php } ?>
63
								<?php } ?>
64
							<?php } ?>
65
						</div>
66
					</div>
67
				</div>
68

    
69
			<?php } ?>
70
			</div>
71
		<?php } ?>
72
	</div>
73
	<div class="single_background" style="background-image: url('<?php echo get_template_directory_uri(); ?>/images/blue_background_02.jpg');"></div>
74
	<?php wp_footer(); ?>
75
</body>
76
</html>
(2-2/2)