-
Notifications
You must be signed in to change notification settings - Fork 1
/
wiaw_whitepapers.php
80 lines (52 loc) · 1.6 KB
/
wiaw_whitepapers.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
<?php
/////////////////////// Whitepaper stuff below
//*
function is_whitepaper() {
if (is_page_template('whitepaper_template.php')) {
return true;
} else {
return false;
}
}
//*/
function thesis_whitepaper_title() {
?>
<p id="logo"><a href="<?php bloginfo('url'); ?>">WordPress Whitepapers</a></p>
<?php
}
function thesis_whitepaper_tagline() {
?>
<h1 id="tagline"><?php bloginfo('description'); ?></h1>
<?php
}
function thesis_whitepaper_header() {
thesis_hook_before_title();
thesis_whitepaper_title();
thesis_whitepaper_tagline();
thesis_hook_after_title();
}
////////////////////// Whitepaper template /////////////////
/// This needs work to get updated to 1.8
function whitepaper_template() {
remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header','thesis_whitepaper_header');
get_header(apply_filters('thesis_get_header', $name));
echo '<div id="container">' . "\n";
echo '<div id="page">' . "\n";
thesis_header_area();
echo ' <div id="content_box">' . "\n";
thesis_content_column();
echo ' <div id="sidebars">' . "\n";
echo ' <div id="sidebar_5 class="sidebar">' . "\n";
echo ' <ul class="sidebar_list">' . "\n";
dynamic_sidebar(5);
echo ' </ul>' . "\n";
echo ' </div>' . "\n"; // sidebar_5
echo ' </div>' . "\n"; // //sidebars
echo ' </div>' . "\n"; // content_box
thesis_footer_area();
echo '</div>' . "\n"; //page
echo '</div>' . "\n"; //container
get_footer(apply_filters('thesis_get_footer', $name));
}
?>