Don't like ads? PRO users don't see any ads ;-)
Guest

archive.php

By: caledoniaman on Aug 6th, 2012  |  syntax: PHP  |  size: 2.92 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  
  9. <div id="main">
  10. <?php
  11. $ka_blogtitle = get_option('ka_blogtitle');
  12. $ka_searchbar = get_option('ka_searchbar');
  13. $ka_crumbs = get_option('ka_crumbs');
  14. $ka_blogbutton = get_option('ka_blogbutton');
  15. $ka_posted_by = get_option('ka_posted_by');
  16. $ka_post_date = get_option('ka_post_date');
  17. if ($ka_post_date != "false"){ $ka_post_date_result = 'style="background:none !important;"';}else{$ka_post_date_result = '';}
  18. $ka_dragshare = get_option('ka_dragshare');
  19. $blog_image_frame = get_option('ka_blog_image_frame');
  20. global $ttso;
  21. $show_tools_panel = $ttso->ka_tools_panel;
  22. ?>
  23. <div class="main-area">
  24.  
  25.         <?php
  26.         /*
  27.         * Check to display or hide tools panel
  28.         * @since version 2.6 development
  29.         */
  30.         if($show_tools_panel != 'false'):
  31.         ?>
  32.  
  33.  
  34. <div class="tools">
  35. <div class="holder">
  36. <div class="frame">
  37.  
  38. <?php truethemes_before_article_title_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  39.  
  40. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  41.         <?php /* If this is a category archive */ if (is_category()) { ?>
  42.         <h1>Archive for '<?php single_cat_title(); ?>'</h1>
  43.         <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  44.         <h1>Posts Tagged '<?php single_tag_title(); ?>'</h1>
  45.         <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  46.         <h1>Archive for <?php the_time('F jS, Y'); ?></h1>
  47.         <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  48.         <h1>Archive for <?php the_time('F, Y'); ?></h1>
  49.         <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  50.         <h1>Archive for <?php the_time('Y'); ?></h1>
  51.         <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  52.         <h1>Author Archive</h1>
  53.         <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  54.         <h1>Blog Archives</h1>
  55.         <?php } ?>
  56. <?php if ($ka_searchbar == "true"){get_template_part('searchform','childtheme');} else {} ?>
  57. <?php if ($ka_crumbs == "true"){ $bc = new simple_breadcrumb;} else {} ?>
  58.  
  59.  
  60. <?php truethemes_after_searchform_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  61.  
  62.  
  63. </div><!-- end frame -->
  64. </div><!-- end holder -->
  65. </div><!-- end tools -->
  66.  
  67.   <?php endif; //end show tools panel check @since version 2.6 dev ?>
  68.  
  69.   <div class="main-holder">
  70.   <div id="content" class="content_blog">
  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 dynamic_sidebar("Blog Sidebar"); ?>
  80. </div><!-- end sidebar -->
  81. </div><!-- end main-holder -->
  82. </div><!-- main-area -->
  83.  
  84.  
  85.  
  86. <?php get_footer(); ?>