Want more features on Pastebin? Sign Up, it's FREE!

index.php

By: Protonova on Oct 12th, 2011  |  syntax: PHP  |  size: 2.10 KB  |  views: 41  |  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
  2. /*
  3. Template Name: Blog
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8. <?php
  9. /*
  10.  * @since version 1.0
  11.  * modified @since 2.6 development
  12.  * use global variable $ttso
  13. */
  14. global $ttso;
  15. $ka_blogtitle = $ttso->ka_blogtitle;
  16. $ka_searchbar = $ttso->ka_searchbar;
  17. $ka_crumbs = $ttso->ka_crumbs;
  18. $show_tools_panel = $ttso->ka_tools_panel;
  19. ?>
  20. </div><!-- header-area -->
  21. </div><!-- end rays -->
  22. </div><!-- end header-holder -->
  23. </div><!-- end header -->
  24.  
  25. <?php truethemes_before_main_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  26.  
  27. <div id="main">
  28. <div class="main-area">
  29.        
  30.         <?php
  31.         /*
  32.         * Check to display or hide tools panel
  33.         * @since version 2.6 development
  34.         */
  35.         if($show_tools_panel != 'false'):
  36.         ?>
  37.        
  38.   <div class="tools">
  39.     <div class="holder">
  40.       <div class="frame">
  41.      
  42.       <?php truethemes_before_article_title_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  43.      
  44.       <h1><?php echo $ka_blogtitle; ?></h1>
  45.       <?php if ($ka_searchbar == "true"){
  46.       //parent theme uses searchform.php
  47.       //create a file in child theme named searchform-childtheme.php to overwrite.
  48.       get_template_part('searchform','childtheme');
  49.       } else {}
  50.       ?>
  51.       <?php if ($ka_crumbs == "true"){ $bc = new simple_breadcrumb;} else {} ?>
  52.      
  53. <?php truethemes_after_searchform_hook();// action hook, see truethemes_framework/global/hooks.php ?>      
  54.      
  55.       </div><!-- end frame -->
  56.     </div><!-- end holder -->
  57.   </div><!-- end tools -->
  58.  
  59.   <?php endif; //end show tools panel check @since version 2.6 dev ?>
  60.  
  61. <div class="main-holder">
  62.   <div id="content" class="content_blog">
  63.         <?php
  64.         //create a file in child theme called content-blog-childtheme.php to overwrite this.
  65.         get_template_part('theme-template-part-content-blog','childtheme');
  66.         ?>
  67.   </div><!-- end content -->
  68.  
  69. <div id="sidebar" class="sidebar_blog">
  70. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Sidebar") ) : ?><?php endif; ?>
  71. </div><!-- end sidebar -->
  72. </div><!-- end main-holder -->
  73. </div><!-- main-area -->
  74.  
  75. <?php get_footer(); ?>
  76.  
clone this paste RAW Paste Data