summaryrefslogtreecommitdiff
path: root/apps/um/views/includes/header-include.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/um/views/includes/header-include.php')
-rw-r--r--apps/um/views/includes/header-include.php51
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