%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/themes/intosai/
Upload File :
Create Path :
Current File : /var/www/pn/beta/64801_wp-content/themes/intosai/page-home.php

<?php
/**
 * Template Name: Homepage
 */
use Roots\Sage\Setup;
use Roots\Sage\Wrapper;
use Roots\Sage\Titles;
?>

<?php
    /* TOP BANNER */
    $banner = get_field('top_banner_options');

    if($banner == 'static_banner'){
        include('templates/sections/banner_static.php');
    }elseif($banner == 'slide_banner'){
        include('templates/sections/banner_slider.php');
    }

    /* PAGE CONTENT */
    while (have_posts()) : the_post();
        if(get_the_content() != ''){
            echo '<div class="page-content">';
                echo '<div class="wrapper">';
                	the_content();
                echo '</div>';
            echo '</div>';
        }
    endwhile;

    /* PAGE SECTIONS */
    if(have_rows('page_sections')):
    while (have_rows('page_sections')) : the_row();

         if(get_row_layout() == 'boxes'):

             include('templates/sections/boxes.php');

         elseif(get_row_layout() == 'latest_news'):

             include('templates/sections/latest_news.php');
             
         elseif(get_row_layout() == 'latest_projects'):

             include('templates/sections/latest_projects.php');

         elseif(get_row_layout() == 'newsletter'):

             include('templates/sections/newsletter.php');

         elseif(get_row_layout() == 'partners'):

             include('templates/sections/partners.php');

         elseif(get_row_layout() == 'text'):

             include('templates/sections/text.php');

         elseif(get_row_layout() == 'colorbox'):

             include('templates/sections/colorbox.php');

         elseif(get_row_layout() == 'accordion'):

             include('templates/sections/accordion.php');

         elseif(get_row_layout() == 'success_stories'):

             include('templates/sections/success_stories.php');

         elseif(get_row_layout() == 'downloads'):

             include('templates/sections/downloads.php');

         endif;

    endwhile;
    endif;
?>

Zerion Mini Shell 1.0