diff options
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/details.php')
-rwxr-xr-x | mod/profile/views/default/profile/profile_contents/details.php | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/details.php b/mod/profile/views/default/profile/profile_contents/details.php new file mode 100755 index 000000000..c61379974 --- /dev/null +++ b/mod/profile/views/default/profile/profile_contents/details.php @@ -0,0 +1,63 @@ +<?php +/** + * Elgg user display (details) + * @uses $vars['entity'] The user entity + */ +?> +<div id="profile_content"> +<?php + // Simple XFN + $rel = ""; + if (page_owner() == $vars['entity']->guid) + $rel = 'me'; + else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid)) + $rel = 'friend'; + + if ($vars['full'] == true) { + $even_odd = null; + 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)) { + //This function controls the alternating class + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; +?> + <p class="<?php echo $even_odd; ?>"> + <b><?php + echo elgg_echo("profile:{$shortname}"); + ?>: </b> + <?php + echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname)); + ?> + </p> + <?php + } + } + } + } +?> +<?php + if (!get_plugin_setting('user_defined_fields', 'profile')) { +?> +<?php + if ($vars['entity']->isBanned()) { + echo "<div class='banned_user'>"; + echo elgg_echo('profile:banned'); + echo "</div>"; + }else{ + if($vars['entity']->description){ + echo "<p class='aboutme_title'><b>" . elgg_echo("profile:aboutme") . "</b></p>"; + echo "<div class='aboutme_contents'>" .elgg_view('output/longtext', array('value' => $vars['entity']->description))."</div>"; + } + ?> +<?php } ?> + <?php + } + + echo "</div>"; + // profile sidebar + echo "<div id='profile_sidebar'>"; + echo elgg_view('profile/profile_ownerblock'); + echo "</div>"; +?> |