<?php 
$dm_login_temp_aligment = 'center';
$dm_login_temp_wid = 573;
$dm_login_temp_border_width = 0;
$dm_login_temp_border_radius = 0;
$dm_login_temp_border_color = '#fff';
$dm_login_temp_background_color = '#fff';
$dm_login_temp_border_style = 'none';
$dm_login_temp_img_show = 'yes';
$dap_member_login_image_height = 258;
$dm_login_temp_captcha = 'no';



$dm_login_temp_addit_create_account_link = 'yes';
$dm_login_temp_addit_width = 352;
$dm_login_temp_addit_border_width = 0; 
$dm_login_temp_addit_border_radius = 0;
$dm_login_temp_addit_background_color = '#f05b41';

$dm_login_temp_addit_border_color = '#fff';
$dm_login_temp_addit_style = 'none';



$dm_login_temp_signin_width = 352;
$dm_login_temp_signin_height = 48;
$dm_login_temp_signin_border_width = 0;
$dm_login_temp_signin_radius = 3;

$dm_login_temp_signin_background_color = '#4787fd';
$dm_login_temp_signin_border_color = '#fff';
$dm_login_temp_signin_border_style = 'none';


$dm_login_temp_shadow_horizontal_length = 0;
$dm_login_temp_shadow_vertical_length = 0;
$dm_login_temp_shadow_blur_radius = 18;
$dm_login_temp_shadow_spread_radius = 4;
$dm_login_temp_shadow_color =  '#999';


$dm_login_temp_forgot_width = 300;
$dm_login_temp_forgot_height = 50;
$dm_login_temp_forgot_background_color = "#4787fd";
$dm_login_temp_forgot_border_width = 0;
$dm_login_temp_forgot_border_style = 'none';
$dm_login_temp_forgot_border_color = "#4787fd";
$dm_login_temp_frogot_radius = 0;

// ===================
$dm_login_temp_reset_width = 300;
$dm_login_temp_reset_height = 50;
$dm_login_temp_reset_background_color = "#4787fd";
$dm_login_temp_reset_border_width = 0;
$dm_login_temp_reset_border_style = 'none';
$dm_login_temp_reset_border_color = "#4787fd";
$dm_login_temp_reset_radius = 0;


$default_numaric_values = array(	
    'dm_login_temp_forgot_width' => $dm_login_temp_forgot_width,
    'dm_login_temp_forgot_height' => $dm_login_temp_forgot_height,
    'dm_login_temp_forgot_border_width' => $dm_login_temp_forgot_border_width,
    'dm_login_temp_frogot_radius' => $dm_login_temp_frogot_radius,
    'dm_login_temp_reset_width' => $dm_login_temp_reset_width,
    'dm_login_temp_reset_height' => $dm_login_temp_reset_height,
    'dm_login_temp_reset_border_width' => $dm_login_temp_reset_border_width,
    'dm_login_temp_reset_radius' => $dm_login_temp_reset_radius,
	'dm_login_temp_wid' => $dm_login_temp_wid,
	'dm_login_temp_border_width' => $dm_login_temp_border_width,
	'dm_login_temp_border_radius' => $dm_login_temp_border_radius,
	'dm_login_temp_addit_width' => $dm_login_temp_addit_width,
	'dm_login_temp_addit_border_width' => $dm_login_temp_addit_border_width,
	'dm_login_temp_addit_border_radius' => $dm_login_temp_addit_border_radius,
	'dm_login_temp_signin_width' => $dm_login_temp_signin_width,
	'dm_login_temp_signin_height' => $dm_login_temp_signin_height,
	'dm_login_temp_signin_border_width' => $dm_login_temp_signin_border_width,
	'dm_login_temp_signin_radius' => $dm_login_temp_signin_radius,
	'dap_member_login_image_height' => $dap_member_login_image_height,
	'dm_login_temp_shadow_horizontal_length' => $dm_login_temp_shadow_horizontal_length,
	'dm_login_temp_shadow_vertical_length' => $dm_login_temp_shadow_vertical_length,
	'dm_login_temp_shadow_blur_radius' => $dm_login_temp_shadow_blur_radius,
	'dm_login_temp_shadow_spread_radius' => $dm_login_temp_shadow_spread_radius,
);


