forked from corgus/eas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartists.php
57 lines (49 loc) · 1.88 KB
/
artists.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
<?php
/*
Template Name: Artists
*/
?>
<?php get_header(); ?>
<?php roots_content_before(); ?>
<div id="content" class="<?php echo CONTAINER_CLASSES; ?>">
<?php roots_main_before(); ?>
<div id="main" class="<?php echo MAIN_CLASSES; ?>" role="main">
<?php roots_loop_before(); ?>
<?php get_template_part('loop', 'artists'); ?>
<?php roots_loop_after(); ?>
<div>
Sort by: <?php if(!isset($_GET['sort'])): ?><strong>
<?php else: ?><a class="gray3" href="/artists/"><?php endif; ?>
Recently Updated
<?php if(!isset($_GET['sort'])): ?></strong>
<?php else: ?></a><?php endif; ?>
|
<?php if(isset($_GET['sort']) && $_GET['sort'] == 'name'): ?><strong>
<?php else: ?><a class="gray3" href="?sort=name"><?php endif; ?>
Name
<?php if(isset($_GET['sort']) && $_GET['sort'] == 'name'): ?></strong>
<?php else: ?></a><?php endif; ?>
</div>
<?php eas_page_links(); ?>
<div id="artists_grid">
<?php
if(isset($_GET['sort']) && $_GET['sort'] == 'name')
{
eas_artists_grid(get_query_var('paged'), 20, false, 'name');
//eas_recently_updated_artists(get_query_var('paged'), 10, false, 'name');
}
else
{
eas_artists_grid(get_query_var('paged'), 20, false, 'recent');
//eas_recently_updated_artists(get_query_var('paged'));
}
?>
<br class="clear" />
</div>
<?php eas_page_links(); ?>
<?php eas_display_cc_general(); ?>
</div><!-- /#main -->
<?php roots_main_after(); ?>
</div><!-- /#content -->
<?php roots_content_after(); ?>
<?php get_footer(); ?>