Beispiel #1
0
/**
 * Function is responsible for echoing the avatar
 * 
 * @param unknown_type $id_or_email
 * @param unknown_type $size
 * @param unknown_type $default
 * @param unknown_type $alt
 */
function avatar($id_or_email = null, $size = '150', $default = '', $alt = false)
{
    if (is_null($id_or_email)) {
        $id_or_email = FiveFactory::getUser();
    }
    echo get_avatar($id_or_email, $size, $default, $alt);
}
<?php

$user = FiveFactory::getUser();
?>
<div class="sidebar_profile_left" id="leftCol">
	<div id="pagelet_profile_picture">
		<div class="profile-picture">
			<span class="profile-picture-overlay"></span>
			<a class="edit_profilepicture" href="<?php 
echo Router::url(array('controller' => 'user', 'action' => 'social'));
?>
">
				Change Picture<span class="edit_profilepicture_icon"></span></a>
			<?php 
avatar();
?>
		</div>
	</div>


<div id="pagelet_fbx_navigation" data-referrer="pagelet_fbx_navigation">
<div id="sideNav" class="mvm profileSelf">
<div class="expandableSideNav expandedMode">
<div>
<ul class="uiSideNav" role="navigation">
	<li class="sideNavItem selectedItem">
		<a class="item" 
		href="<?php 
echo Router::url(array('controller' => 'user', 'action' => 'profile'));
?>
">