Advertisement
Guest User

body_page.php

a guest
Aug 8th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.68 KB | None | 0 0
  1. <?php kommiku_header(); ?>
  2.  
  3.     <?php require('lib/inc/page-styling.php'); ?>  
  4.  
  5.  
  6.    
  7.         <div id="page-title-wrapperm"><h2 class="page-titlem"><a href="<?=HTTP_HOST?><?=$kommiku['url']['series']?>"><?=stripslashes($kommiku["title"]["series"])?></a> <a href="<?=HTTP_HOST?><?=$kommiku['url']['chapter_slug']?>"><?=stripslashes($kommiku["title"]["chapter_slug"])?></a> <a href="<?=HTTP_HOST?><?=$kommiku['url']['chapter']?>"><?=stripslashes($kommiku["title"]["chapter"])?></a></h2>
  8.  
  9.                 <center><?php kommiku_page_navigation(); ?></center></div> 
  10.                 <center><?php global $imageWidth; if($imageWidth > 950) {?><div id="expand" >Expand Image</div><?php } ?></center>
  11.                 <center><?php if($page["img"]) img(); else echo stripslashes($page['story']); ?></center>
  12.                        
  13.                <div id="page-title-wrappery"><center><?php kommiku_page_navigation(); ?></center></div>
  14.  
  15.                 <center>                <?php //kommiku_series_table_list(); ?>            
  16.                     <?php //Story Information ?>
  17.                         <?php  if($page["img"] && ($page["title"] || $page["story"])){  ?>
  18.                             <div id="page-info">
  19.                                 <?php if($page["title"]){ ?> <h2 id="page-title"><a href="<?=$kommiku['url']['page']?>"><?=$page["title"]?></a></h2> <?php } ?>
  20.                                 <small><?php echo date('M-d-Y',strtotime($page["pubdate"])); ?></small>
  21.                                 <?php if($page["story"]){ ?> <p id="page-story"><?=stripslashes($page["story"])?></p> <?php } ?>
  22.                             </div>
  23.                         <?php } ?>
  24.                        
  25.                         <?php if($page['wp_post_slug']){ ?>
  26.                             <div id="wp-connect">
  27.                                 <?php query_posts(array('post_status' => 'publish', 'name' => $page['wp_post_slug'] ));the_post();  ?>
  28.                                 <div id="post-<?php the_ID() ?>"">
  29.                                     <h2 id="page-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  30.                                     <div class="entry-content">
  31.                                     <?php the_content(); ?>
  32.                                     <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>
  33.                                     </div>
  34.                                     <p style="padding: 0; float: right;"><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
  35.                                 </div>
  36.                             </div>
  37.                         <?php } ?></center>
  38.        
  39.  
  40.    
  41.                 <?php //kommiku_sidebar_category_list(); ?>
  42.                         <?php //get_sidebar(); ?>          
  43.  
  44.     <div class="clear"></div>
  45.    
  46.  
  47.  
  48. <?php kommiku_footer(); ?>
  49.  
  50. <?php //Keyboard Commands! No need to touch this. ?>
  51. <script type="text/javascript">
  52.     document.onkeyup = KeyCheck;      
  53.     function KeyCheck(e){
  54.         var ev = e || window.event;
  55.         ev.preventDefault();
  56.         var KeyID = ev.keyCode;
  57.         switch(KeyID){
  58.             case 36:
  59.               window.location = '<?=HTTP_HOST?><?=$kommiku['url']['series']?>'
  60.               break;
  61.             case 33:
  62.             case 37:
  63.                 <?php if (checkPrevPage()) { ?>  
  64.                     window.location = '<?php prevPage(); ?>';
  65.                 <?php } else { ?>
  66.                     alert('You are already on the First Page.');
  67.                 <?php } ?>
  68.               break;
  69.             case 34:
  70.             case 39:
  71.                 <?php if (checkNextPage()) { ?>  
  72.                     window.location = '<?php nextPage(); ?>';
  73.                 <?php } else { ?>
  74.                     alert('This is the latest page.');
  75.                 <?php } ?>
  76.             break;
  77.         }
  78.     }
  79. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement