dreamjob/app/View/Elements/user_worker_header.ctp

44 lines
1.2 KiB
PHP

<?php
/*
*
*/
?>
<div class="columns">
<div class="bar avatar">
<img src="<?php
if($profil['AppUser']['take_systemwide'])
if($profil['User']['avatar'])
echo $MEDIA_URL.$profil['User']['avatar'];
else
echo $STATIC_URL."img/icon_user.png";
else
if($profil['AppUser']['avatar'])
echo $MEDIA_URL.$profil['AppUser']['avatar'];
else
echo $STATIC_URL."img/icon_user.png";
?>"/>
</div>
<div class="bar">
<h1>
<?php
if($profil['AppUser']['take_systemwide'])
echo $profil['User']['first_name'].' '.$profil['User']['last_name'];
else
echo $profil['AppUser']['first_name'].' '.$profil['AppUser']['last_name'];
?>
</h1>
<br/>
<p>
<?=__("dreamjob.iam");?>:<br/>
<?=$profil['DreamjobWorker']['iam'];?>
<c:out value="${profil.iam}"/>
</p>
<?php if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0){ ?>
<h3><?=__("dreamjob.mail");?></h3>
<a href="mailto:<?=$profil['User']['mail'];?>">
<?=$profil['User']['mail'];?>
</a>
<?php } ?>
</div>
</div>