diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-04 17:53:57 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-04 17:53:57 +0000 |
commit | 1852b00a819721c9d7399e7fa42321d582bb32af (patch) | |
tree | fe81c6f4fa440359091c0a737201c522f923a9db /mod/profile/views/default/profile/profile_contents/details.php | |
parent | 88c3d54f0a6ceb0b539af4e922157b101b945542 (diff) | |
download | elgg-1852b00a819721c9d7399e7fa42321d582bb32af.tar.gz elgg-1852b00a819721c9d7399e7fa42321d582bb32af.tar.bz2 |
Pulled profile sidebar out into separate view.
Using one_column_with_sidebar layout for editing profile.
git-svn-id: http://code.elgg.org/elgg/trunk@5285 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/details.php')
-rwxr-xr-x | mod/profile/views/default/profile/profile_contents/details.php | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/details.php b/mod/profile/views/default/profile/profile_contents/details.php index c61379974..7c5e6a0a4 100755 --- a/mod/profile/views/default/profile/profile_contents/details.php +++ b/mod/profile/views/default/profile/profile_contents/details.php @@ -21,7 +21,7 @@ $value = $vars['entity']->$shortname; if (!empty($value)) { //This function controls the alternating class - $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; ?> <p class="<?php echo $even_odd; ?>"> <b><?php @@ -37,27 +37,22 @@ } } ?> -<?php +<?php if (!get_plugin_setting('user_defined_fields', 'profile')) { ?> -<?php +<?php if ($vars['entity']->isBanned()) { echo "<div class='banned_user'>"; echo elgg_echo('profile:banned'); echo "</div>"; - }else{ - if($vars['entity']->description){ + }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>"; + echo "<div class='aboutme_contents'>" .elgg_view('output/longtext', array('value' => $vars['entity']->description))."</div>"; } ?> <?php } ?> - <?php + <?php } - - echo "</div>"; - // profile sidebar - echo "<div id='profile_sidebar'>"; - echo elgg_view('profile/profile_ownerblock'); - echo "</div>"; -?> + + echo "</div>";
\ No newline at end of file |