Advertisement
Guest User

incsub_wiki.php

a guest
Jun 1st, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1. <?php
  2. global $blog_id, $wp_query, $wiki, $post, $current_user;
  3. get_header( 'wiki' );
  4.  
  5. require_once( 'incsub_wiki-functions.php');
  6. restore_original_functions();
  7. ?>
  8. <div id="primary" class="wiki-primary-event">
  9.     <div id="content">
  10.         <div class="padder">
  11.             <div id="wiki-page-wrapper">
  12.                 <h1 class="entry-title"><?php the_title(); ?></h1>
  13.                 <?php if ( !post_password_required() ) { ?>
  14.                 <div class="incsub_wiki incsub_wiki_single">
  15.                     <div class="incsub_wiki_tabs incsub_wiki_tabs_top"><?php echo tabs(); ?><div class="incsub_wiki_clear"></div></div>
  16.                 </div>
  17.                 <?php
  18.                   $revision_id = isset($_REQUEST['revision'])?absint($_REQUEST['revision']):0;
  19.                   $left        = isset($_REQUEST['left'])?absint($_REQUEST['left']):0;
  20.                   $right       = isset($_REQUEST['right'])?absint($_REQUEST['right']):0;
  21.                   $action      = isset($_REQUEST['action'])?$_REQUEST['action']:'view';
  22.  
  23.                   echo $wiki->decider(apply_filters('the_content', $post->post_content), $action, $revision_id, $left, $right, false); 
  24.                  
  25.                   // Display comments and form
  26.                   if( is_single() ) {
  27.                     $withcomments = "1";
  28.                     comments_template('/comments.php', false);
  29.                   }
  30.                 ?>
  31.         <?php } ?>
  32.             </div>
  33.         </div>
  34.     </div>
  35. </div>
  36.  
  37. <?php get_sidebar('wiki'); ?>
  38.  
  39. <?php get_footer('wiki'); ?>
  40.  
  41. <style type="text/css">
  42. .single #primary {
  43.     float: left;
  44.     margin: 0 -26.4% 0 0;
  45. }
  46. .singular #content, .left-sidebar.singular #content {
  47.     margin: 0 34% 0 7.6%;
  48.     width: 58.4%;
  49. }
  50. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement