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;
}
?>
>
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 '
';
}
?>