<div class="front_page_section front_page_section_googlemap<?php
$revirta_scheme = revirta_get_theme_option('front_page_googlemap_scheme');
if (!revirta_is_inherit($revirta_scheme)) echo ' scheme_'.esc_attr($revirta_scheme);
echo ' front_page_section_paddings_'.esc_attr(revirta_get_theme_option('front_page_googlemap_paddings'));
?>"<?php
$revirta_css = '';
$revirta_bg_image = revirta_get_theme_option('front_page_googlemap_bg_image');
if (!empty($revirta_bg_image))
$revirta_css .= 'background-image: url('.esc_url(revirta_get_attachment_url($revirta_bg_image)).');';
if (!empty($revirta_css))
echo ' style="' . esc_attr($revirta_css) . '"';
?>><?php
// Add anchor
$revirta_anchor_icon = revirta_get_theme_option('front_page_googlemap_anchor_icon');
$revirta_anchor_text = revirta_get_theme_option('front_page_googlemap_anchor_text');
if ((!empty($revirta_anchor_icon) || !empty($revirta_anchor_text)) && shortcode_exists('trx_sc_anchor')) {
echo do_shortcode('[trx_sc_anchor id="front_page_section_googlemap"'
. (!empty($revirta_anchor_icon) ? ' icon="'.esc_attr($revirta_anchor_icon).'"' : '')
. (!empty($revirta_anchor_text) ? ' title="'.esc_attr($revirta_anchor_text).'"' : '')
. ']');
}
?>
<div class="front_page_section_inner front_page_section_googlemap_inner<?php
if (revirta_get_theme_option('front_page_googlemap_fullheight'))
echo ' revirta-full-height sc_layouts_flex sc_layouts_columns_middle';
?>"<?php
$revirta_css = '';
$revirta_bg_mask = revirta_get_theme_option('front_page_googlemap_bg_mask');
$revirta_bg_color = revirta_get_theme_option('front_page_googlemap_bg_color');
if (!empty($revirta_bg_color) && $revirta_bg_mask > 0)
$revirta_css .= 'background-color: '.esc_attr($revirta_bg_mask==1
? $revirta_bg_color
: revirta_hex2rgba($revirta_bg_color, $revirta_bg_mask)
).';';
if (!empty($revirta_css))
echo ' style="' . esc_attr($revirta_css) . '"';
?>>
<div class="front_page_section_content_wrap front_page_section_googlemap_content_wrap<?php
$revirta_layout = revirta_get_theme_option('front_page_googlemap_layout');
if ($revirta_layout != 'fullwidth')
echo ' content_wrap';
?>">
<?php
// Content wrap with title and description
$revirta_caption = revirta_get_theme_option('front_page_googlemap_caption');
$revirta_description = revirta_get_theme_option('front_page_googlemap_description');
if (!empty($revirta_caption) || !empty($revirta_description) || (current_user_can('edit_theme_options') && is_customize_preview())) {
if ($revirta_layout == 'fullwidth') {
?><div class="content_wrap"><?php
}
// Caption
if (!empty($revirta_caption) || (current_user_can('edit_theme_options') && is_customize_preview())) {
?><h2 class="front_page_section_caption front_page_section_googlemap_caption front_page_block_<?php echo !empty($revirta_caption) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses_post($revirta_caption);
?></h2><?php
}
// Description (text)
if (!empty($revirta_description) || (current_user_can('edit_theme_options') && is_customize_preview())) {
?><div class="front_page_section_description front_page_section_googlemap_description front_page_block_<?php echo !empty($revirta_description) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses(wpautop($revirta_description), 'revirta_kses_content');
?></div><?php
}
if ($revirta_layout == 'fullwidth') {
?></div><?php
}
}
// Content (text)
$revirta_content = revirta_get_theme_option('front_page_googlemap_content');
if (!empty($revirta_content) || (current_user_can('edit_theme_options') && is_customize_preview())) {
if ($revirta_layout == 'columns') {
?><div class="front_page_section_columns front_page_section_googlemap_columns columns_wrap">
<div class="column-1_3">
<?php
} else if ($revirta_layout == 'fullwidth') {
?><div class="content_wrap"><?php
}
?><div class="front_page_section_content front_page_section_googlemap_content front_page_block_<?php echo !empty($revirta_content) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses_post($revirta_content);
?></div><?php
if ($revirta_layout == 'columns') {
?></div><div class="column-2_3"><?php
} else if ($revirta_layout == 'fullwidth') {
?></div><?php
}
}
// Widgets output
?><div class="front_page_section_output front_page_section_googlemap_output"><?php
if (is_active_sidebar('front_page_googlemap_widgets')) {
dynamic_sidebar( 'front_page_googlemap_widgets' );
} else if (current_user_can( 'edit_theme_options' )) {
if (!revirta_exists_trx_addons())
revirta_customizer_need_trx_addons_message();
else
revirta_customizer_need_widgets_message('front_page_googlemap_caption', 'ThemeREX Addons - Google map');
}
?></div><?php
if ($revirta_layout == 'columns' && (!empty($revirta_content) || (current_user_can('edit_theme_options') && is_customize_preview()))) {
?></div></div><?php
}
?>
</div>
</div>
</div>