Guest User

Untitled

a guest
May 27th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. <?php get_header(); ?>
  2. </div><!-- header-area -->
  3. </div><!-- end rays -->
  4. </div><!-- end header-holder -->
  5. </div><!-- end header -->
  6.  
  7. <?php truethemes_before_main_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  8. <div id="main">
  9. <?php
  10. $ka_blogtitle = get_option('ka_blogtitle');
  11. $ka_searchbar = get_option('ka_searchbar');
  12. $ka_crumbs = get_option('ka_crumbs');
  13. $ka_blogbutton = get_option('ka_blogbutton');
  14. $ka_posted_by = get_option('ka_posted_by');
  15. $ka_post_date = get_option('ka_post_date');
  16. if ($ka_post_date != "false"){ $ka_post_date_result = 'style="background:none !important;"';}else{$ka_post_date_result = '';}
  17. $ka_dragshare = get_option('ka_dragshare');
  18. $blog_image_frame = get_option('ka_blog_image_frame');
  19. global $ttso;
  20. $show_tools_panel = $ttso->ka_tools_panel;
  21. ?>
  22. <div class="main-area">
  23.  
  24. <?php
  25. /*
  26. * Check to display or hide tools panel
  27. * @since version 2.6 development
  28. */
  29. if($show_tools_panel != 'false'):
  30. ?>
  31.  
  32.  
  33. <div class="tools">
  34. <div class="holder">
  35. <div class="frame">
  36.  
  37. <?php truethemes_before_article_title_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  38.  
  39. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  40. <?php /* If this is a category archive */ if (is_category()) { ?>
  41. <h1>Archive for '<?php single_cat_title(); ?>'</h1>
  42. <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  43. <h1>Posts Tagged '<?php single_tag_title(); ?>'</h1>
  44. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  45. <h1>Archive for <?php the_time('F jS, Y'); ?></h1>
  46. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  47. <h1>Archive for <?php the_time('F, Y'); ?></h1>
  48. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  49. <h1>Archive for <?php the_time('Y'); ?></h1>
  50. <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  51. <h1>Author Archive</h1>
  52. <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  53. <h1>Blog Archives</h1>
  54. <?php } ?>
  55. <?php if ($ka_searchbar == "true"){get_template_part('searchform','childtheme');} else {} ?>
  56. <?php if ($ka_crumbs == "true"){ $bc = new simple_breadcrumb;} else {} ?>
  57.  
  58.  
  59. <?php truethemes_after_searchform_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  60.  
  61.  
  62. </div><!-- end frame -->
  63. </div><!-- end holder -->
  64. </div><!-- end tools -->
  65.  
  66. <?php endif; //end show tools panel check @since version 2.6 dev ?>
  67.  
  68. <div class="main-holder">
  69. <div id="content" class="content_blog">
  70. <?php wdpv_vote(); ?>
  71. <?php
  72. //create a file in child theme called content-blog-childtheme.php to overwrite this.
  73. get_template_part('theme-template-part-content-blog','childtheme');
  74. ?>
  75. </div><!-- end content -->
  76.  
  77.  
  78. <div id="sidebar" class="sidebar_blog">
  79. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Sidebar") ) : ?><?php endif; ?>
  80. </div><!-- end sidebar -->
  81. </div><!-- end main-holder -->
  82. </div><!-- main-area -->
  83.  
  84.  
  85. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment