forked from CRIK0VA/alethemes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-gallery.php
executable file
·72 lines (62 loc) · 2.91 KB
/
archive-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php get_header(); ?>
<!-- Content -->
<div class="portfolio-center-align">
<div class="portfolio-categories">
<div class="nav">
<a href="<?php echo home_url(); ?>/gallery" class="active"><?php _e('All', 'aletheme')?></a>
<?php $args = array(
'type' => 'gallery',
'child_of' => 0,
'parent' => '',
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 1,
'hierarchical' => 1,
'exclude' => '',
'include' => '',
'number' => '',
'taxonomy' => 'gallery-category',
'pad_counts' => false );
$categories = get_categories( $args );
foreach($categories as $cat){
echo '<span>/</span><a href="'.home_url().'/gallery-category/'.$cat->slug.'">'.$cat->name.'</a>';
}
?>
</div>
</div>
<div class="portfolio-line">
<div class="scrollable" id="scrollable">
<div class="items">
<?php global $query_string; query_posts($query_string.'&posts_per_page=-1');?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- Item -->
<div class="item">
<div class="img">
<a href="<?php the_permalink(); ?>">
<p><?php _e('open portfolio','aletheme'); ?></p>
<span class="darken"></span>
<span class="border"></span>
<?php echo get_the_post_thumbnail($post->ID,'gallery-thumba') ?>
</a>
<div class="portfolio-text">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="by">by <?php the_author(); ?></p>
<div class="text">
<?php echo ale_trim_excerpt(15); ?>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div>
<!-- Nav -->
<a class="prev browse left"></a>
<a class="next browse right"></a>
<!-- Scroll -->
<div class="pseudo-scroll">
<div class="scrollbar"></div>
</div>
</div>
</div>
<?php get_footer(); ?>