Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
157 lines (90 loc) · 3.07 KB
/
Copy pathindex.php
File metadata and controls
157 lines (90 loc) · 3.07 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php get_header(); ?>
<br/>
<?php if ( !is_user_logged_in() ) { ?>
<div id="hero">
<div class="row">
<div class="large-12 columns section">
<h1>WorkGrids</h1><br/>
<h4>A free network for workplace sharing and discovery.</h4><br/>
<?php if (get_option('users_can_register')) : ?>
<a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><button><span class="">Get started</span></button></a>
<?php endif; ?>
</div>
</div>
</div>
<?php } else { ?>
<div class="row">
<div class="show-for-small small-12 columns center">
<a href="mailto:team@halfbake.me?subject=Post to WorkGrid"><button><span class="">Upload Workspace</span></button></a>
</div>
</div>
<div class="show-for-small">
<br/>
<hr/>
</div>
<?php } ?>
<!-- Display Recent Articles -->
<div class="row">
<div class="large-12 columns">
<h2 class="right-button-aligned">Featured</h2>
<a href="/grid"><span class="action-button float-right">View All</span></a>
</div>
</div>
<hr/>
<!-- all workspaces -->
<div class="row">
<div class="large-12 columns">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=12&paged=' . $paged); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php include('loop-grid.php') ?>
<?php endwhile; ?>
<?php kriesi_pagination(); ?>
<?php else : ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h1>Ruh roh. No posts?</h1>
</div>
<?php endif; wp_reset_query(); ?>
</div>
</div>
</div><!-- end 12 columns -->
<hr/>
<!-- show posts only from blog -->
<div class="row section">
<div class="large-12 columns">
<h2 class="right-button-aligned">Articles</h2>
<a href="<?php echo home_url();?>/section/posts/"><span class="action-button float-right">View All</span></a>
</div>
</div>
<hr/>
<div class="row">
<div class="large-12 columns">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=5&paged=' . $paged); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php include('loop-blog.php') ?>
<?php endwhile; ?>
<?php kriesi_pagination(); ?>
<?php else : ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h5>No more articles to display.</h5>
</div>
<?php endif; wp_reset_query(); ?>
</div>
</div>
</div><!-- end 12 columns -->
<hr/>
<!-- Display Recent Pictures -->
<div class="row section">
<div class="large-12 columns">
<h2>Recent Pictures</h2>
<h5>#myworkspace</h5>
<div id="loading-image">
<img src="<?php bloginfo('template_url'); ?>/img/loading.gif" alt="Loading..." />
</div>
<div class="instagram"></div></div>
<button class="load-more" style="margin: 0 auto;">Load More</button>
<div id="my_gallery"></div>
</div>
</div>
<?php get_footer(); ?>
</body>
</html>