-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
113 lines (85 loc) · 2.81 KB
/
search.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
/**
* The main template file for display category page.
*
* @package WordPress
*/
get_header();
?>
<br class="clear"/>
<div id="content_wrapper">
<div class="inner">
<!-- Begin main content -->
<div class="inner_wrapper">
<div class="sidebar_content">
<?php
global $more; $more = false; # some wordpress wtf logic
if(isset($_SESSION['pp_blog_layout']))
{
$pp_blog_layout = $_SESSION['pp_blog_layout'];
}
else
{
$pp_blog_layout = get_option('pp_blog_layout');
}
include_once (TEMPLATEPATH . "/templates/template-blog-".$pp_blog_layout.".php");
?>
</div>
<div class="sidebar_wrapper">
<?php
$twitter_id = get_option(SHORTNAME.'_twitter_username');
$fb_id = get_option('pp_feedburner_id');
if(!empty($twitter_id) OR !empty($fb_id)):
?>
<div class="social_profile">
<div class="profile">
<a href="<?php echo $fb_id; ?>">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_feeds.png" alt="" class="alignleft social"/>
</a>
<h4><?php pp_feeds_count(); ?></h4>
<span class="count">subscribers</span>
</div>
<div class="profile">
<a href="http://twitter.com/<?php echo $twitter_id; ?>">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_twitter.png" alt="" class="alignleft social"/>
</a>
<h4><?php pp_twitter_followers(); ?></h4>
<span class="count">followers</span>
</div>
<br class="clear"/>
</div>
<?php
endif;
?>
<h2 class="widgettitle header"><?php printf( __( 'Results for "%s"', THEMEDOMAIN ), '' . get_search_query() . '' ); ?></h2>
<div class="ads125_wrapper">
<?php
$pp_side_banner = get_option('pp_side_banner');
if(!empty($pp_side_banner))
{
echo stripslashes($pp_side_banner);
}
?>
</div>
<div class="above_sidebar searchbuh">
<input type="submit" id="searchsubmit" value="Search" class="btn"><h2 class="widgettitle">Search</h2></input>
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<div><input type="text" size="18" value="" name="s" id="s" />
</div>
</form>
</div>
<div class="sidebar">
<div class="content">
<ul class="sidebar_widget">
<?php dynamic_sidebar('Search Sidebar'); ?>
</ul>
</div>
</div>
<br class="clear"/>
</div>
<br class="clear"/>
</div>
<!-- End main content -->
</div>
</div>
<?php get_footer(); ?>