Fix link to image on footer

This commit is contained in:
leogermani 2019-05-23 14:30:56 -03:00
parent 03173a26e4
commit aa3dad96a9
1 changed files with 9 additions and 1 deletions

View File

@ -38,7 +38,15 @@
</p>
</div>
<div class="col-auto pr-0 pr-md-3 d-none d-md-block align-self-md-top">
<img src="<?php if ( get_theme_mod( 'tainacan_footer_logo' ) ) { echo esc_attr( get_theme_mod( 'tainacan_footer_logo' ) ); }else{ echo esc_url( get_template_directory_uri() ); ?>/assets/images/logo-footer.svg<?php }?> ?>" class="tainacan-footer-info--logo" >
<?php
if ( get_theme_mod( 'tainacan_footer_logo' ) ) {
$footerImage = esc_attr( get_theme_mod( 'tainacan_footer_logo' ) );
} else {
$footerImage = esc_url( get_template_directory_uri() ) . '/assets/images/logo-footer.svg';
}
?>
<img src="<?php echo $footerImage; ?>" class="tainacan-footer-info--logo" >
</div>
<div class="col-12 tainacan-powered">
<span>