dreamjob/app/View/Elements/job_company_item.ctp

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-03-31 14:49:03 +02:00
<?php
/*
*
*/
$avatar = false;
$url = '';
if($company['AppUser']['avatar']){
$url = $MEDIA.DS.$company['AppUser']['avatar'];
$avatar = true;
}
?>
<div class="openingitem">
<h3><?=$company['AppUser']['nickname'];?></h3>
<div>
<?php if($avatar){ ?>
<div class="icon">
<div>
<img src="<?=$url;?>"/>
</div>
</div>
<?php
}else{
?>
<div class="noicon-title">
<span><?=$company['AppUser']['nickname'];?></span>
</div>
<?php } ?>
<div class="left">
<span><?=__("dreamjob.branch");?>: <?=$company['DreamjobListBranch']['name'];?></span>
<span><?=__("dreamjob.city");?>: <?=$company['DreamjobListCity']['name'];?></span>
</div>
<div class="right">
<div class="btn-group-vertical">
<?=$this->Html->link(__('dreamjob.company.detail'),array('controller'=>'user', 'action'=>'profil', 'id'=> $company['AppUser']['id']),array("class" => "btn btn-default"));?>
</div>
</div>
</div>
</div>