-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom_functions.php
77 lines (54 loc) · 2.41 KB
/
custom_functions.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
<?php
// move nav bar below header
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header','thesis_nav_menu');
// Emergency use only, when an upgrade fails.
//delete_option('thesis_design_options');
//delete_option('thesis_options');
/// Cool stuff!
if (file_exists(THESIS_CUSTOM . '/wiaw_fat_footer.php')){
include(THESIS_CUSTOM . '/wiaw_fat_footer.php');
}
/*
if (file_exists(THESIS_CUSTOM . '/wiaw_featured_new.php')){
include(THESIS_CUSTOM . '/wiaw_featured_new.php');
}
if (file_exists(THESIS_CUSTOM . '/wiaw_before_content.php')){
include(THESIS_CUSTOM . '/wiaw_before_content.php');
}
*/
if (file_exists(THESIS_CUSTOM . '/wiaw_custom_sidebars.php')){
include(THESIS_CUSTOM . '/wiaw_custom_sidebars.php');
}
if (file_exists(THESIS_CUSTOM . '/is_custom_pages.php')){
include(THESIS_CUSTOM . '/is_custom_pages.php');
}
if (file_exists(THESIS_CUSTOM . '/wiaw_custom_404.php')){
include(THESIS_CUSTOM . '/wiaw_custom_404.php');
}
function larrybio() {
$bio = '<div class="bio" style="height: 150px;">';
$bio .= "<img src='http://website-in-a-weekend.net/wp-content/uploads/2009/10/Larry-04-150x150.jpg' align='right'/>";
$bio .= "<em>Larry Herrin is a consultant, author and web entrepreneur. ";
$bio .= "One of his eCommerce websites sells ";
$bio .= '<a href="http://newpalmpre.com/" onclick="javascript:pageTracker._trackPageview(\'/outbound/article/newpalmpre.com\');" target="_blank"> Palm Pre accessories</a>';
$bio .= " He has owned and used three different Palm/Handspring smartphones since 2001. He is hopelessly addicted.</em>";
$bio .= "</div>";
return $bio;
}
add_shortcode('larrybio', 'larrybio');
function ecourse_blurb() {
$blurb = <<<EOF
<div class="websiteweekendecourse" style="background-color:#eeeeee;
font-style: slant; border-width: 1px; border-style: solid;
padding: 8px 8px 8px 8px; margin: 8px 15px 8px 15px; font-size: 85%; ">
Hey! You're in the middle of the <strong>Website In A Weekend eCourse</strong>.
Learn how to create and operate a complete WordPress-based website in a single weekend.
Start here: <a href="http://website-in-a-weekend.net/getting-started/website-weekend-friday-evening-races/">Website
In A Weekend: Friday Evening - Off to the Races</a>. (If you already have a blog...
"audit" the eCourse... you'll find plenty to do.)
</div>
EOF;
return $blurb;
}
add_shortcode('ecblurb', 'ecourse_blurb');