-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.php
54 lines (38 loc) · 1.28 KB
/
gallery.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
<?php
/*
Template Name: Gallery
*/
?>
<?php get_header(); ?>
<div class="container-fluid" id="grid">
<nav class="toggle-nav btn btn-lg" id="Gallery-Toggle"><i class="glyphicon glyphicon-info-sign"></i> </nav>
<div class="grid">
<?php
$args = array(
'orderby' => 'name',
'order' => 'ASC'
);
$categories = get_categories($args);
foreach($categories as $category) {
$term_id = $category->term_id;
$image = category_image_src( array('term_id'=>$term_id) , false );
$name = $category->name;
?>
<div class="block full medium-half large-one-third type-image" data-order="" data-order-medium="" data-order-large="">
<div class="block-inner ">
<a href="<?php the_permalink(); ?>" class="block-content">
<div class="content-rollover no-caption">
<div class="background">
<img src="<?php echo $image; ?>">
</div>
<div class="caption block-padding colour-light">
<span style="color:inherit"><?php echo $name?></span>
</div>
</div>
</a>
</div>
</div>
<?php } ?>
</div>
</div>
<?php get_footer();?>