-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
66 lines (58 loc) · 1.83 KB
/
archive.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
<?php get_header(); ?>
<div class="jbasewrap contents">
<!--<?php /* Pagination System
$previous_posts = get_previous_posts_page_link();
$next_posts = get_next_posts_page_link();
global $paged, $wp_query;
$max_page = $wp_query->max_num_pages;
if(!$paged) {
$paged = 1;
}
if($paged<$max_page) { ?>
<a href="<?php echo $next_posts; ?>" class="right fixed">next page</a>
<?php }
if($paged>1) { ?>
<a href="<?php echo $previous_posts; ?>" class="prev right fixed">previous page</a>
<?php } */
?>-->
<h1 class="fixed"><?php if(is_search()) {
?>Searching for: <?php
echo get_search_query();
} else if ( is_category() ) {
?>
This is the
<?php single_cat_title(); ?> Section
<?php } ?>
</h1>
<!-- <span class="sections">View Section: </span>
<ul class="noBullets sections">
<?php // wp_list_categories('hierarchical=false&title_li='); ?>
</ul> -->
<p><?php echo category_description( $category_id ); ?></p>
<?php
if ( have_posts() ) : ?>
<ul class="contentlist noBullets">
<?php while ( have_posts() ) : the_post();
$title = get_the_title();
?>
<li class="grid12col left">
<div class="grid10col left">
<h2 class="small"><a href="<?php the_permalink(); ?>"><?php echo $title; ?></a></h2>
</div>
<div class="grid1col left marginleft">
<span class="date push1"><?php echo get_the_date('d/m'); ?></span>
<span class="date year"><?php echo get_the_date('Y'); ?></span>
</div>
<div class="grid1col left push1 marginleft textalignright">
<span class="expand">></span>
</div>
<div class="grid6col left">
<p><?php echo get_the_excerpt(); ?></p>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<br class="clearboth"/>
</div>
<?php get_footer(); ?>