break;
}
+ $body .= elgg_view('profile/profile_contents/sidebar');
return $body;
}
*/
function profile_get_user_edit_content($user, $page) {
$section = (isset($page[2])) ? $page[2] : 'details';
+ $content = elgg_view('profile/profile_navigation', array('section' => $section, 'entity' => $user));
switch ($section) {
case 'icon':
- $content = elgg_view_title(elgg_echo('profile:edit'));
+ $content .= elgg_view_title(elgg_echo('profile:edit'));
$content .= elgg_view("profile/editicon", array('entity' => $user));
break;
default:
switch ($action) {
case 'edit':
+ $layout = 'one_column_with_sidebar';
+
if (!$user || !$user->canEdit()) {
register_error(elgg_echo("profile:noaccess"));
forward();
}
$content = profile_get_user_edit_content($user, $page);
+ $content = elgg_view_layout($layout, 'asdf', $content);
break;
default:
+ $layout = 'one_column';
if (isset($page[1])) {
$section = $page[1];
} else {
$section = 'activity';
}
$content = profile_get_user_profile_html($user, $section);
+ $content = elgg_view_layout($layout, $content);
break;
}
- $content = elgg_view_layout('one_column', $content);
-
page_draw($title, $content);
return;
}
* Elgg user display (details)
* @uses $vars['entity'] The user entity
*/
-?>
+?>
<div id="profile_content">
<?php
if(is_plugin_enabled('thewire')) {
}
?>
</div>
-
-<div id="profile_sidebar">
-<?php
- echo elgg_view('profile/profile_ownerblock', array('smallicon' => true));
-?>
-</div>
$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
}
}
?>
-<?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
<?php
echo $friends;
?>
-</div>
-
-<div id="profile_sidebar">
-<?php
- echo elgg_view('profile/profile_ownerblock', array('smallicon' => true));
-?>
</div>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Elgg profile icon edit form
+ *
+ * @package ElggProfile
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider
+ * @copyright Curverider Ltd 2008-2010
+ * @link http://elgg.com/
+ */
+?>
+<div id="profile_sidebar">
+<?php
+ echo elgg_view('profile/profile_ownerblock', array('smallicon' => true));
+?>
+</div>
\ No newline at end of file
/**
* Elgg twitter view page
*/
-
+
$twitter_username = $vars['entity']->twitter;
-
+
// if the twitter username is empty, then do not show
if($twitter_username){
?>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo $twitter_username; ?>.json?callback=twitterCallback2&count=10"></script>
</div>
-<div id="profile_sidebar">
+
<?php
- echo elgg_view('profile/profile_ownerblock', array('smallicon' => true));
-?>
-</div>
-<?php
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file