company profil umstellung #89

This commit is contained in:
Geno 2015-01-18 17:56:28 +01:00
parent 07b8487bf5
commit f4fd3dbd40
3 changed files with 55 additions and 90 deletions

View File

@ -3,7 +3,7 @@
* *
*/ */
if($isLoggedin){ if(!empty($isLoggedin)){
?> ?>

View File

@ -5,12 +5,11 @@
$avatar = false; $avatar = false;
if($profil['AppUser']['avatar']) if($profil['AppUser']['avatar'])
$avatar = true; $avatar = true;
?> ?>
<div class="box-extra"> <div class="box company-header">
<?php if($avatar or $edit){ ?> <?php if($avatar or $edit){ ?>
<div class="box-extra-left infofield"> <div class="logo">
<div class="box"> <i>
<?php <?php
$url = $MEDIA.DS.$profil['AppUser']['avatar']; $url = $MEDIA.DS.$profil['AppUser']['avatar'];
if($edit and !isset($url)) if($edit and !isset($url))
@ -25,29 +24,14 @@
?> ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</i>
</div> </div>
<?php if(!empty($profil['DreamjobCompany']['website'])){?>
<p>
<?=__("dreamjob.website");?><br/>
<a href="<?=$profil['DreamjobCompany']['website'];?>" rel="external" target="_blank">
<?=$profil['DreamjobCompany']['website'];?>
</a>
</p>
<?php } ?> <?php } ?>
<p>
<?=__("dreamjob.mail");?><br/>
<a href="mailto:<?=$profil['User']['mail'];?>">
<?=__('dreamjob.mail.contact');?>
</a>
</p>
<br/>
</div>
<?php } ?>
<div class="box">
<h1><?=$profil['AppUser']['nickname'];?></h1> <h1><?=$profil['AppUser']['nickname'];?></h1>
<div class="columns"> <div class="columns">
<?php if(!$avatar and !$edit){ ?>
<div class="bar"> <div class="bar">
<?php if(!empty($profil['DreamjobCompany']['website'])){?> <?php if(!empty($profil['DreamjobCompany']['website'])){?>
<p> <p>
@ -59,12 +43,9 @@
<?php } ?> <?php } ?>
<p> <p>
<?=__("dreamjob.mail");?><br/> <?=__("dreamjob.mail");?><br/>
<a href="mailto:<?=$profil['User']['mail'];?>"> <a href="mailto:<?=$profil['User']['mail'];?>"><?=__('dreamjob.mail.contact');?></a>
<?=__('dreamjob.mail.contact');?>
</a>
</p> </p>
</div> </div>
<?php } ?>
<div class="bar"> <div class="bar">
<p> <p>
<?=__("dreamjob.owner");?>:<br/> <?=__("dreamjob.owner");?>:<br/>
@ -82,7 +63,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php <?php
/* /*
<div style="height:50px;"> <div style="height:50px;">

View File

@ -251,34 +251,19 @@ body.loading #container{
/* /*
* Extra * Extra
*/ */
.box-extra{ .company-header .logo{
display:table;
margin-bottom: 15px;
}
.box-extra-left{
display:table-cell;
width:290px;
min-height: 270px;
float:left; float:left;
} }
.box-extra-left > .box{ .company-header .logo+h1{
width:250px; display:inline-block;
height: 250px; margin-left:30px;
padding: 10px; margin-top:55px;
vertical-align: middle;
display:table-cell;
} }
.box-extra-left > .box > img{ .company-header .imgsubtitle.edit{
max-height: 250px; width:150px;
max-width: 250px; margin-top:0px;
} }
.box-extra-left+.box{
display:table-cell;
width: 100%;
min-height: 250px;
vertical-align: top;
}
.opening-header h1 > span{ .opening-header h1 > span{
display:table-cell; display:table-cell;
vertical-align:middle; vertical-align:middle;
@ -298,7 +283,7 @@ body.loading #container{
min-height:120px; min-height:120px;
min-width:100%; min-width:100%;
} }
.opening-header .logo i{ .opening-header .logo i,.company-header .logo i{
width:150px; width:150px;
height:150px; height:150px;
vertical-align:middle; vertical-align:middle;