summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-08-22 22:34:13 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-08-22 22:34:13 +0200
commit74647e16d37fac9425a4561b49618b52cdc3e75c (patch)
tree7bfd868f8ef2646e65ffd8dbdf63dd8bf91723e3 /includes/view/User_view.php
parent721aa7f160db36e53d03081bbda73970b702eeb7 (diff)
add basic bootstrap theme
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r--includes/view/User_view.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index eda29d58..20a6de6e 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -1,5 +1,10 @@
<?php
+function User_view($user_source) {
+ $user_name = htmlspecialchars($user_source['Vorname']) . " " . htmlspecialchars($user_source['Name']);
+ return page_with_title('<span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . ' <small>' . $user_name . '</small>', array());
+}
+
/**
* Available T-Shirt sizes
*/
@@ -23,7 +28,7 @@ $tshirt_sizes = array(
* View for password recovery step 1: E-Mail
*/
function User_password_recovery_view() {
- return page(array(
+ return page_with_title(user_password_recovery_title(), array(
msg(),
_("We will send you an e-mail with a password recovery link. Please use the email address you used for registration."),
form(array(
@@ -37,7 +42,7 @@ function User_password_recovery_view() {
* View for password recovery step 2: New password
*/
function User_password_set_view() {
- return page(array(
+ return page_with_title(user_password_recovery_title(), array(
msg(),
_("Please enter a new password."),
form(array(
@@ -67,7 +72,7 @@ function User_Avatar_render($user) {
function User_Nick_render($user_source) {
global $user, $privileges;
if ($user['UID'] == $user_source['UID'] || in_array('user_shifts_admin', $privileges))
- return '<a href="' . page_link_to('user_myshifts') . '&amp;id=' . $user_source['UID'] . '">' . htmlspecialchars($user_source['Nick']) . '</a>';
+ return '<a href="' . page_link_to('user_myshifts') . '&amp;id=' . $user_source['UID'] . '"><span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . '</a>';
else
return htmlspecialchars($user_source['Nick']);
}