aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/userdetails.php256
1 files changed, 134 insertions, 122 deletions
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index 30de55189..aacc17c03 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -1,122 +1,134 @@
-<?php
-
- /**
- * Elgg user display (details)
- *
- * @package ElggProfile
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['entity'] The user entity
- */
-
- if ($vars['full'] == true) {
- $iconsize = "large";
- } else {
- $iconsize = "medium";
- }
-
- // wrap all profile info
- echo "<div id=\"profile_info\">";
-
- // wrap the icon and links in a div
- echo "<div id=\"profile_info_column_left\">";
-
- // get the user's main profile picture
- echo elgg_view(
- "profile/icon", array(
- 'entity' => $vars['entity'],
- 'align' => "left",
- 'size' => $iconsize,
- )
- );
-
- //display relevant links
- echo "<div style=\"clear:both\"></div>" . elgg_view("profile/profilelinks", array("entity" => $vars['entity']));
-
- // close the icon and links div
- echo "</div>";
-
-?>
-
- <div id="profile_info_column_right" >
-
- <?php
-
- // display the users name
- echo "<h2><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></h2> <br />";
-
- if ($vars['full'] == true) {
-
- ?>
- <?php
-
- if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0)
- foreach($vars['config']->profile as $shortname => $valtype) {
- if ($shortname != "description") {
- $value = $vars['entity']->$shortname;
- if (!empty($value)) {
-
- ?>
-
- <p>
- <b><?php
-
- echo elgg_echo("profile:{$shortname}");
-
- ?>: </b>
- <?php
-
- echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname));
-
- ?>
-
- </p>
-
- <?php
- }
- }
- }
-
- }
-
- ?>
- </div><!-- /#profile_info_column_right -->
-
- <div style="clearfloat"></div>
-
- <div id="profile_info_wide">
- <p><b><?php echo elgg_echo("profile:aboutme"); ?></b><br /><?php echo nl2br($vars['entity']->description); ?></p>
-
-<?php
-
- if ($vars['entity']->canEdit()) {
-
-?>
- <p class="profile_info_edit_buttons">
- <a href="<?php echo $vars['url']; ?>mod/profile/edit.php"><?php echo elgg_echo("edit"); ?></a>
- </p>
-<?php
-
- }
-
- // TODO: Add admin console options here
- if (isadminloggedin()){
- if ($_SESSION['id']!=$vars['entity']->guid){
-?>
- <p>
- <a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a>
- </p>
- <p>
- <a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a>
- </p>
-<?php
- }
- }
-?>
-
-</div><!-- /#profile_info_wide -->
-
-</div><!-- /#profile_info -->
+<?php
+
+ /**
+ * Elgg user display (details)
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Ben Werdmuller <ben@curverider.co.uk>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity'] The user entity
+ */
+
+ if ($vars['full'] == true) {
+ $iconsize = "large";
+ } else {
+ $iconsize = "medium";
+ }
+
+ // wrap all profile info
+ echo "<div id=\"profile_info\">";
+
+?>
+
+<table>
+<tr>
+<td>
+
+<?php
+
+ // wrap the icon and links in a div
+ echo "<div id=\"profile_info_column_left\">";
+
+ // get the user's main profile picture
+ echo elgg_view(
+ "profile/icon", array(
+ 'entity' => $vars['entity'],
+ //'align' => "left",
+ 'size' => $iconsize,
+ )
+ );
+
+ // display relevant links
+ echo elgg_view("profile/profilelinks", array("entity" => $vars['entity']));
+
+ // close the icon and links div
+ echo "</div>";
+
+?>
+<!-- /#profile_info_column_left -->
+</td>
+<td>
+
+ <div id="profile_info_column_right" >
+
+ <?php
+
+ // display the users name
+ echo "<h2><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></h2> <br />";
+
+ if ($vars['full'] == true) {
+
+ ?>
+ <?php
+
+ if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0)
+ foreach($vars['config']->profile as $shortname => $valtype) {
+ if ($shortname != "description") {
+ $value = $vars['entity']->$shortname;
+ if (!empty($value)) {
+
+ ?>
+
+ <p>
+ <b><?php
+
+ echo elgg_echo("profile:{$shortname}");
+
+ ?>: </b>
+ <?php
+
+ echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname));
+
+ ?>
+
+ </p>
+
+ <?php
+ }
+ }
+ }
+
+ }
+
+ ?>
+ </div><!-- /#profile_info_column_right -->
+
+</td>
+</tr>
+</table>
+
+ <div id="profile_info_wide">
+ <p><b><?php echo elgg_echo("profile:aboutme"); ?></b><br /><?php echo nl2br($vars['entity']->description); ?></p>
+
+<?php
+
+ if ($vars['entity']->canEdit()) {
+
+?>
+ <p class="profile_info_edit_buttons">
+ <a href="<?php echo $vars['url']; ?>mod/profile/edit.php"><?php echo elgg_echo("edit"); ?></a>
+
+<?php
+
+ }
+
+ // TODO: Add admin console options here
+ if (isadminloggedin()){
+ if ($_SESSION['id']!=$vars['entity']->guid){
+?>
+
+ &nbsp; <a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a>
+
+ &nbsp; <a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a>
+
+<?php
+ }
+ }
+?>
+</p>
+</div><!-- /#profile_info_wide -->
+
+</div><!-- /#profile_info -->