dreamjob/app/View/Elements/user_worker_header.ctp

51 lines
1.5 KiB
PHP

<?php
/*
*
*/
?>
<div class="columns">
<div class="bar avatar">
<?php
$url='img/icon_user.png';
if($profil['AppUser']['take_systemwide'])
if($profil['User']['avatar'])
$url = $MEDIA.DS.$profil['User']['avatar'];
else
if($profil['AppUser']['avatar'])
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
?>
<img src="<?=$url;?>"/>
<?php if($edit): ?>
<div class="imgsubtitle edit">
<?php
$link = '<span class="glyphicon glyphicon-picture"></span>'.__('dreamjob.image.edit');
echo $this->Html->link($link,array('controller' => 'user', 'action' => 'avatar_upload'),array('data-target'=>'#popup','data-toggle'=>"modal",'title'=>__('dreamjob.image.edit'),"ref"=>"eventOff",'escape'=>false));
?>
</div>
<?php endif; ?>
</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>