$default_style_values = array(	
	'dm_login_temp_forgot_border_style' => $dm_login_temp_forgot_border_style,
	'dm_login_temp_forgot_border_color' => $dm_login_temp_forgot_border_color,
	'dm_login_temp_reset_border_style' => $dm_login_temp_reset_border_style,
	'dm_login_temp_border_style' => $dm_login_temp_border_style,
	'dm_login_temp_img_show' => $dm_login_temp_img_show,
	'dm_login_temp_addit_create_account_link' => $dm_login_temp_addit_create_account_link,
	'dm_login_temp_addit_style' => $dm_login_temp_addit_style,
	'dm_login_temp_signin_border_style' => $dm_login_temp_signin_border_style,
	'dm_login_temp_captcha' => $dm_login_temp_captcha,
	'dm_login_temp_aligment' => $dm_login_temp_aligment
);

$default_colorpicker_values = array(
	 'dm_login_temp_forgot_background_color' => $dm_login_temp_forgot_background_color,
	 'dm_login_temp_border_color' => $dm_login_temp_border_color,
	 'dm_login_temp_reset_background_color' => $dm_login_temp_reset_background_color,
	 'dm_login_temp_reset_border_color' => $dm_login_temp_reset_border_color,
	 'dm_login_temp_background_color' => $dm_login_temp_background_color,
	 'dm_login_temp_addit_background_color' => $dm_login_temp_addit_background_color,
     'dm_login_temp_addit_border_color' => $dm_login_temp_addit_border_color,
     'dm_login_temp_signin_background_color' => $dm_login_temp_signin_background_color,
     'dm_login_temp_signin_border_color' => $dm_login_temp_signin_border_color,
     'dm_login_temp_shadow_color' => $dm_login_temp_shadow_color,
);

 $html  =  '<div id="login_template_wrapper" class="dap_login_template1">';
 $html .=  '<div class="login_outer">';
 $html .=  '<div class="login_img">';
 $html .= '<img src="'.plugin_dir_url(__FILE__).'images/cup-of-coffee.jpg" width="100%">';
 $html .= '</div>';
 $html .= '<div class="login_field">';
 $html .= '<div class="dap_member_tiny_editor"><h1 >Member Login</h1></div>';
 $html .= '<div class="error_message_div" style="display:%%BACKENDDISPLAY%%"><div class="dap_member_tiny_editor"><p class=" additional_info">All error messages will be displayed here (click to style)</p></div></div>';
 $html .= '<form id="dap_login">';
 $html .= '<div class="form-group">';
 $html .= '<label class="dap_member_tiny_editor">Email address</label>';
 $html .= '<input type="email" name = "email" class="form-control dap_login_email"  placeholder="Enter email address" data-lpignore="true">';
 $html .= '</div>';
 $html .= '<div class="form-group">';
 $html .= '<label  class="dap_member_tiny_editor">Password</label>';
 $html .= '<input type="text" class="form-control dap_login_pass" name="password"  placeholder="Password" data-lpignore="true">';
 
 $html .= '</div>'; 
 $html .= '<input type="hidden" name="submitted" value="Y">';
 $html .= '<input type="hidden" name="request" id="login_request_url" value="">';
 $html .= '<input type="hidden" name="forgot"  value="N">';  
 $html .= '<input type="hidden" name="captchaval"  value="%%CAPTCHAVAL%%">';   
 
 $html .= '<div class="form-group captcha_wrapper_outer">';
 $html .= '<div class="captcha_wrapper">';
 $html .= '<div class="frontend_captcha g-recaptcha"  data-sitekey="%%GOOGLESITEKEY%%"  style="display:%%CAPTCHAFRONTEND%%"></div>';
 $html .= '<div class="backend_captcha" style="display:%%BACKENDDISPLAY%%"><img src="'.plugin_dir_url(__FILE__).'images/captcha.jpg" class="captcha_img" ></div>';
 $html .= '</div>';
 $html .= '</div>'; 
 
 $html .= '<div class="form-group align-items-center d-flex">';
 $html .= '<input type="checkbox" class="dap_login_remember" name="rememberMe" value="rememberMe">';
 $html .= '<span class="dap_member_tiny_editor">Remember Me</span>';
 $html .= '</div>';

 $html .= '<div class="signin_btn_outer dap_member_tiny_editor"><span  class="btn btn-primary  signin_btn">Login Here</span></div>';
 $html .= '<div class="create_forgot_link"><a href="#" class="create_account dap_member_tiny_editor">Need an Account?</a> <a href="javascript:void(0)" class="forgot_password dap_member_tiny_editor">Forgot Password?</a></div>';
 $html .= '</form>';
 $html .= '</div>';
 $html .= '</div>';
 $html .= '</div>';
 
 

 
 $html_forgot_pass  =  '<div id="login_template_wrapper" class="dap_login_template7">';
 $html_forgot_pass .=  '<div id="forgot_outer">';
 $html_forgot_pass .= '<div class="forgot_field">';
 $html_forgot_pass .= '<div class="forgot_outer_main_heading dap_member_tiny_editor"><h1 >Forgot Your Password?</h1></div>';

 $html_forgot_pass .= '<div class="dap_member_tiny_editor forgot_outer_sub_heading"><p>';
 $html_forgot_pass .= 'Enter your email address below <br> and we will send you a link to reset your password.';
 $html_forgot_pass .= '</p></div>';
 $html_forgot_pass .= '<form id="dap_forgot">';
 $html_forgot_pass .= '<div class="form-group">';
 
 $html_forgot_pass .= '<input type="email" class="form-control dap_forgot_email"   placeholder="Enter email address" data-lpignore="true">';
 $html_forgot_pass .= '</div>';
 $html_forgot_pass .= '<div class="forgot_btn_outer dap_member_tiny_editor"><span  class="btn btn-primary  forgot_btn">Forgot Password</span></div>';
 $html_forgot_pass .= '</form>';
 $html_forgot_pass .= '</div>';
 $html_forgot_pass .= '</div>';
 $html_forgot_pass .= '</div>';
 
 
 
 
 $html_reset_pass  =  '<div id="login_template_wrapper" class="dap_login_template7">';
 $html_reset_pass .=  '<div id="reset_outer">';
 $html_reset_pass .= '<div class="reset_field">';
 $html_reset_pass .= '<div class="dap_member_tiny_editor"><h1 >Reset Your Password</h1></div>';
 $html_reset_pass .= '<form id="dap_reset">';
 $html_reset_pass .= '<div class="form-group">';
 
 $html_reset_pass .= '<input type="text" class="form-control dap_reset_pass"   placeholder="Enter New Password" data-lpignore="true">';
 $html_reset_pass .= '</div>';
 $html_reset_pass .= '<div class="form-group">';
 
 $html_reset_pass .= '<input type="text" class="form-control dap_reset_re_pass"   placeholder="Re Enter Password" data-lpignore="true">';
 $html_reset_pass .= '</div>';
 $html_reset_pass .= '<div class="reset_pass_btn_outer dap_member_tiny_editor"><span  class="btn btn-primary  reset_pass_btn">Reset Password</span></div>';
 $html_reset_pass .= '</form>';
 $html_reset_pass .= '</div>';
 $html_reset_pass .= '</div>';
 $html_reset_pass .= '</div>';
 

$css_file_path = dap_member_path."includes/templates/login/template1/style.css?".rand(1,1000);

if(!isset($_SESSION['return_data'])){
	echo json_encode(array('html'=>$html,'css_file_path'=>$css_file_path,'default_numaric_values'=>$default_numaric_values,'default_style_values'=>$default_style_values,'default_colorpicker_values'=>$default_colorpicker_values,'html_reset_pass'=>$html_reset_pass,'html_forgot_pass'=>$html_forgot_pass));
	die;
}

