-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.tpl.php
127 lines (102 loc) · 3.18 KB
/
page.tpl.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
// $Id$
/* *
* @file
* page.tpl.php
*/
/**
* documentation:
* http://api.drupal.org/api/file/modules/system/page.tpl.php
* -------------------------------------
* page vars dsm(get_defined_vars())
* -------------------------------------
* <?php print $base_path; ?>
* <?php print $is_front ?>
*/
?>
<?php // dsm(get_defined_vars()) ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">
<!--
mothership FTW
http://drupal.org/projects/moshpit
-->
<head>
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<?php print $scripts; ?>
</head>
<body class="<?php print $body_classes; //can be modified in template.php mothership_preprocess_page or though the theme settings + http://drupal.org./node/171906 ?>">
<?php if (!empty($admin)) print $admin; ?>
<div class="header">
<<?php print $site_name_element; // defined in template.php mothership_preprocess_page ?> id="site-name">
<a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a>
</<?php print $site_name_element; ?>>
<?php print $site_slogan ?>
<?php print $mission ?>
<?php if ($header) { ?>
<?php print $header; ?>
<?php } ?>
<?php if ($primary_links) { ?>
<?php print theme('links', $primary_links); ?>
<?php } ?>
<?php if ($breadcrumb) { ?>
<?php print $breadcrumb; // themename_breadcrumb in template.php?>
<?php } ?>
</div>
<div class="body clearfix">
<div class="left">
<?php if ($left) { ?>
<?php print $left; ?>
<?php } ?>
</div>
<div class="main">
<?php if ($help OR $messages) { ?>
<?php print $help ?>
<?php print $messages ?>
<?php } ?>
<?php if ($tabs) { ?>
<?php print $tabs; ?>
<?php }; ?>
<?php if ($title AND (arg(0) != "node")) { ?><h1><?php print $title; ?></h1><?php } ?>
<?php print $content; ?>
</div>
<div class="right">
<?php if ($right) { ?>
<?php print $right; ?>
<?php } ?>
<?php if ($user->uid) { ?>
<?php
//user picture
if ($user->picture) {
$userimage = '<img src="/' . $user->picture . '">';
print l($userimage, 'user/' . $user->uid, $options = array('html' => TRUE));
}
?>
<?php print l($user->name, 'user/' . $user->uid . '/edit'); ?>
<?php print $user->mail ;?>
(<?php print l(t('edit'), 'user/' . $user->uid . '/edit'); ?>
<?php print l(t('log out'), 'logout'); ?>)
<?php print $user->profile_bio;?>
<?php
//ROLES
foreach ($user->roles as $key => $value) {
if ($key!="2") {//no reason to show the basic authenticated role
print $user->roles[$key] . ' (' . $key . ')<br/>';
}
}
?>
<?php } //user account ?>
</div>
</div>
<div class="footer">
<?php if ($footer_message) { ?>
<?php print $footer_message; ?>
<?php } ?>
<?php print $footer; ?>
<?php print $feed_icons ?>
</div>
<?php print $closure; ?>
</body>
</html>