template-home-page.php
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' || $live_streaming == 'Old Embed Code'){ ?>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 } elseif($live_streaming == 'Old Embed Code') { ?> |
65 |
<iframe src="http://livestream.com/accounts/18059298/events/4938555/player?width=494&height=303&autoPlay=true&mute=false[livestream.com]" width="494" height="303" frameborder="0" scrolling="no"> </iframe><br><br> |
66 |
<?php }; ?> |
67 |
</div>
|
68 |
<br clear="all"> |
69 |
|
70 |
</div>
|
71 |
</div><!-- .post --> |
72 |
|
73 |
<?php
|
74 |
// calls the do_action for inserting content below #post
|
75 |
thematic_belowpost(); |
76 |
|
77 |
// action hook for calling the comments_template
|
78 |
thematic_comments_template(); |
79 |
|
80 |
// end loop
|
81 |
endwhile;
|
82 |
|
83 |
// calling the widget area 'page-bottom'
|
84 |
get_sidebar( 'page-bottom' );
|
85 |
?>
|
86 |
|
87 |
</div><!-- #content --> |
88 |
|
89 |
|
90 |
<?php
|
91 |
// action hook for inserting content below #content
|
92 |
thematic_belowcontent(); |
93 |
?>
|
94 |
</div><!-- #container --> |
95 |
|
96 |
<?php
|
97 |
// action hook for placing content below #container
|
98 |
thematic_belowcontainer(); |
99 |
|
100 |
// calling footer.php
|
101 |
get_footer(); |
102 |
?>
|