-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingular.php
More file actions
91 lines (54 loc) · 2.77 KB
/
Copy pathsingular.php
File metadata and controls
91 lines (54 loc) · 2.77 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* Singular Template
*
* This is the default singular template. It is used when a more specific template can't be found to display
* singular views of posts (any post type).
*
* @package Oxygen
* @subpackage Template
*/
get_header(); // Loads the header.php template. ?>
<aside class="aside">
<?php
echo $cat_id = get_query_var('cat');
echo $cur_cat = get_cat_ID( single_cat_title("",false) );
?>
<?php get_template_part( 'menu', 'secondary' ); // Loads the menu-secondary.php template. ?>
<?php get_sidebar( 'primary' ); // Loads the sidebar-primary.php template. ?>
</aside>
<?php do_atomic( 'before_content' ); // oxygen_before_content ?>
<div class="content-wrap">
<div id="content">
<?php do_atomic( 'open_content' ); // oxygen_open_content ?>
<?php
$categories = get_the_category();
$category_id = $categories[0]->cat_ID;
echo category_description( $category_id );
?>
<div class="hfeed">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_atomic( 'before_entry' ); // oxygen_before_entry ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // oxygen_open_entry ?>
<h2 class="post-title entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="byline">By <?php the_author_posts_link(); ?> on <a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a> <?php edit_post_link(); ?></div>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'oxygen' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'oxygen' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php do_atomic( 'close_entry' ); // oxygen_close_entry ?>
</div><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // oxygen_after_entry ?>
<?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
<?php do_atomic( 'after_singular' ); // oxygen_after_singular ?>
<?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // oxygen_close_content ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // oxygen_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>