Project

General

Profile

Bug #5079 » template-home-page.php

Alex Hills, 2016-01-06 10:25 PM

 
1
<?php
2
/**
3
 * Template Name: MESTC Home Page
4
 *
5
 * This Full Width template based on THEMATIC is for the specific MESTC home page.
6
 * 
7
 * @package MESTC
8
 * @subpackage Templates
9
 */
10

    
11
    // calling the header.php
12
    get_header();
13

    
14
    // action hook for placing content above #container
15
    thematic_abovecontainer();
16
?>
17

    
18
		<div id="container">
19
		
20
			<?php
21
				// action hook for inserting content above #content
22
				thematic_abovecontent();		
23
	    	
24
				// filter for manipulating the element that wraps the content 
25
				echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" );
26
			
27
				// calling the widget area 'page-top'
28
	            get_sidebar('page-top');
29
	
30
	            // start the loop
31
	            while ( have_posts() ) : the_post();
32
	            
33
	            // action hook for inserting content above #post
34
	            thematic_abovepost();
35
				
36
	        ?>
37
	            
38
				<?php
39
					echo '<div id="post-' . get_the_ID() . '" ';
40
					// Checking for defined constant to enable Thematic's post classes
41
					if ( ! ( THEMATIC_COMPATIBLE_POST_CLASS ) ) {
42
					    post_class();
43
					    echo '>';
44
					} else {
45
					    echo 'class="';
46
					    thematic_post_class();
47
					    echo '">';
48
					}
49

    
50
	            ?>
51
	              <div class="entry-content">
52
	              		<?php $live_streaming = get_field('live_streaming'); ?>
53
						<div <?php if($live_streaming == 'HowlRound TV1' || $live_streaming == 'HowlRound TV2'){ ?>class="the_content"<?php }; ?>>
54
		                    <?php
55
		                    	the_content();
56
		                    ?>
57
	                    </div>
58
	                    <div class="live-stream">
59
							
60
	                  		<?php if($live_streaming == 'HowlRound TV1') { ?>
61
	                  			<iframe width="494" height="303" src="http://cdn.livestream.com/embed/newplay?layout=4&color=0xe7e7e7&autoPlay=false&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true&height=303&width=494" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe><br><br>
62
	                  		<?php } elseif($live_streaming == 'HowlRound TV2') { ?>
63
	                  			<iframe width="494" height="303" src="http://cdn.livestream.com/embed/howlround?layout=4&color=0xe7e7e7&autoPlay=false&mute=false&iconColorOver=0x888888&iconColor=0x777777&allowchat=true&height=303&width=494" style="border:0;outline:0" frameborder="0" scrolling="no"></iframe><br><br>
64
	                  		<?php }; ?>
65
						</div>
66
						<br clear="all">
67
	
68
					</div>
69
				</div><!-- .post -->
70
	
71
			<?php
72
				// calls the do_action for inserting content below #post
73
	        	thematic_belowpost();
74
	        		        
75
	        	// action hook for calling the comments_template
76
       			thematic_comments_template();
77
        		
78
	        	// end loop
79
        		endwhile;
80
	        
81
	        	// calling the widget area 'page-bottom'
82
	        	get_sidebar( 'page-bottom' );
83
	        ?>
84
	
85
			</div><!-- #content -->
86
			
87
            
88
			<?php 
89
				// action hook for inserting content below #content
90
				thematic_belowcontent(); 
91
			?> 
92
		</div><!-- #container -->
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/2)