<div class="centered">
	<div id="profile_picture">
		<div class="picture" style="background-image:url(<?php 
echo avatar_image($view['id']);
?>
);"></div>
	</div>
	<div id="user-info">
		<h1 class="text-contrast"><?php 
echo showname($view);
?>
</h1>
		<div class="about"><?php 
echo d($view['about'], 1);
?>
</div>
	</div>
</div>
$section = 'website';
foreach ($developer[$section] as $uid => $d) {
    $this_user = $devusers[$uid];
    $pedit = false;
    if ($user && $this_user->id == $user->id && $edit) {
        $pedit = true;
        $has_section = true;
    }
    ?>
		<div class="dev-spotlight">
			<a href="<?php 
    echo site_url('user/' . $uid);
    ?>
" target="_blank" class="center">
				<div class="avatar" style="background-image:url(<?php 
    echo avatar_image($uid);
    ?>
);"></div>
				<span class="user"><?php 
    echo showname($this_user, '');
    ?>
</span>
			</a>
			<div class="dev-info">
				<span>
					Working on:
				</span><span>
					Already done:
				</span>
			</div>
			<div class="clear"></div>
echo form_input($change_picture['background']['submit']);
?>
<!--
			--><?php 
echo form_input($change_picture['background']['delete']);
?>
<!--
		--><?php 
echo form_close();
?>
<!--
	--></div>
	<div class="left-bar prevent-eyecatcher">
		<div id="profile_picture">
			<div class="picture" style="background-image:url(<?php 
echo avatar_image($user->id);
?>
);"></div>
		</div>
		<div id="change_profile_picture">
			<div class="clear"></div>
			<?php 
echo form_open_multipart('user/edit/picture/profile', array('class' => 'ajax-upload', 'data-uploadconfig' => 'profileImage'));
?>
				<?php 
echo form_input($change_picture['profile']['upload']);
?>
				<?php 
echo form_input($change_picture['profile']['submit']);
?>
				<?php 
">Comments</a></li><?php 
    if ($user_edit_others || $user_may_release) {
        ?>
<li><a href="<?php 
        echo site_url('blog/edit/' . $entry['id']);
        ?>
">Edit post</a></li><?php 
    }
    ?>
	</ul>
	<div class="spotlight">
		<a href="<?php 
    echo site_url('user/' . $entry['user_id']);
    ?>
"><div class="avatar" style="background-image:url(<?php 
    echo avatar_image($entry['user_id']);
    ?>
);"></div><?php 
    echo showname($creator);
    ?>
		<br /><span class="date"><?php 
    echo dt($entry['timestamp']);
    ?>
</span></a>
		
		<div class="spotlight-rating"><?php 
    echo $ratings[$i]->display_medium();
    ?>
</div>
		
		<em><?php 
    echo form_close();
    ?>
					</div>
					<div class="login-link">
						<a href="<?php 
    echo site_url('user/login');
    ?>
">Login</a>
					</div>
				</div>
			<?php 
} else {
    ?>
			<div class="user-showcase">
				<a href="#users-nav"><span class="avatar" style="background-image:url(<?php 
    echo avatar_image($user['id']);
    ?>
);"></span></a>
			</div>
			<?php 
}
?>
			<div class="clear"></div>
		</div>
		<a class="opener" href="#top-main-menu">&#9776; Menu</a>
		<a class="closer" href="#closer">&#9776; Close</a>
	</header>
	<div id="search-window">
		<a href="#" class="close-background"></a>
		<div class="centered content">
			<div class="search">
echo form_open_multipart('user/edit/' . $edit_user->id . '/background_picture', array('class' => 'ajax-upload'));
?>
<!--
			--><?php 
echo form_input($change_picture['background']['delete']);
?>
<!--
		--><?php 
echo form_close();
?>
<!--
	--></div>
	<div class="left-bar prevent-eyecatcher">
		<div id="profile_picture">
			<div class="picture" style="background-image:url(<?php 
echo avatar_image($edit_user->id);
?>
);"></div>
		</div>
		<div id="change_profile_picture">
			<?php 
echo form_open_multipart('user/edit/' . $edit_user->id . '/profile_picture', array('class' => 'ajax-upload'));
?>
				<?php 
echo form_input($change_picture['profile']['delete']);
?>
			<?php 
