XylotrechusZ
<?php if( function_exists( 'dustrial_framework_init' ) ) {
$newsletter_shortcode = dustrial_get_option('footer_newsletter_shortcode');
if( !empty( $newsletter_shortcode ) ) {
?>
<!-- Subscription Section -->
<div class="subscription">
<div class="container">
<div class="row align-items-center d-flex">
<?php
$bg_img_id = dustrial_get_option( 'footer_logo' );
if( !empty( $bg_img_id ) ) {
$attachment = wp_get_attachment_image_src( $bg_img_id, 'full' );
$bg_img = ($attachment) ? $attachment[0] : $bg_img_id;
} else {
$bg_img = DUSTRIAL_IMG . 'logo-2.png';
}
?>
<div class="col-lg-3">
<div class="block mb-4 mb-md-0">
<a href="<?php echo esc_url( home_url('/') ); ?>">
<img src="<?php echo esc_url( $bg_img ); ?>" alt="<?php esc_attr_e( 'Newsletter Logo', 'dustrial' ); ?>">
</a>
</div>
</div>
<div class="col-lg-9">
<div class="block">
<?php echo do_shortcode($newsletter_shortcode); ?>
</div>
</div>
</div>
</div>
</div>
<!-- End Subscription Section -->
<?php } ?>
<?php } ?>