-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-front.php
126 lines (114 loc) · 6.14 KB
/
page-front.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/* Template Name: Front */
get_header();
?>
<!-- Site banner -->
<section class="banner text-white rounded">
<div class="row">
<div class="col-md-6 px-0">
</div>
<div class="col-md-6 dms-b-right">
<div style="float:left;"><img src="<?php bloginfo('stylesheet_directory'); ?>/assets/images/dms-logo.png" alt="Kids at Davis Makerspace" style="width:100px;height:auto;margin-right:30px;"></div>
<h1 class="display-4 text-center">Davis Makerspace</h1>
<p style="height: 100px;" class="lead my-3 float-left text-center">a non-profit community workspace for makers and builders, designers and inventors.</p>
<a href="/donate"><button class="btn mx-auto">DONATE</button></a>
</div>
</div>
</section>
<!-- Middle content section -->
<section class="container-fluid">
<div class="row dms-yellow pb-4">
<div class="col-md-6">
<h4 class="dms-fp">Events</h4>
<p class="card-text mb-auto"><?php echo do_shortcode("[ecs-list-events excerpt='true' eventdetails='true' ecs-list-events thumb='true' thumbwidth='250' thumbheight='250' contentorder='title, date, excerpt, venue, thumbnail']"); ?></p>
</div>
<!-- Events -->
<div class="col-md-6">
<!-- Posts -->
<h4 class="dms-fp">News & Stories</h4>
<?php
$postslist = get_posts('sort_order=asc');
foreach ($postslist as $post) :
setup_postdata($post);
?>
<div class="card flex-md-row mb-4 box-shadow h-md-250">
<div class="row">
<div class="col-7 d-flex order-1 order-sm-0">
<div class="card-body d-flex flex-column align-items-start">
<h3 class="mb-0 mt-0"><a class="text-dark" href="<?php the_permalink(); ?>"><?php echo mb_strimwidth( get_the_title(), 0, 30, '...' ); ?></a></h3>
<div class="entry">
<div class="mb-1 text-muted"><?php the_time('F jS, Y'); ?></div>
<p class="card-text mb-auto"><?php the_excerpt(); ?></p>
</div>
</div>
</div>
<div class="col-5">
<?php the_post_thumbnail( 'dms-custom-img', array( 'class' => 'card-img-right')); ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="row dms-blue dms">
<div class="col-sm-4 ml-0 mr-0 pl-0 pr-0" style="z-index: 1;">
<img class="dms-info-row" src="<?php bloginfo('stylesheet_directory'); ?>/assets/images/drawing_on_papers_dms.jpg" alt="visit our wiki image at Davis Makerspace">
</div>
<div class="col-sm-8 mr-0 ml-0 pr-0 pl-0">
<div class="dms-section-title">
<h4 class="mb-0 mt-0">The Wiki</h4>
</div>
<div class="dms-section-text">
<p>What is a wiki? A wiki is a type of collabortively written website. Our wiki is our community page containing practical details about our space, the people who run the space, and some of the gadgets we've created and maintained over the years.</p>
<p>Looking for open hours? Instructions on how to use one of our 3D printers?</p>
<a href="https://wiki.davismakerspace.org/"><button class="btn mx-auto">VISIT THE WIKI</button></a>
</div>
</div>
</div>
<div class="row dms-yellow dms">
<div class="col-sm-8 mr-0 ml-0 pr-0 pl-0 text-right">
<div class="dms-section-title">
<h4 class="mb-0 mt-0">Kids</h4>
</div>
<div class="dms-section-text">
<p>Kids are welcome at Davis Makerspace! For safety reasons, however, children need to be accompanied by an adult.</p>
<p>For special events, arrangements can be made. Davis Makerspace is available for many events and workshops. If you have questions or would like to put on an event, write to us!</p>
<a href="/about#contact"><button class="btn mx-auto">WRITE TO THE BOARD</button></a>
</div>
</div>
<div class="col-sm-4 ml-0 mr-0 pl-0 pr-0">
<img class="dms-info-row" src="<?php bloginfo('stylesheet_directory'); ?>/assets/images/DMS_fleamarket_6.jpg" alt="Kids at Davis Makerspace">
</div>
</div>
<div class="row dms-blue dms">
<div class="col-sm-4 ml-0 mr-0 pl-0 pr-0" style="z-index: 1;">
<img class="dms-info-row" src="<?php bloginfo('stylesheet_directory'); ?>/assets/images/davismakerspace-membership.jpg" alt="Membership at Davis Makerspace">
</div>
<div class="col-sm-8 mr-0 ml-0 pr-0 pl-0">
<div class="dms-section-title">
<h4 class="mb-0 mt-0">Membership</h4>
</div>
<div class="dms-section-text">
<p>Davis Makerspace is a one-room community space, with rotating volunteers hosting open hours. We are not a co-working space but we try to make our tools and spaces available for the general public to use whenever possible. </p>
<p>As a member you can put on events, partake in our governance process, and possibly even host open hours. Our suggested monthly donation for members is $30 a month.</p>
<a href="/about#contact"><button class="btn mx-auto">MEMBERSHIP</button></a>
</div>
</div>
</div>
<div class="row dms-yellow dms">
<div class="col-sm-8 mr-0 ml-0 pr-0 pl-0 text-right">
<div class="dms-section-title">
<h4 class="mb-0 mt-0">Tool Lending Library</h4>
</div>
<div class="dms-section-text">
<p>Need to borrow a hacksaw, a hammer, and VU meter for a short-term project at home? We are in the process of creating a tool library that will be available for everyone to use.</p>
<p>We haven't built our lending system yet, but join our mailing list to get status updates on our lending library, events, and other happenings at Davis Makerspace.</p>
<a href="https://lists.davismakerspace.org/listinfo/discuss?fbclid=IwAR3YB1LKumTPWi7_EA_qCGxjE14NwxvUZUoxc7pbKUokQzfsnkVc3w1ne_4"><button class="btn mx-auto">MAILING LIST</button></a>
</div>
</div>
<div class="col-sm-4 ml-0 mr-0 pl-0 pr-0">
<img class="dms-info-row" src="<?php bloginfo('stylesheet_directory'); ?>/assets/images/tool-library.jpg" alt="tool library Davis Makerspace">
</div>
</div>
</section>
<?php get_footer(); ?>