1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

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; line-height: 25px;
} }
.subfooterText { .subfooterText {
color: @blackish; color: @greyText;
font-size: 13px; font-size: 13px;
line-height: 14px; line-height: 14px;
} }

View File

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

View File

@ -5,10 +5,12 @@
* @package ascribe * @package ascribe
* @since 0.1.0 * @since 0.1.0
*/ */
$year = date("Y");
$address = get_field('address','option'); $year = date("Y");
$email = get_field('email','option'); $address = get_field('address', 'option');
$consultLink= get_field('request_consultation_link','option'); $email = get_field('email', 'option');
$consultLink = get_field('request_consultation_link', 'option');
$euLink = get_field('eu_logo_link', 'option');
$themeUrl = WPTHEME_TEMPLATE_URL . '/'; $themeUrl = WPTHEME_TEMPLATE_URL . '/';
@ -186,7 +188,13 @@ if ($twitter) {
<div class="row"> <div class="row">
<div class="footer__eu"> <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>
<div class="footer__copyright"><?php echo $year; ?> © ascribe GmbH</div> <div class="footer__copyright"><?php echo $year; ?> © ascribe GmbH</div>
@ -207,7 +215,7 @@ if ($twitter) {
</div> </div>
</section> </section>
<footer> </footer>
</div> </div>