| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/themes/hallelujah/front-page/ |
| Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/front-page/section-features.php |
<div class="front_page_section front_page_section_features<?php
$hallelujah_scheme = hallelujah_get_theme_option( 'front_page_features_scheme' );
if ( ! empty( $hallelujah_scheme ) && ! hallelujah_is_inherit( $hallelujah_scheme ) ) {
echo ' scheme_' . esc_attr( $hallelujah_scheme );
}
echo ' front_page_section_paddings_' . esc_attr( hallelujah_get_theme_option( 'front_page_features_paddings' ) );
if ( hallelujah_get_theme_option( 'front_page_features_stack' ) ) {
echo ' sc_stack_section_on';
}
?>"
<?php
$hallelujah_css = '';
$hallelujah_bg_image = hallelujah_get_theme_option( 'front_page_features_bg_image' );
if ( ! empty( $hallelujah_bg_image ) ) {
$hallelujah_css .= 'background-image: url(' . esc_url( hallelujah_get_attachment_url( $hallelujah_bg_image ) ) . ');';
}
if ( ! empty( $hallelujah_css ) ) {
echo ' style="' . esc_attr( $hallelujah_css ) . '"';
}
?>
>
<?php
// Add anchor
$hallelujah_anchor_icon = hallelujah_get_theme_option( 'front_page_features_anchor_icon' );
$hallelujah_anchor_text = hallelujah_get_theme_option( 'front_page_features_anchor_text' );
if ( ( ! empty( $hallelujah_anchor_icon ) || ! empty( $hallelujah_anchor_text ) ) && shortcode_exists( 'trx_sc_anchor' ) ) {
echo do_shortcode(
'[trx_sc_anchor id="front_page_section_features"'
. ( ! empty( $hallelujah_anchor_icon ) ? ' icon="' . esc_attr( $hallelujah_anchor_icon ) . '"' : '' )
. ( ! empty( $hallelujah_anchor_text ) ? ' title="' . esc_attr( $hallelujah_anchor_text ) . '"' : '' )
. ']'
);
}
?>
<div class="front_page_section_inner front_page_section_features_inner
<?php
if ( hallelujah_get_theme_option( 'front_page_features_fullheight' ) ) {
echo ' hallelujah-full-height sc_layouts_flex sc_layouts_columns_middle';
}
?>
"
<?php
$hallelujah_css = '';
$hallelujah_bg_mask = hallelujah_get_theme_option( 'front_page_features_bg_mask' );
$hallelujah_bg_color_type = hallelujah_get_theme_option( 'front_page_features_bg_color_type' );
if ( 'custom' == $hallelujah_bg_color_type ) {
$hallelujah_bg_color = hallelujah_get_theme_option( 'front_page_features_bg_color' );
} elseif ( 'scheme_bg_color' == $hallelujah_bg_color_type ) {
$hallelujah_bg_color = hallelujah_get_scheme_color( 'bg_color', $hallelujah_scheme );
} else {
$hallelujah_bg_color = '';
}
if ( ! empty( $hallelujah_bg_color ) && $hallelujah_bg_mask > 0 ) {
$hallelujah_css .= 'background-color: ' . esc_attr(
1 == $hallelujah_bg_mask ? $hallelujah_bg_color : hallelujah_hex2rgba( $hallelujah_bg_color, $hallelujah_bg_mask )
) . ';';
}
if ( ! empty( $hallelujah_css ) ) {
echo ' style="' . esc_attr( $hallelujah_css ) . '"';
}
?>
>
<div class="front_page_section_content_wrap front_page_section_features_content_wrap content_wrap">
<?php
// Caption
$hallelujah_caption = hallelujah_get_theme_option( 'front_page_features_caption' );
if ( ! empty( $hallelujah_caption ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
?>
<h2 class="front_page_section_caption front_page_section_features_caption front_page_block_<?php echo ! empty( $hallelujah_caption ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( $hallelujah_caption,'hallelujah_kses_content' ); ?></h2>
<?php
}
// Description (text)
$hallelujah_description = hallelujah_get_theme_option( 'front_page_features_description' );
if ( ! empty( $hallelujah_description ) || ( current_user_can( 'edit_theme_options' ) && is_customize_preview() ) ) {
?>
<div class="front_page_section_description front_page_section_features_description front_page_block_<?php echo ! empty( $hallelujah_description ) ? 'filled' : 'empty'; ?>"><?php echo wp_kses( wpautop( $hallelujah_description ),'hallelujah_kses_content' ); ?></div>
<?php
}
// Content (widgets)
?>
<div class="front_page_section_output front_page_section_features_output">
<?php
if ( is_active_sidebar( 'front_page_features_widgets' ) ) {
dynamic_sidebar( 'front_page_features_widgets' );
} elseif ( current_user_can( 'edit_theme_options' ) ) {
if ( ! hallelujah_exists_trx_addons() ) {
hallelujah_customizer_need_trx_addons_message();
} else {
hallelujah_customizer_need_widgets_message( 'front_page_features_caption', 'ThemeREX Addons - Services' );
}
}
?>
</div>
</div>
</div>
</div>