1
|
1 |
<?php |
|
2 |
|
|
3 |
// calling the header.php |
|
4 |
get_header(); |
|
5 |
|
|
6 |
// action hook for placing content above #container |
|
7 |
thematic_abovecontainer(); |
|
8 |
|
|
9 |
?> |
|
10 |
|
|
11 |
<div id="container"> |
|
12 |
<div id="content"> |
|
13 |
|
|
14 |
<?php |
|
15 |
|
|
16 |
if (have_posts()) { |
|
17 |
|
|
18 |
// displays the page title |
|
19 |
thematic_page_title(); |
|
20 |
|
|
21 |
// create the navigation above the content |
|
22 |
thematic_navigation_above(); |
|
23 |
|
|
24 |
// action hook for placing content above the search loop |
|
25 |
thematic_above_searchloop(); |
|
26 |
|
|
27 |
// action hook creating the search loop |
|
28 |
thematic_searchloop(); |
|
29 |
|
|
30 |
// action hook for placing content below the search loop |
|
31 |
thematic_below_searchloop(); |
|
32 |
|
|
33 |
// create the navigation below the content |
|
34 |
thematic_navigation_below(); |
|
35 |
|
|
36 |
} else { |
|
37 |
|
|
38 |
?> |
|
39 |
|
|
40 |
<div id="post-0" class="post noresults"> |
|
41 |
<h1 class="entry-title"><?php _e('Nothing Found', 'thematic') ?></h1> |
|
42 |
<div class="entry-content"> |
|
43 |
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'thematic') ?></p> |
|
44 |
</div> |
|
45 |
<form id="noresults-searchform" method="get" action="<?php bloginfo('home') ?>"> |
|
46 |
<div> |
|
47 |
<input id="noresults-s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="40" /> |
|
48 |
<input id="noresults-searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'thematic') ?>" /> |
|
49 |
</div> |
|
50 |
</form> |
|
51 |
</div><!-- .post --> |
|
52 |
|
|
53 |
<?php |
|
54 |
|
|
55 |
} |
|
56 |
|
|
57 |
?> |
|
58 |
|
|
59 |
</div><!-- #content --> |
|
60 |
</div><!-- #container --> |
|
61 |
|
|
62 |
<?php |
|
63 |
|
|
64 |
// action hook for placing content below #container |
|
65 |
thematic_belowcontainer(); |
|
66 |
|
|
67 |
// calling the standard sidebar |
|
68 |
thematic_sidebar(); |
|
69 |
|
|
70 |
// calling footer.php |
|
71 |
get_footer(); |
|
72 |
|
|
73 |
?> |