<?php
/**
* #section-header for network/%network/profile/%user/%
*/
if (arg(2) == 'profile' && is_numeric(arg(3))) {
$profile = user_load(arg(3));
}
else {
return;
}
global $theme;
add_css(get_path('theme', $theme) . '/profile.css');
?>
<div class="profile-header">
<div class="vcard">
<div id="profile-picture" class="image">
<img class="photo" width="80" height="80" alt="<?php print $profile->name ?>" src="<?php print url($profile->picture) ?>">
</div>
<h1><span id="name"><?php print $profile->name ?></span></h1>
<p class="headline-title title">
<?php
$headline = array();
if (!empty($profile->title)) {
$headline[] = $profile->title;
}
if (!empty($profile->department)) {
$headline[] = $profile->department;
}
if (!empty($profile->location)) {
$headline[] = $profile->location;
}
?>
<?php print implode(', ', $headline) ?>
</p>
</div>
</div>