-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemes.php
More file actions
executable file
·28 lines (26 loc) · 838 Bytes
/
themes.php
File metadata and controls
executable file
·28 lines (26 loc) · 838 Bytes
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
<?php
/*
Template Name: Category List
*/
?>
<?php get_header(); ?>
<div class="container">
<div class="panel archive">
<div class="panel_title">
<h2>Midd<b>START</b> Themes</h2>
</div>
<table class="cubes themes">
<tr>
<?php
$categories = get_categories(array('hide_empty' => TRUE));
for ($i = 0; $i < count($categories); $i++) {
if ($i % 4 == 0 && $i != 0) print '<tr>';
print '<td class="cube c' . ($i % 16 + 1) . '"><a href="' . get_category_link( $categories[$i]->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $categories[$i]->name ) . '" ' . '>' . $categories[$i]->name.'</a></td>';
if ($i % 4 == 3 && $i != count($categories) - 1) print '</tr>';
}
?>
</tr>
</table>
</div>
</div>
<?php get_footer(); ?>