diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-07 08:21:00 -0800 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-07 10:20:28 -0800 |
commit | 464f4d3497617fadb9d7752868f1175849cfa6d2 (patch) | |
tree | 0771bd935b30971bf2c244b6f158ed7496b644e5 /apps/um/views/includes/header-include.php | |
parent | 3d64793a1ee45857856be1cd71c3a0a040a3e869 (diff) |
Refactor to separate the framework from the app; drop message stuff, this app is just user management. Add a json view for individual usersHEADmaster
Diffstat (limited to 'apps/um/views/includes/header-include.php')
-rw-r--r-- | apps/um/views/includes/header-include.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/apps/um/views/includes/header-include.php b/apps/um/views/includes/header-include.php new file mode 100644 index 0000000..3826b3a --- /dev/null +++ b/apps/um/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 |