| Server IP : 51.91.236.255 / Your IP : 216.73.217.120 Web Server : Apache System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : laureet ( 1012854) PHP Version : 8.0.30 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/laureet/www/wp-content/themes/rock-singer/ |
Upload File : |
<?php
/**
* The template for displaying home page.
* @package Rock Singer
*/
if ( 'posts' != get_option( 'show_on_front' ) ) {
get_header(); ?>
<?php $enabled_sections = rock_singer_get_sections();
if( is_array( $enabled_sections ) ) {
foreach( $enabled_sections as $section ) {
if( $section['id'] == 'featured-slider' ) { ?>
<?php $enable_featured_slider_section = rock_singer_get_option( 'enable_featured_slider_section' );
if(true ==$enable_featured_slider_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</section>
<?php endif; ?>
<?php } elseif( $section['id'] == 'call-to-action' ) { ?>
<?php $enable_call_to_action_section = rock_singer_get_option( 'enable_call_to_action_section' );
if( true ==$enable_call_to_action_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>" class="section-gap">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</section>
<?php endif; ?>
<?php } elseif( $section['id'] == 'about-us' ) { ?>
<?php $enable_about_us_section = rock_singer_get_option( 'enable_about_us_section' );
if( true ==$enable_about_us_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>" class="section-gap">
<div class="wrapper">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</div>
</section>
<?php endif; ?>
<?php } elseif( $section['id'] == 'upcoming-events' ) { ?>
<?php $enable_upcoming_events_section = rock_singer_get_option( 'enable_upcoming_events_section' );
$upcoming_events_background_image = rock_singer_get_option( 'upcoming_events_background_image' );
if(true ==$enable_upcoming_events_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>" class="section-gap" style="background-image: url('<?php echo esc_url( $upcoming_events_background_image );?>');">
<div class="overlay"></div>
<div class="wrapper">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</div>
</section>
<?php endif; ?>
<?php } elseif( $section['id'] == 'our-gallery' ) { ?>
<?php $enable_our_gallery_section = rock_singer_get_option( 'enable_our_gallery_section' );
if(true ==$enable_our_gallery_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>" class="section-gap">
<div class="wrapper">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</div>
</section>
<?php endif; ?>
<?php } elseif( ( $section['id'] == 'blog' ) ) { ?>
<?php $enable_blog_section = rock_singer_get_option( 'enable_blog_section' );
if(true ==$enable_blog_section): ?>
<section id="<?php echo esc_attr( $section['id'] ); ?>" class="blog-posts-wrapper section-gap">
<div class="wrapper">
<?php get_template_part( 'sections/section', esc_attr( $section['id'] ) ); ?>
</div>
</section>
<?php endif;
}
}
}
if( true == rock_singer_get_option('enable_frontpage_content') ) { ?>
<div id="content-wrapper" class="wrapper">
<div class="section-gap clear">
<?php include( get_page_template() ); ?>
</div><!-- .section-gap -->
</div><!-- #content-wrapper -->
<?php }
get_footer();
}
elseif ('posts' == get_option( 'show_on_front' ) ) {
include( get_home_template() );
}