-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-lgtown.php
51 lines (40 loc) · 2.19 KB
/
single-lgtown.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
<?php
global $avia_config;
/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();
$cats = get_the_category();
$title = get_the_title($new); //if the blog is attached to a page use this title
$t_link = get_category_link( $cats[0] );
$t_sub = avia_post_meta($new, 'subtitle');
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $cats[0]->cat_name, 'link' => $t_link, 'subtitle' => $t_sub));
?>
<div class='container_wrap container_wrap_first main_color sidebar_right '>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*
*/
//get_template_part( 'includes/loop', 'index' );
//get_template_part( 'includes/loop', 'about-author' );
//show related posts based on tags if there are any
the_content();
//wordpress function that loads the comments template "comments.php"
?>
<div class='avia-section main_color avia-section-default avia-no-shadow avia-bg-style-scroll el_after_av_textblock el_before_av_section container_wrap fullsize'>
<div class='container'>
<div class='template-page content twelve alpha units'>
<div class='post-entry post-entry-type-page'>
<div class='entry-content-wrapper clearfix'>
<?php
comments_template( '/includes/comments.php');
?>
</div>
</div>
</div>
</div>
</div>
</div><!-- close default .container_wrap element -->
<?php get_footer(); ?>