Viewing File: /home/rtsgrob/ww5/wp-content/themes/hoverex/front-page/section-googlemap.php
<div class="front_page_section front_page_section_googlemap<?php
$hoverex_scheme = hoverex_get_theme_option('front_page_googlemap_scheme');
if (!hoverex_is_inherit($hoverex_scheme)) echo ' scheme_'.esc_attr($hoverex_scheme);
echo ' front_page_section_paddings_'.esc_attr(hoverex_get_theme_option('front_page_googlemap_paddings'));
?>"<?php
$hoverex_css = '';
$hoverex_bg_image = hoverex_get_theme_option('front_page_googlemap_bg_image');
if (!empty($hoverex_bg_image))
$hoverex_css .= 'background-image: url('.esc_url(hoverex_get_attachment_url($hoverex_bg_image)).');';
if (!empty($hoverex_css))
echo ' style="' . esc_attr($hoverex_css) . '"';
?>><?php
// Add anchor
$hoverex_anchor_icon = hoverex_get_theme_option('front_page_googlemap_anchor_icon');
$hoverex_anchor_text = hoverex_get_theme_option('front_page_googlemap_anchor_text');
if ((!empty($hoverex_anchor_icon) || !empty($hoverex_anchor_text)) && shortcode_exists('trx_sc_anchor')) {
echo do_shortcode('[trx_sc_anchor id="front_page_section_googlemap"'
. (!empty($hoverex_anchor_icon) ? ' icon="'.esc_attr($hoverex_anchor_icon).'"' : '')
. (!empty($hoverex_anchor_text) ? ' title="'.esc_attr($hoverex_anchor_text).'"' : '')
. ']');
}
?>
<div class="front_page_section_inner front_page_section_googlemap_inner<?php
if (hoverex_get_theme_option('front_page_googlemap_fullheight'))
echo ' hoverex-full-height sc_layouts_flex sc_layouts_columns_middle';
?>"<?php
$hoverex_css = '';
$hoverex_bg_mask = hoverex_get_theme_option('front_page_googlemap_bg_mask');
$hoverex_bg_color = hoverex_get_theme_option('front_page_googlemap_bg_color');
if (!empty($hoverex_bg_color) && $hoverex_bg_mask > 0)
$hoverex_css .= 'background-color: '.esc_attr($hoverex_bg_mask==1
? $hoverex_bg_color
: hoverex_hex2rgba($hoverex_bg_color, $hoverex_bg_mask)
).';';
if (!empty($hoverex_css))
echo ' style="' . esc_attr($hoverex_css) . '"';
?>>
<div class="front_page_section_content_wrap front_page_section_googlemap_content_wrap<?php
$hoverex_layout = hoverex_get_theme_option('front_page_googlemap_layout');
if ($hoverex_layout != 'fullwidth')
echo ' content_wrap';
?>">
<?php
// Content wrap with title and description
$hoverex_caption = hoverex_get_theme_option('front_page_googlemap_caption');
$hoverex_description = hoverex_get_theme_option('front_page_googlemap_description');
if (!empty($hoverex_caption) || !empty($hoverex_description) || (current_user_can('edit_theme_options') && is_customize_preview())) {
if ($hoverex_layout == 'fullwidth') {
?><div class="content_wrap"><?php
}
// Caption
if (!empty($hoverex_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($hoverex_caption) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses($hoverex_caption, 'hoverex_kses_content');
?></h2><?php
}
// Description (text)
if (!empty($hoverex_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($hoverex_description) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses(wpautop($hoverex_description), 'hoverex_kses_content');
?></div><?php
}
if ($hoverex_layout == 'fullwidth') {
?></div><?php
}
}
// Content (text)
$hoverex_content = hoverex_get_theme_option('front_page_googlemap_content');
if (!empty($hoverex_content) || (current_user_can('edit_theme_options') && is_customize_preview())) {
if ($hoverex_layout == 'columns') {
?><div class="front_page_section_columns front_page_section_googlemap_columns columns_wrap">
<div class="column-1_3">
<?php
} else if ($hoverex_layout == 'fullwidth') {
?><div class="content_wrap"><?php
}
?><div class="front_page_section_content front_page_section_googlemap_content front_page_block_<?php echo !empty($hoverex_content) ? 'filled' : 'empty'; ?>"><?php
echo wp_kses($hoverex_content, 'hoverex_kses_content');
?></div><?php
if ($hoverex_layout == 'columns') {
?></div><div class="column-2_3"><?php
} else if ($hoverex_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 (!hoverex_exists_trx_addons())
hoverex_customizer_need_trx_addons_message();
else
hoverex_customizer_need_widgets_message('front_page_googlemap_caption', 'ThemeREX Addons - Google map');
}
?></div><?php
if ($hoverex_layout == 'columns' && (!empty($hoverex_content) || (current_user_can('edit_theme_options') && is_customize_preview()))) {
?></div></div><?php
}
?>
</div>
</div>
</div>
Back to Directory
File Manager