<?php 
/**
 * NewsLetter
 */
defined( 'ABSPATH' ) || exit; // Exit if accessed directly ?>

<div id="newsletter" class="kanews-section-box">
  <div class="kanews-newsletter">
  <div class="row align-items-center">
    
    <?php if(kanews_get_option('newsletter-content')): ?>
      <div class="col"><?php echo kanews_get_option('newsletter-content'); ?></div>
    <?php endif; ?>
    
    <?php if( $mailchimp = kanews_get_option( 'newsletter-mailchimp' ) ) : ?>

      <form action="<?php echo esc_attr( $mailchimp ) ?>" method="post" name="mc-embedded-subscribe-form" class="col" target="_blank" novalidate>
        <div class="kanews-form2">
          <input type="email" value="" id="mce-EMAIL" name="EMAIL" placeholder="<?php esc_html_e( 'E-Posta Adresiniz', 'kanews' ); ?>" required>
          <button type="submit" name="subscribe" class="kanews-btn kanews-btn-block mb-0 mt-0"><?php esc_attr_e( 'Abone Ol', 'kanews' ); ?></button>
        </div>
        
      </form>
 
    <?php endif; ?>
    
  </div>
  </div>
</div>