frontend_login(); $mtnc_ebody_class = ''; $mtnc_options = $wf_mtnc->get_options(); $mtnc_site_title = str_replace('%sitetagline%', get_bloginfo('description'), str_replace('%sitetitle%', get_bloginfo('name'), $mtnc_options['title'])); $mtnc_site_description = $mtnc_options['description']; $mtnc_theme_id = $mtnc_options['theme_global']; if(isset($_GET['maintenance-preview']) && strlen($_GET['maintenance-preview']) == 32 && array_key_exists($_GET['maintenance-preview'], $mtnc_options['themes'])){ //phpcs:ignore $mtnc_theme_id = esc_attr($_GET['maintenance-preview']); //phpcs:ignore } $mtnc_theme = $mtnc_options['themes'][$mtnc_theme_id]; if($mtnc_options['no_cache_headers']){ nocache_headers(); } if ($mtnc_options['blockse']) { $mtnc_protocol = 'HTTP/1.0'; if ($_SERVER['SERVER_PROTOCOL'] === 'HTTP/1.1') { //phpcs:ignore $mtnc_protocol = 'HTTP/1.1'; } header($mtnc_protocol . ' 503 Service Unavailable', true, 503); header('Retry-After: 3600'); } $mtnc_logo = (isset($mtnc_options['social_preview']) && !empty($mtnc_options['social_preview'])) ? esc_attr($mtnc_options['social_preview']) : null; $mtnc_logo_ext = null; if (!empty($mtnc_logo)) { $mtnc_logo_ext = pathinfo($mtnc_logo, PATHINFO_EXTENSION); $mtnc_logo_ext = str_replace('.', '', $mtnc_logo_ext); } if (!empty($mtnc_options['background_image'])) { $mtnc_body_bg = $mtnc_options['background_image']; } $mtnc_bunny_fonts = $wf_mtnc->add_bunny_fonts($mtnc_theme); if(!empty($mtnc_theme->body_font) && !in_array($mtnc_theme->body_font, array('Arial','Helvetica','Georgia','Times New Roman','Tahoma','Verdana','Geneva'))){ $mtnc_bunny_fonts[] = $mtnc_theme->body_font; } ?> > <?php echo esc_attr($mtnc_site_title); ?> '; //phpcs:ignore } echo ''; //phpcs:ignore echo ''; //phpcs:ignore echo ''; // all.css loading in index.php inline by 2 steps wp_register_style('mtnc-style', MTNC_URI . 'frontend/css/style.css', '', filemtime(MTNC_PATH . 'frontend/css/style.css')); $wp_styles->do_items('mtnc-style'); $mtnc_options_style = ''; if (!empty($mtnc_theme->background_color)) { $mtnc_background_color = esc_attr($mtnc_theme->background_color); $mtnc_options_style .= 'body {background-color: ' . $mtnc_background_color . '}'; $mtnc_options_style .= '.preloader {background-color: ' . $mtnc_background_color . '}'; } if (!empty($mtnc_options['analytics'])) { echo ""; } // Background cover if (!empty($mtnc_theme->background_image)) { $mtnc_options_style .= ' .mtnc-background-image{ background-image: url("' . esc_html($mtnc_theme->background_image) . '"); width: 110%; height: 110%; position: fixed; top: 0; left: 0; bottom: 0; right: 0; margin:-5%;'; if (!empty($mtnc_theme->background_size_opt)) { $mtnc_options_style .= 'background-size: ' . esc_html($mtnc_theme->background_size_opt) . ';'; } if (!empty($mtnc_theme->background_position)) { $mtnc_options_style .= 'background-position: ' . esc_html($mtnc_theme->background_position) . ';'; } $mtnc_options_style .= ' }' . "\r\n"; } if (!empty($mtnc_theme->background_blur) && $mtnc_theme->background_blur > 0) { $mtnc_options_style .= '.mtnc-background-image{'; $mtnc_options_style .= '-webkit-filter: blur(' . esc_html($mtnc_theme->background_blur) . 'px);'; $mtnc_options_style .= '-moz-filter: blur(' . esc_html($mtnc_theme->background_blur) . 'px);'; $mtnc_options_style .= '-o-filter: blur(' . esc_html($mtnc_theme->background_blur) . 'px);'; $mtnc_options_style .= '-ms-filter: blur(' . esc_html($mtnc_theme->background_blur) . 'px);'; $mtnc_options_style .= 'filter:blur(' . esc_html($mtnc_theme->background_blur) . 'px);'; $mtnc_options_style .= 'filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=' . esc_html($mtnc_theme->background_blur) . ', enabled=\'true\');'; $mtnc_options_style .= '}'; } if (!empty($mtnc_theme->body_font)) { $mtnc_options_style .= 'body {font-family: ' . esc_attr($mtnc_theme->body_font) . '; }'; } if (!empty($mtnc_theme->body_link_color)) { $mtnc_a_color = esc_attr($mtnc_theme->body_link_hover_color); $mtnc_options_style .= 'a, #login-form a.lost-pass, .maintenance a{color: ' . $mtnc_a_color . '; }'; $mtnc_options_style .= 'a:hover, .login-form a.lost-pass:hover, .maintenance a:hover{color: ' . $mtnc_a_color . '; }'; } if (!empty($mtnc_theme->body_font_color)) { $mtnc_font_color = esc_attr($mtnc_theme->body_font_color); $mtnc_options_style .= 'body, #login-form, .site-title, .preloader i, .login-form, .login-form a.lost-pass, .btn-open-login-form, .site-content, .user-content-wrapper, .user-content, footer{color: ' . $mtnc_font_color . ';} '; $mtnc_options_style .= 'a.close-user-content, #mailchimp-box form input[type="submit"], .login-form input#submit.button {border-color:' . $mtnc_font_color . '} '; $mtnc_options_style .= 'input[type="submit"]:hover{background-color:' . $mtnc_font_color . '} '; $mtnc_options_style .= 'input:-webkit-autofill, input:-webkit-autofill:focus{-webkit-text-fill-color:' . $mtnc_font_color . '} '; } if (!empty($mtnc_theme->login_background_color)) { $mtnc_login_background_color = esc_attr($mtnc_theme->login_background_color); $mtnc_options_style .= "body .login-form-container{background-color:{$mtnc_login_background_color}}"; $mtnc_options_style .= ".btn-open-login-form,.side-button{background-color:{$mtnc_login_background_color}}"; $mtnc_options_style .= "input:-webkit-autofill, input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 50px {$mtnc_login_background_color} inset}"; $mtnc_options_style .= "input[type='submit']:hover{color:{$mtnc_login_background_color}} "; $mtnc_options_style .= "#custom-subscribe #submit-subscribe:before{background-color:{$mtnc_login_background_color}} "; } if (!empty($mtnc_theme->custom_css)) { $mtnc_options_style .= wp_kses_stripslashes($mtnc_theme->custom_css); } if($mtnc_theme->content_overlay){ $mtnc_overlay_bg_color = esc_attr($mtnc_theme->content_overlay_color); $mtnc_options_style .= '.mtnc-overlay{background-color: ' . esc_attr($mtnc_theme->content_overlay_color) . ';}'; if(isset($mtnc_theme->content_overlay_shadow_color)) { $mtnc_options_style .= '.mtnc-overlay{box-shadow: 0 0 10px 0 ' . esc_attr($mtnc_theme->content_overlay_shadow_color) . ';}'; } $mtnc_options_style .= '.mtnc-overlay{max-width: ' . esc_attr($mtnc_theme->content_width) . 'px;}'; switch($mtnc_theme->content_position){ case 'left': $mtnc_options_style .= '.mtnc-overlay{margin: 80px auto auto 80px;}'; break; case 'right': $mtnc_options_style .= '.mtnc-overlay{margin: 80px 80px auto auto;}'; break; case 'center': $mtnc_options_style .= '.mtnc-overlay{margin: 80px auto auto auto;}'; break; case 'middle': $mtnc_options_style .= '.mtnc-overlay{margin: 0; position: absolute; top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); padding-bottom:50px;}'; break; case 'bottom': $mtnc_options_style .= '.mtnc-overlay{margin: 0 auto; position: absolute; left: 50%; transform: translate(-50%, -5%); bottom: 0; padding-bottom:50px;}'; break; } } echo ''; if(!empty($theme->custom_css)){ echo ''; } ?>
preloader_background_image){ echo ''; } else { echo ''; } ?>
check_maintenance_locked()){ ?>
content_overlay){ echo '
'; } $mtnc_load_recaptcha = false; foreach ($mtnc_theme->modules_order as $mtnc_module_id) { if(!property_exists($mtnc_theme->modules, $mtnc_module_id)){ continue; } $mtnc_module = $mtnc_theme->modules->{$mtnc_module_id}; $mtnc_module_style = $wf_mtnc->get_module_style($mtnc_module); echo '
'; if(!$mtnc_theme->content_overlay){ echo '
'; } switch ($mtnc_module->type) { case 'logo': $mtnc_styles = ''; if (!empty($mtnc_module->groups->logo->fields->width->value)) { $mtnc_styles .= 'width:' . $mtnc_module->groups->logo->fields->width->value . str_replace('percent', '%', $mtnc_module->groups->logo->fields->width->unit_value) . ';'; } if (!empty($mtnc_module->groups->logo->fields->height->value)) { $mtnc_styles .= 'height:' . $mtnc_module->groups->logo->fields->height->value . str_replace('percent', '%', $mtnc_module->groups->logo->fields->height->unit_value) . ';'; } $wf_mtnc::wp_kses_wf('groups->logo->fields->title->value) ? 'title="' . $mtnc_module->groups->logo->fields->title->value . '"' : '') . ' style="' . $mtnc_styles . '" src="' . $mtnc_module->groups->logo->fields->logo->value . '" />'); break; case 'header': $mtnc_styles = ''; if (!empty($mtnc_module->groups->header->fields->font->value)) { $mtnc_styles .= 'font-family:' . $mtnc_module->groups->header->fields->font->value . ';'; } if (!empty($mtnc_module->groups->header->fields->font_size->value)) { $mtnc_styles .= 'font-size:' . $mtnc_module->groups->header->fields->font_size->value . $mtnc_module->groups->header->fields->font_size->unit_value . ';'; } if (!empty($mtnc_module->groups->header->fields->color->value)) { $mtnc_styles .= 'color:' . $mtnc_module->groups->header->fields->color->value . ';'; } if (!empty($mtnc_module->groups->header->fields->line_height->value)) { $mtnc_styles .= 'line-height:' . $mtnc_module->groups->header->fields->line_height->value . $mtnc_module->groups->header->fields->line_height->unit_value . ';'; } if (!empty($mtnc_module->groups->header->fields->text_align->value)) { $mtnc_styles .= 'text-align:' . $mtnc_module->groups->header->fields->text_align->value . ';'; } $wf_mtnc::wp_kses_wf('

' . $mtnc_module->groups->header->fields->text->value . '

'); break; case 'footer': case 'content': $mtnc_styles = ''; if (!empty($mtnc_module->groups->col1->fields->font->value)) { $mtnc_styles .= 'font-family:\'' . $mtnc_module->groups->col1->fields->font->value . '\';'; } if (!empty($mtnc_module->groups->col1->fields->font_size->value)) { $mtnc_styles .= 'font-size:' . $mtnc_module->groups->col1->fields->font_size->value . $mtnc_module->groups->col1->fields->font_size->unit_value . ';'; } if (!empty($mtnc_module->groups->col1->fields->color->value)) { $mtnc_styles .= 'color:' . $mtnc_module->groups->col1->fields->color->value . ';'; } if (!empty($mtnc_module->groups->col1->fields->line_height->value)) { $mtnc_styles .= 'line-height:' . $mtnc_module->groups->col1->fields->line_height->value . $mtnc_module->groups->col1->fields->line_height->unit_value . ';'; } $wf_mtnc::wp_kses_wf('
' . $mtnc_module->groups->col1->fields->text->value . '
'); break; } if(!$mtnc_theme->content_overlay){ echo '
'; } echo '
'; } if($mtnc_theme->content_overlay){ echo '
'; } $wf_mtnc::wp_kses_wf($mtnc_meta_overlay_html); ?>
'; //phpcs:ignore } ?> background_type == 'video') { if (stripos($mtnc_theme->background_video_fallback, 'undefined index') !== false) { $mtnc_theme->background_video_fallback = ''; } if(strpos($mtnc_theme->background_video, '?') !== false){ $mtnc_bg_video = explode('?', $mtnc_theme->background_video, 2); $mtnc_theme->background_video = $mtnc_bg_video[0]; } echo '
background_video_fallback) ? 'style="background-image:url(' . esc_html($mtnc_theme->background_video_fallback) . ');"' : '') . '>
'; } else { echo '
'; } ?>
get_custom_login_code(); if (!empty($mtnc_mess_arr[0])) { $mtnc_ebody_class = 'error'; } $mtnc_user_login = esc_attr($mtnc_mess_arr[3]); $mtnc_class_login = esc_attr($mtnc_mess_arr[1]); $mtnc_class_password = esc_attr($mtnc_mess_arr[2]); $mtnc_error = esc_attr($mtnc_mess_arr[0]); $mtnc_out_login_form = $mtnc_form_error = ''; if (($mtnc_class_login === 'error') || ($mtnc_class_password === 'error')) { $mtnc_form_error = ' active error'; } echo '
'; echo ''; echo ''; echo ''; echo ''; echo '' . esc_html__('Lost Password', 'maintenance') . ''; echo ''; echo ''; $wf_mtnc::wp_kses_wf(wp_nonce_field('mtnc_login', 'mtnc_login_check')); echo '
'; ?>
'; } do_action('mtnc_load_options_style'); do_action('mtnc_load_custom_scripts'); if (!is_callable('is_plugin_active')) { include_once(ABSPATH . 'wp-admin/includes/plugin.php'); } ?>