Make WordPress Themes

source: lightning/0.2.2/single.php

Last change on this file was 52661, checked in by themedropbox, 10 years ago

Lightning - 0.2.2

File size: 2.5 KB
Line 
1<?php get_header(); ?>
2
3<?php get_template_part('module_pageTit'); ?>
4<?php get_template_part('module_panList'); ?>
5
6<div class="section siteContent">
7<div class="container">
8<div class="row">
9
10<main class="col-md-8 mainSection" id="main" role="main">
11
12<?php
13if( apply_filters( 'is_lightning_extend_single' , false ) ):
14    do_action( 'lightning_extend_single' );
15else:
16if (have_posts()) : while ( have_posts() ) : the_post();?>
17<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
18        <header>
19        <?php get_template_part('module_loop_post_meta');?>
20        <h1 class="entry-title"><?php the_title(); ?></h1>
21        </header>
22
23        <div class="entry-body">
24        <?php the_content();?>
25        </div><!-- [ /.entry-body ] -->
26
27        <div class="entry-footer">
28        <?php
29        $args = array(
30                'before'           => '<nav class="page-link"><dl><dt>Pages :</dt><dd>',
31                'after'            => '</dd></dl></nav>',
32                'link_before'      => '<span class="page-numbers">',
33                'link_after'       => '</span>',
34                'echo'             => 1 );
35        wp_link_pages( $args ); ?>
36
37        <?php
38        /*-------------------------------------------*/
39        /*  Category and tax data
40        /*-------------------------------------------*/
41    $args = array(
42        'template' => __( '<dl><dt>%s</dt><dd>%l</dd></dl>','lightning' ),
43        'term_template' => '<a href="%1$s">%2$s</a>',
44    );
45    $taxonomies = get_the_taxonomies($post->ID,$args);
46    $taxnomiesHtml = '';
47    if ($taxonomies) {
48                foreach ($taxonomies as $key => $value) {
49                        if ( $key != 'post_tag' ) {
50                                $taxnomiesHtml .= '<div class="entry-meta-dataList">'.$value.'</div>';
51                        }
52        } // foreach
53        } // if ($taxonomies)
54        $taxnomiesHtml = apply_filters( 'lightning_taxnomiesHtml', $taxnomiesHtml );
55        echo $taxnomiesHtml;
56        ?>
57
58        <?php $tags_list = get_the_tag_list();
59        if ( $tags_list ): ?>
60        <div class="entry-meta-dataList entry-tag">
61        <dl>
62        <dt><?php _e('Tags','lightning') ;?></dt>
63        <dd class="tagCloud"><?php echo $tags_list; ?></dd>
64        </dl>
65        </div><!-- [ /.entry-tag ] -->
66        <?php endif; ?>
67        </div><!-- [ /.entry-footer ] -->
68
69        <?php comments_template( '', true ); ?>
70</article>
71<?php endwhile;endif;
72endif;
73?>
74
75<nav>
76  <ul class="pager">
77    <li class="previous"><?php previous_post_link( '%link', '%title' ); ?></li>
78    <li class="next"><?php next_post_link( '%link', '%title' ); ?></li>
79  </ul>
80</nav>
81
82</main><!-- [ /.mainSection ] -->
83
84<div class="col-md-3 col-md-offset-1 subSection">
85<?php get_sidebar(get_post_type()); ?>
86</div><!-- [ /.subSection ] -->
87
88</div><!-- [ /.row ] -->
89</div><!-- [ /.container ] -->
90</div><!-- [ /.siteContent ] -->
91<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.