<?php
/* 	
 * Template Name: Home
 */

$current_options = wp_parse_args(get_option('busiprof_pro_theme_options', array()), theme_data_setup());

if ($current_options['front_page'] != 'yes') {

    get_template_part('index');
} else {
    get_header();

    $data = array();

    $data[] = $current_options['busi_layout_section1'];

    $data[] = $current_options['busi_layout_section2'];

    $data[] = $current_options['busi_layout_section3'];

    $data[] = $current_options['busi_layout_section4'];

    $data[] = $current_options['busi_layout_section5'];

    $data[] = $current_options['busi_layout_section6'];

    $data[] = $current_options['busi_layout_section7'];


    if ($data) {
        foreach ($data as $key => $value) {
            switch ($value) {

                case 'slider':

                    /* ====== get slider template ====== */

                    get_template_part('index', 'slider');

                    break;

                case 'Service Section':

                    /* ====== get service template ====== */

                    get_template_part('index', 'service');


                    break;


                case 'Project Section':

                    /* ====== get index project ====== */

                    get_template_part('index', 'project');

                    break;


                case 'Blog Section':

                    /* ====== get index blog ====== */

                    get_template_part('index', 'blog');


                    break;

                case 'Team Section':

                    /* ====== get index team ====== */

                    get_template_part('index', 'team');

                    break;


                case 'Testimonials Section':

                    /* ====== get testimonial template ====== */

                    get_template_part('index', 'testimonials');

                    break;

                case 'Client Strip':

                    /* ====== get client template ====== */

                    get_template_part('index', 'clientstrip');

                    break;
            }

            if (!defined('MyBlock')) {
                define(MyBlock, 'Project Section');
            }

            if ($value == MyBlock) {
                ?>
                <div class="clearfix"></div>
                <?php
                $myHtmlBlock = <<<HTML
<!--Replace the below HTML to Past your Own-->

                        <h1 id="mce_4" class="editor-rich-text__tinymce mce-content-body" style="text-align: center;" role="textbox" contenteditable="true" spellcheck="false" aria-label="Write heading…" aria-autocomplete="list" aria-expanded="false" aria-multiline="true" data-is-placeholder-visible="false" data-gramm_id="197e9477-e46f-dae2-3ff9-ea1aa441af1d" data-gramm="true" data-gramm_editor="true">Hot Chocolate Recipe</h1>
<p><img class="alignleft" src="https://recipes.timesofindia.com/photo/56167757.cms?imgsize=480829" width="305" height="305" />One of the easy ways to gulp down milk in winters is to make tasty Hot Chocolate! It is extremely easy-to-make and kids would love to have it along with their favourite foods. You would be surprised to know this, but it takes only 10-15 minutes to prepare this hot chocolate recipe! All you need is: full fat milk, dark chocolate, vanilla extract and a little sugar. You can melt the dark chocolate using double-boiler method or just microwave until it is completely melted. So, don't hold up and skip tea/coffee for a day and try this delicious hot chocolate, and enjoy with your loved ones!</p>
<p> </p>
<h2 class="methodheading" data-msid="56167757">How to make Hot Chocolate</h2>
<ul>
<li>
<div>Step 1</div>
<p>To prepare this amazing hot chocolate recipe, put a saucepan over medium flame and heat milk in it. After a boil, add sugar in it and stir for a few seconds.</p>
</li>
<li>
<div>Step 2</div>
<p>Meanwhile, roughly chop the dark chocolate in a bowl and microwave it for 30 seconds. Take out the bowl once done and stir once, then put the bowl again inside the microwave and let the chocolate melt for another 30 seconds. Repeat the procedure until the chocolate is melted completely in 30 seconds intervals.</p>
</li>
<li>
<div>Step 3</div>
<p>By now, the milk will be ready for adding melted chocolate. Add it to the boiling milk and whisk once to combine. Add vanilla extract in the end and let it cook for a minute.</p>
</li>
<li>
<div>Step 4</div>
<p>Turn off the flame and pour the prepared hot chocolate in large cups. Garnish with marshmallows and serve immediately. (Note: You can even use whipped cream to garnish the hot chocolate.</p>
</li>
</ul>
        
<!--Plese dont replace me! I am the last line to indicate the end here-->
HTML;
                ?>
                <section id="section" class="myBlock page-content">
                    <div class="container">	

                        <!-- Section Title -->
                        <div class="row">
                            <?php
                            echo $myHtmlBlock;
                            ?>
                        </div>
                        <!-- /Section Title -->	

                    </div>
                </section>
                <div class="clearfix"></div>
                <?php
            }
        }
    }
    get_footer();
}
