diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-05 02:39:55 -0800 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-05 02:39:55 -0800 |
commit | 3d64793a1ee45857856be1cd71c3a0a040a3e869 (patch) | |
tree | 0ab6a6209df17740417dd96820e729b5b44b69b8 /src/views/includes/header-include.php | |
parent | 29a3ffb99435827d5a7ea6886ac22bd2ee18d593 (diff) |
This was sitting on the server
Diffstat (limited to 'src/views/includes/header-include.php')
-rw-r--r-- | src/views/includes/header-include.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/views/includes/header-include.php b/src/views/includes/header-include.php new file mode 100644 index 0000000..3826b3a --- /dev/null +++ b/src/views/includes/header-include.php @@ -0,0 +1,51 @@ +<?php +function language_attributes() { + echo 'dir="ltr" lang="en-US"'; +} + +function bloginfo($param) { + switch ($param) { + case 'charset': echo 'UTF-8'; break; + case 'stylesheet_url': echo "/wp/wp-content/themes/kilabytes/style.css"; break; + case 'pingback_url': echo 'http://www.mckenzierobotics.org/wp/xmlrpc.php'; break; + default: echo ''; break; + } +} + +function wp_title($foo, $bar, $baz) { + global $_title_; + echo $_title_; +} + +function get_bloginfo($foo, $bar) { + return false; +} + +function get_template_directory_uri() { + return 'http://www.mckenzierobotics.org/wp/wp-content/themes/twentyeleven'; +} + +function is_singular() { + return false; +} + +function wp_head() { + echo ''; +} + +global $paged, $page; +$paged = 0; +$page = 0; + +$username = Auth::getInstance(Login::isLoggedIn())->getName(); +$logged_in = ($username!==false); + +$ret = $this->ret; +$this->ret = true; + +function body_class() { + $body_class = 'logged'.($logged_in?'in':'out'); + echo 'class="'+$body_class+'"'; +} + +require(dirname(__FILE__)+"/header.php");
\ No newline at end of file |