Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <?php
  2.  
  3. /* Template Name: Home Details */
  4.  
  5. if ( !defined('ABSPATH') ){ die(); }
  6.  
  7. global $avia_config, $more;
  8.  
  9. /*
  10. * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  11. */
  12. get_header();
  13.  
  14.  
  15. $showheader = true;
  16. if(avia_get_option('frontpage') && $blogpage_id = avia_get_option('blogpage'))
  17. {
  18. if(get_post_meta($blogpage_id, 'header', true) == 'no') $showheader = false;
  19. }
  20.  
  21. if($showheader)
  22. {
  23. echo avia_title(array('title' => avia_which_archive()));
  24. }
  25.  
  26. do_action( 'ava_after_main_title' );
  27. ?>
  28.  
  29. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  30.  
  31. <div class='container template-blog '>
  32.  
  33. <main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
  34.  
  35. <?php
  36.  
  37. $tds = term_description();
  38. if($tds)
  39. {
  40. echo "<div class='category-term-description'>{$tds}</div>";
  41. }
  42. ?>
  43.  
  44.  
  45. <?php
  46.  
  47. /* Run the loop to output the posts.
  48. * If you want to overload this in a child theme then include a file
  49. * called loop-index.php and that will be used instead.
  50. */
  51.  
  52. $more = 0;
  53. get_template_part( 'includes/loop', 'index' );
  54. ?>
  55.  
  56. <!--end content-->
  57. </main>
  58.  
  59. <?php
  60.  
  61. //get the sidebar
  62. $avia_config['currently_viewing'] = 'homedetails';
  63. get_sidebar();
  64.  
  65. ?>
  66.  
  67. </div><!--end container-->
  68.  
  69. </div><!-- close default .container_wrap element -->
  70.  
  71.  
  72.  
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement