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