echo form_close();
?>
		</div>
		<a href="<?php 
    function display_comments($comments, $module, $user, $is_answer = false, $offset)
    {
        if (isset($_GET['answer']) && isint($_GET['answer'])) {
            $answer = $_GET['answer'];
        } else {
            $answer = 0;
        }
        foreach ($comments as $c) {
            ?>
		<div class="comment<?php 
            echo $is_answer ? ' answer' : '';
            ?>
" id="comment-<?php 
            echo $c->id;
            ?>
">
			<?php 
            echo $is_answer ? '<a href="#comment-' . $c->id . '" class="fa fa-caret-right expander"></a>' : '';
            ?>
			<div class="comment-text">
				<a href="<?php 
            echo site_url('user/' . $c->creator->id);
            ?>
"><?php 
            echo showname($c->creator);
            ?>
</a>
				<span class="text"><?php 
            echo htmlentities($c->comment);
            ?>
</span>
			</div>
			<div class="comment-actions">
				<?php 
            echo dt_tm($c->date);
            ?>
 
				<?php 
            if ($answer != $c->id) {
                ?>
					<a href="?answer=<?php 
                echo $c->id;
                ?>
#comment-<?php 
                echo $c->id;
                ?>
" data-comment-answer="<?php 
                echo $c->id;
                ?>
">Answer</a>
				<?php 
            }
            ?>
				<?php 
            if (!isset($c->answers) && $c->count_answers > 0) {
                ?>
					 <a href="?answers=<?php 
                echo $c->id;
                ?>
#comment-<?php 
                echo $c->id;
                ?>
" data-comment-answers="true" data-comment-reference="<?php 
                echo $c->id;
                ?>
" data-comment-action="next">Show answers (<?php 
                echo $c->count_answers;
                ?>
)</a>
				<?php 
            }
            ?>
				
				<?php 
            echo $c->ratings->display_small('comment-' . $c->id);
            ?>
			</div>
			<a class="user-image" href="<?php 
            echo site_url('user/' . $c->creator->id);
            ?>
"><img src="<?php 
            echo avatar_image($c->creator->id);
            ?>
" class="avatar" /></a>
			<?php 
            echo '';
            ?>
			<?php 
            if (isset($c->answers)) {
                $is_this_answer_post = isset($_GET['answers']) && $_GET['answers'] == $c->id;
                if ($is_this_answer_post && $offset > 0) {
                    ?>
					<a class="show-answers-button" data-comment-reference="<?php 
                    echo $c->id;
                    ?>
" data-comment-action="previous" href="?answers=<?php 
                    echo $c->id;
                    ?>
&end=<?php 
                    echo $_GET['end'] > 30 ? $_GET['end'] - 30 : 0;
                    ?>
">Show <?php 
                    echo $offset > 30 ? 30 : $offset;
                    ?>
 previous answers.</a>
					<?php 
                }
                display_comments($c->answers, $module, $user, true, $offset);
                $remaining_answers = $c->count_answers - count($c->answers);
                if ($is_this_answer_post) {
                    $remaining_answers -= $offset;
                }
                if ($remaining_answers > 0) {
                    $next_answers = isset($_GET['end']) && $is_this_answer_post && isint($_GET['end']) ? $_GET['end'] + 30 : 30;
                    ?>
					<a class="show-answers-button" data-comment-reference="<?php 
                    echo end($c->answers)->id;
                    ?>
" data-comment-action="next" href="?answers=<?php 
                    echo $c->id;
                    ?>
&end=<?php 
                    echo $next_answers;
                    ?>
">Show <?php 
                    echo $remaining_answers > 30 ? 30 : $remaining_answers;
                    ?>
 more answers.</a>
					<?php 
                }
            }
            ?>
			<?php 
            if ($answer == $c->id) {
                ?>
				<?php 
                echo form_open(uri_string() . '?answers=' . $c->id . '#comment-' . $c->id, array('class' => 'create-answer'));
                ?>
					<?php 
                echo form_hidden('duplicate-preventer', uniqid());
                ?>
					<?php 
                echo form_hidden('comment-answer-to', $c->id);
                ?>
					<div class="comments-wrapper">
						<textarea name="comment" placeholder="<?php 
                echo $user ? 'Your comment...' : 'You have to log in or create an account to comment.';
                ?>
"<?php 
                echo $user ? 'autofocus' : ' disabled="disabled"';
                ?>
></textarea>
					</div>
					<?php 
                $submit_data = array('type' => 'submit', 'name' => 'comments-submit', 'value' => 'Submit comment');
                if (!$user) {
                    $submit_data['disabled'] = 'disabled';
                }
                ?>
					<?php 
                echo form_input($submit_data);
                ?>
				<?php 
                echo form_close();
                ?>
			<?php 
            }
            ?>
		</div>
		<?php 
        }
    }
if ($user_edit_others || $user_may_release) {
    ?>
	<ul class="vertical-nav">
	<li><a href="<?php 
    echo site_url('blog/edit/' . $entry->id);
    ?>
">Edit post</a></li>
	</ul><?php 
}
?>
	<div class="spotlight">
		<a href="<?php 
echo site_url('user/' . $creator->id);
?>
"><div class="avatar" style="background-image:url(<?php 
echo avatar_image($creator->id);
?>
);"></div><?php 
echo showname($creator);
?>
		<br /><span class="date" title="<?php 
echo tm($entry->timestamp, true);
?>
"><?php 
echo dt($entry->timestamp);
?>
</span></a>
		<em><?php 
echo d($creator->about);
?>
</em>