-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-note.php
69 lines (63 loc) · 1.92 KB
/
archive-note.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
<?php
/**
* The template for displaying the Notes archive. Overrides the generic archive.php.
*
* @package infectionNet
* @since infectionNet 0.1
*/
get_header();
?>
<section id="primary" class="site-content">
<div id="content" role="main">
<?php inet_breadcrumb(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<div class="standardsub-left">
<div class="header-icon">
<img src="<?php bloginfo('template_url'); ?>/img/header-icon-notes.png" width="76" height="76" alt="" />
</div>
</div>
<div class="standardsub-right" style="background:url(<?php bloginfo('template_url'); ?>/img/header-image-clinical-resources.jpg) top left no-repeat;">
<h1 class="archive-title"><?php _e( 'Notes', 'inet' ); ?></h1>
</div>
</header><!-- .archive-header -->
<div class="entry-content">
<div class="entry-content-right">
<?php
$description = get_post_type_object(get_post_type())->description;
if ($description):
?>
<p class="intro"><?php echo $description; ?></p>
<?php
endif;
while ( have_posts() ) : the_post();
?>
<article id="post-<?php the_ID()?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if(has_excerpt()): ?>
<div class="excerpt"><?php the_excerpt(); ?></div>
<?php endif; ?>
</article><!--#post-<?php the_ID(); ?>-->
<?php
endwhile;
inet_content_nav( 'nav-below' );
?>
</div><!-- .entry-content-right -->
<div class="entry-content-left">
<h2>Note Types</h2>
<ul class="categories links-list">
<?php
$categories = get_post_type_terms('note_type');
echo $categories;
?>
</ul>
</div><!-- .entry-content-left -->
<?php
else :
get_template_part( 'content', 'none' );
endif; // have_posts
?>
</div><!--.entry-content-->
</div><!-- #content -->
</section><!-- #primary .site-content -->
<?php get_footer(); ?>