<div class="front_page_section front_page_section_about<?php
$revirta_scheme = revirta_get_theme_option('front_page_about_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_about_paddings'));
?>"<?php
$revirta_css = '';
$revirta_bg_image = revirta_get_theme_option('front_page_about_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_about_anchor_icon');
$revirta_anchor_text = revirta_get_theme_option('front_page_about_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_about"'
. (!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_about_inner<?php
if (revirta_get_theme_option('front_page_about_fullheight'))
echo ' revirta-full-height sc_layouts_flex sc_layouts_columns_middle';
?>"<?php
$revirta_css = '';
$revirta_bg_mask = revirta_get_theme_option('front_page_about_bg_mask');
$revirta_bg_color = revirta_get_theme_option('front_page_about_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_about_content_wrap content_wrap">
<?php
// Caption
$revirta_caption = revirta_get_theme_option('front_page_about_caption');
if (!empty($revirta_caption) || (current_user_can('edit_theme_options') && is_customize_preview())) {
?><h2 class="front_page_section_caption front_page_section_about_caption front_page_block_<?php echo !empty($revirta_caption) ? 'filled' : 'empty'; ?>"><?php echo wp_kses_post($revirta_caption); ?></h2><?php
}
// Description (text)
$revirta_description = revirta_get_theme_option('front_page_about_description');
if (!empty($revirta_description) || (current_user_can('edit_theme_options') && is_customize_preview())) {
?><div class="front_page_section_description front_page_section_about_description front_page_block_<?php echo !empty($revirta_description) ? 'filled' : 'empty'; ?>"><?php echo wp_kses(wpautop($revirta_description), 'revirta_kses_content'); ?></div><?php
}
// Content
$revirta_content = revirta_get_theme_option('front_page_about_content');
if (!empty($revirta_content) || (current_user_can('edit_theme_options') && is_customize_preview())) {
?><div class="front_page_section_content front_page_section_about_content front_page_block_<?php echo !empty($revirta_content) ? 'filled' : 'empty'; ?>"><?php
$revirta_page_content_mask = '%%CONTENT%%';
if (strpos($revirta_content, $revirta_page_content_mask) !== false) {
$revirta_content = preg_replace(
'/(\<p\>\s*)?'.$revirta_page_content_mask.'(\s*\<\/p\>)/i',
sprintf('<div class="front_page_section_about_source">%s</div>',
apply_filters('the_content', get_the_content())),
$revirta_content
);
}
revirta_show_layout($revirta_content);
?></div><?php
}
?>
</div>
</div>
</div>