summaryrefslogtreecommitdiff
path: root/apps/um/views/includes/header-include.php
blob: 3826b3a8d955096a1ca6a479bf6daa66e027d452 (plain)
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
<?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");