-
Notifications
You must be signed in to change notification settings - Fork 1
/
loop-art_home.php
59 lines (43 loc) · 924 Bytes
/
loop-art_home.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
<?php
if (get_post_type() != 'artwork') {
$artwork = false;
} else {
$artwork = true;
}
if (eas_is_edit()) {
$edit = true;
$edit_class = ' edit';
} else {
$edit = false;
$edit_class = '';
}
$post_count = $wp_query->post_count;
?>
<div class="artcontainer">
<?php
if (have_posts()) {
?>
<div class="row"><?php
for (; $i < 2 && $i < $post_count; $i++) { the_post();
eas_artwork_span($post->ID, eas_first_tagged_artwork($id), get_the_title());
}
?>
</div>
<div class="row">
<?php
for (; $i < 5 && $i < $post_count; $i++) { the_post();
eas_artwork_span($post->ID, eas_first_tagged_artwork($id), get_the_title(), 4, 'span4xspan3');
}
?>
</div>
<div class="row">
<?php
for (; $i < 9 && $i < $post_count; $i++) { the_post();
eas_artwork_span($post->ID, eas_first_tagged_artwork($id), get_the_title(), 3, 'span3-crop');
}
?>
</div>
<?php
}
?>
</div>