link EU image when link is present

This commit is contained in:
Matthias Kretschmann 2016-01-14 22:47:43 +01:00
parent 81aaf69cbe
commit 130b1f67f2
5 changed files with 30 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -204,7 +204,7 @@ a {
line-height: 25px;
}
.subfooterText {
color: @blackish;
color: @greyText;
font-size: 13px;
line-height: 14px;
}

View File

@ -72,7 +72,7 @@
//
.footer__bottom {
.subfooterText;
padding: @spacer 0;
padding: (@spacer / 2) 15px;
.menu {
margin-bottom: (@spacer/2);
@ -115,14 +115,23 @@
li { display: inline-block; }
}
.footer__social,
.footer__copyright,
.footer__bottom .menu {
@media (@screen-sm) {
margin-top: 10px
}
}
.footer__eu {
width: 150px;
height: auto;
margin: 0 auto (@spacer/2) auto;
@media (@screen-sm) {
float: left;
margin: -15px 10px 0 0;
margin: 0 10px 0 0;
}
}

View File

@ -5,10 +5,12 @@
* @package ascribe
* @since 0.1.0
*/
$year = date("Y");
$address = get_field('address','option');
$email = get_field('email','option');
$consultLink= get_field('request_consultation_link','option');
$year = date("Y");
$address = get_field('address', 'option');
$email = get_field('email', 'option');
$consultLink = get_field('request_consultation_link', 'option');
$euLink = get_field('eu_logo_link', 'option');
$themeUrl = WPTHEME_TEMPLATE_URL . '/';
@ -186,7 +188,13 @@ if ($twitter) {
<div class="row">
<div class="footer__eu">
<img width="150" src="https://www.ascribe.io/wp-content/uploads/2015/11/eu-dev-fund.png" />
<?php if ($euLink) { ?>
<a href="<?php echo $euLink ?>">
<img width="150" src="https://www.ascribe.io/wp-content/uploads/2015/11/eu-dev-fund.png" />
</a>
<?php } else { ?>
<img width="150" src="https://www.ascribe.io/wp-content/uploads/2015/11/eu-dev-fund.png" />
<?php } ?>
</div>
<div class="footer__copyright"><?php echo $year; ?> © ascribe GmbH</div>
@ -207,7 +215,7 @@ if ($twitter) {
</div>
</section>
<footer>
</footer>
</div>