Advertisement
Guest User

Untitled

a guest
May 4th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.05 KB | None | 0 0
  1. <?php
  2.     global $avia_config;
  3.  
  4.     /*
  5.      * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  6.      */
  7.      get_header();
  8.  
  9.     $title  = __('Blog - Latest News', 'avia_framework'); //default blog title
  10.     $t_link = home_url('/');
  11.     $t_sub = "";
  12.  
  13.     if(avia_get_option('frontpage') && $new = avia_get_option('blogpage'))
  14.     {
  15.         $title  = get_the_title($new); //if the blog is attached to a page use this title
  16.         $t_link = get_permalink($new);
  17.         $t_sub =  avia_post_meta($new, 'subtitle');
  18.     }
  19.  
  20.     if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
  21.  
  22. ?>
  23.  
  24.         <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  25. <?php layerslider(1); ?>
  26.  
  27.             <div class='container template-blog template-single-blog '>
  28.  
  29.                 <main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
  30.  
  31.                     <?php
  32.                     /* Run the loop to output the posts.
  33.                     * If you want to overload this in a child theme then include a file
  34.                     * called loop-index.php and that will be used instead.
  35.                     *
  36.                     */
  37.  
  38.                         get_template_part( 'includes/loop', 'index' );
  39.                        
  40.                         //show related posts based on tags if there are any
  41.                         get_template_part( 'includes/related-posts');
  42.  
  43.                         //wordpress function that loads the comments template "comments.php"
  44.                         comments_template( '/includes/comments.php');
  45.  
  46.                     ?>
  47.  
  48.                 <!--end content-->
  49.                 </main>
  50.  
  51.                 <?php
  52.                 $avia_config['currently_viewing'] = "blog";
  53.                 //get the sidebar
  54.                 get_sidebar();
  55.  
  56.  
  57.                 ?>
  58.  
  59.  
  60.             </div><!--end container-->
  61.  
  62.         </div><!-- close default .container_wrap element -->
  63.  
  64.  
  65. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement