-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomepage.php
More file actions
89 lines (76 loc) · 3.59 KB
/
homepage.php
File metadata and controls
89 lines (76 loc) · 3.59 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
<?php
/*
Template Name: Homepage
*/
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<!-- Main content -->
<section id="homepage-content" class="main-content">
<article class="homepage-article">
<?php
$posts = get_posts(array(
'numberposts' => -1,
'post_type' => 'show_post',
));
if($posts)
{
foreach($posts as $post)
{
echo '<a class="show-image" href="' . get_permalink($post->ID) . '">' . get_the_post_thumbnail($post->ID) . '</a>';
echo '<h1><a href="' . get_permalink($post->ID) . '">' . get_field('show_status') . '</a></h1>';
echo '<h2><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></h2>';
echo '<div class="performances"><a class="text-link" href="' . get_permalink($post->ID) . '">' . "Performances:" . '</a>' . " " . get_field('performance_dates') . '</div>' ;
echo '<div class="wide">' . get_field('description_of_show') . '</div>' ;
}
}
?>
</article> <!-- .homepage-article -->
<article class="homepage-article">
<?php
$posts = get_posts(array(
'numberposts' => -1,
'post_type' => 'show_post',
));
if($posts)
{
foreach($posts as $post)
{
echo '<a class="show-image" href="' . get_permalink($post->ID) . '">' . get_the_post_thumbnail($post->ID) . '</a>';
echo '<h1><a href="' . get_permalink($post->ID) . '">' . get_field('show_status') . '</a></h1>';
echo '<h2><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></h2>';
echo '<div class="performances"><a class="text-link" href="' . get_permalink($post->ID) . '">' . "Performances:" . '</a>' . " " . get_field('performance_dates') . '</div>' ;
echo '<div class="wide">' . get_field('description_of_show') . '</div>' ;
}
}
?>
</article> <!-- .homepage-article -->
</section> <!-- .main-content -->
<!-- Sidebar (right column) -->
<section class="custom-sidebar">
<section class="sidebar-icons clear">
<section class="social-media">
<img src="http://taf.leahbateman.com/wp-content/themes/taf/images/facebook.png" alt="Facebook icon">
<img src="http://taf.leahbateman.com/wp-content/themes/taf/images/twitter.png" alt="Twitter icon">
<img src="http://taf.leahbateman.com/wp-content/themes/taf/images/youtube.png" alt="YouTube icon">
<img src="http://taf.leahbateman.com/wp-content/themes/taf/images/googleplus.png" alt="Google+ icon">
</section>
<section class="awards">
<img src="http://taf.leahbateman.com/wp-content/themes/taf/images/phoenix-best2010-ribbon.png" alt="Boston Phoenix Best of 2010 ribbon icon">
</section>
</section>
<section class="sidebar-buttons clear">
<button type="button">Buy Tickets</button>
<button type="button">Subscribe</button>
<button type="button">Donate</button>
</section>
<section class="about-us">
<h1>About Us</h1>
<p>Theatre@First is an all-volunteer community theatre based in Somerville, MA. Founded in 2003, we fill a vital niche in the vibrant Davis Square arts scene. We draw upon the talents and support of individuals and organizations throughout the community to provide opportunities for our participants and audiences to experience quality live theatre in a variety of local venues. For more about our recent history, see our In the Press page.</p>
</section>
</section>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>