.elementor-kit-47{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#2A5FB7;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-47 button,.elementor-kit-47 input[type="button"],.elementor-kit-47 input[type="submit"],.elementor-kit-47 .elementor-button{background-color:var( --e-global-color-97b11ea );}.elementor-kit-47 button:hover,.elementor-kit-47 button:focus,.elementor-kit-47 input[type="button"]:hover,.elementor-kit-47 input[type="button"]:focus,.elementor-kit-47 input[type="submit"]:hover,.elementor-kit-47 input[type="submit"]:focus,.elementor-kit-47 .elementor-button:hover,.elementor-kit-47 .elementor-button:focus{background-color:var( --e-global-color-78c01a3 );}.elementor-kit-47 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1500px;}.e-con{--container-max-width:1500px;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//*
   Template Name: [PAGE - ADD LISTING]
    
   * Theme: PREMIUMPRESS CORE FRAMEWORK FILE
   * Url: www.premiumpress.com
   * Author: Mark Fail
   *
   * THIS FILE WILL BE UPDATED WITH EVERY UPDATE
   * IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
   *
   * http://codex.wordpress.org/Child_Themes
   */
   if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }
   
   global $CORE, $userdata, $CORE;  
 
$GLOBALS['flag-add'] = 1;

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

if(_ppt(array('captcha','enable')) == 1 && _ppt('captcha','sitekey') != ""){
 wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js' );
}

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

if($GLOBALS['accounttype']['key'] == "visitor" && $GLOBALS['accounttype']['can_add'] == "0"){
$CORE->Authorize();
}

get_header();   
 
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

$canContinue = 1;
 
 
if( !isset($_GET['eid']) && isset($GLOBALS['accounttype']) && $GLOBALS['accounttype']['can_add'] == "0" && !$CORE->USER("membership_hasaccess", "listings_multiple") ){

	$canContinue = 0;
	_ppt_template( 'forms/add-listing-noaccess' );	 
}
 
if( !isset($_GET['eid']) && isset($GLOBALS['accounttype']) && $GLOBALS['accounttype']['can_add_multiple'] == "0" && $userdata->ID ){  	
 
	if(in_array(THEME_KEY, array("da")) || $CORE->USER("count_listings_all", $userdata->ID) > 0 && !$CORE->USER("membership_hasaccess", "listings_multiple")){
	
	$canContinue = 0;
	_ppt_template( 'forms/add-listing-noaccess-multiple' );
	
	}

}

if($canContinue){
	_ppt_template('forms/add-listing' );
}


///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

get_footer();  ?>/* End custom CSS */