/
home-page.php
90 lines (81 loc) · 2.64 KB
/
home-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
82
83
84
85
86
87
88
89
<?php
/**
* Template Name: Home
*
* @package Student Design Collective
*/
get_header(); ?>
<div class="jumbotron hidden-sm" data-0="height:530px;" data-430="height:100px;">
<div class="hero-unit">
<h1>SDC makes connecting with other MCTC design students easy</h1>
<p>Get critiques of your work, hear guest speakers on the creative proccess, and build your resume and portfolio. Connection counts. </p>
</div>
</div>
<div class="jumbotron visible-sm">
<div class="hero-unit">
<h1>SDC makes connecting with other MCTC design students easy</h1>
<p>Get critiques of your work, hear guest speakers on the creative proccess, and build your resume and portfolio. Connection counts. </p>
</div>
</div>
<div class="container jumbotron-after-home">
<div class="twothirds">
<?php
query_posts('cat=1');
while (have_posts()) : the_post();
?>
<span class="ThumbnailClass">
<?php
// check if the post has a Post Thumbnail assigned to it.
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
</span>
<span class="ExcerptClass">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h2>
<small>By <?php the_author() ?>, <?php the_time('F jS, Y') ?></small>
<?php the_excerpt() ?>
</span>
<?php endwhile;?>
</div><!--
--><div class="onethird">
<div class="day-and-time">
STUDENT DESIGN COLLECTIVE<br>Thursdays, 11:30 - 12:30 - In T4500
</div>
<div class="onethirdinner">
<?php
global $query_string; query_posts($query_string . "&order=ASC");
$args = array( 'post_type' => 'event', 'posts_per_page' => 5, );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo '<div class="calendar-container">';
echo '<div class="calendar-box">';
echo '<p class="calendar-month">';
the_field('month');
echo '</p>';
echo '<p class="calendar-day">';
the_field('day_of_the_month');
echo '</p>';
echo '</div>';
echo '<div class="event-text">';
echo '<h4>';
the_title();
echo '</h4>';
echo '<h5>';
the_field('location_of_event');
echo '</h5>';
echo '<p>';
the_field('description_of_the_event');
echo '</p>';
echo '</div>';
echo '</div>';
endwhile;
?>
</div>
</div>
</div>
<?php get_footer(); ?>