-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
36 lines (24 loc) · 819 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php get_header(); ?>
<div id="lower-wrap">
<div id="main-col">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php endwhile; endif; ?>
</div>
<?php
$page = $_SERVER['REQUEST_URI'];
$page = explode("?", $page);
$page = $page[0];
$page = str_replace("/","",$page);
$page = str_replace(".php","",$page);
$page = $page ? $page : 'default'
?>
<?php if(!($page == "web-search")): ?>
<?php include (TEMPLATEPATH . '/socialsidebar.php'); ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>