<?php
/**
 * Newsletter Tab
 * ==============
 *
 * @since 4.8.2
 */
if( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly

global $avia_config, $avia_pages, $avia_elements;



$avia_elements[] = array(
			'slug'		=> 'newsletter',
			'name'		=> 	__( 'Newsletter Via Mailchimp', 'avia_framework' ),
			'desc'		=> __( 'To use newsletter features, create a Mailchimp account and enter your API key below.', 'avia_framework' ) . "<br/><br/><a href='https://admin.mailchimp.com/account/api' target='_blank' rel='noopener noreferrer'>" . __( 'You can find your API key here', 'avia_framework' ) . '</a>',
			'type'		=> 'heading',
			'std'		=> '',
			'nodescription'	=> true
		);

$avia_elements[] =	array(
			'slug'		=> 'newsletter',
			'name'		=> __( 'Enter A Valid Mailchimp API Key To Use All Newsletter Related Theme Functions', 'avia_framework' ),
			'desc'		=> false,
			'id'		=> 'mailchimp_api',
			'type'		=> 'verification_field',
			'std'		=> '',
			'help'		=> '',
			'ajax'		=> 'av_mailchimp_check_ajax',
			'button-label'		=> __( 'Check API Key', 'avia_framework' ),
			'button-relabel'	=> __( 'Check Key again & renew Lists', 'avia_framework' )
		);

$avia_elements[] = array(
			'slug'      => 'newsletter',
			'name'      => __( 'Last verified key - hidden - used for internal use only', 'avia_framework' ),
			'desc'      => '',
			'id'        => 'mailchimp_verified_key',
			'type'      => 'hidden',
			'std'       => '',
		);

