<?php

function envy_chimp_integrate_vc() {

	vc_map(

		array(
		  'name'         => __('EnvyChimp', 'envy-chimp'),
		  'description'  => __('This is envychimp form section', 'envy-chimp'),
		  'base'         => 'envy_chimp_vc_base',
		  'icon'         => 'fa fa-envelope',
		  'params'       => array(	
		    array(
				'param_name' => 'envy_form_title',
				'type'       => 'textfield',
				'heading'    => __('EnvyChimp Form Title', 'envy-chimp'),
				'value'      => __('EnvyChimp', 'envy-chimp')
			),
			array(
      			'param_name' => 'envy_form_type',
      			'type'       => 'dropdown',
      			'heading'    => 'Select form type',
      			'value'      => array(
      			    'Select'    => '',
      			  	'Subscribe' => 'select_subscribe',
      			  	'Login & Signup' => 'select_login_signup',
      			  	'Login' => 'select_login',
      			  	'Signup' => 'select_signup'
                )
      		),       
		)	 

	));	 	 
}

add_action('vc_before_init', 'envy_chimp_integrate_vc');

add_action('admin_head', 'vc_custom_css');

function vc_custom_css() {
  echo '<style>
    .fa-envelope {
        font-size: 25px !important;
        background: none !important;
    }
  </style>';
}
