%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/wp-content/themes/intosai/
Upload File :
Create Path :
Current File : //var/www/pn/wp-content/themes/intosai/single-storys.php

<?php
    $current_user = wp_get_current_user();

    // if($_GET['dev']){

        $sections_success_stories = get_field('sections_success_stories');

        if($sections_success_stories){
        ?>
        <div class="story_container" id="pagepiling">
        <?php    
            $iter = 1;
            foreach($sections_success_stories as $section){
                if($section['acf_fc_layout'] == 'section_photo_and_title'){	
                    $title_section_1 = $section['title_section'];
                    $short_description_1 = $section['short_description'];
                    $background_image_1 = $section['background_image'];
                ?>
                    <section class="intro--container module-1 fp-auto-height-custom section" data-anchor="page-1"
                        style="background-image:url(<?php echo $background_image_1; ?>);background-size:cover;">
                        <div class="intro-title">
                            <section class="intro-title--heading">
                                <h1><?php echo $title_section_1; ?></h1>
                                <div class="intro-title--subhead">
                                    <p><?php echo $short_description_1; ?></p>
                                </div>
                            </section>
                        </div>
                    </section>
                <?php
                }elseif($section['acf_fc_layout'] == 'section_video'){
                    $id_youtube_video = $section['id_youtube_video'];
                ?>
                    <section class="video--container fp-auto-height-custom section" data-anchor="page-<?php echo $iter; ?>">
                        <div style="z-index: 100; width: 100%; height: 98.5%" class="video--iframe-container">
                            <iframe id="video1" allow="autoplay;" allowfullscreen frameborder="0" height="100%" width="100%"
                                src=" https://www.youtube.com/embed/<?php echo $id_youtube_video; ?>?color=white&showinfo=0&rel=0&enablejsapi=1&autohide=1&controls=0&modestbranding=1">
                            </iframe>
                        </div>
                    </section>
                <?php    
                }elseif($section['acf_fc_layout'] == 'section_photoLeft_and_text'){
                    $title_section_2 = $section['title'];
                    $short_description_2 = $section['description'];
                    $image_2 = $section['image'];
                ?>
                    <section class="module-2--container fp-auto-height-custom section" data-anchor="page-<?php echo $iter; ?>"
                        data-animation="_2_column_content_with_image_on_left_column">
                        <div class="module-2 left-column full-photo"
                            style="background-image:url(<?php echo $image_2; ?>);background-size:cover;">
                            <div class="animated-overlay"></div>
                            <img src="<?php echo $image_2; ?>" class="bg-image" alt="">
                        </div>
                        <div class="module-2 right-column">
                            <div class="text-content centered">
                                <h2 style="color:#C2113B"><?php echo $title_section_2; ?></h2>
                                <?php echo $short_description_2; ?>
                            </div>
                        </div>
                    </section>
                <?php    
                }elseif($section['acf_fc_layout'] == 'section_double_photo_and_text'){
                    $title_section_3 = $section['title'];
                    $short_description_3 = $section['description'];
                    $image_3 = $section['image'];
                    $image_3_second = $section['second_image'];
                ?>
                    <section class="module-3--container fp-auto-height-custom section" data-anchor="page-<?php echo $iter; ?>"
                        data-animation="_content_with_2_images_in_bottom">
                        <div class="module-3 module-3--top-row">
                            <div class="text-content centered">
                                <h2 style="color:#C2113B"><?php echo $title_section_3; ?></h2>
                                <p>
                                    <?php echo $short_description_3; ?>
                                </p>
                            </div>
                        </div>
                        <div class="module-3 module-3--bottom-row">
                            <div class="module-3--left-image bottom-left"
                                style="background-image:url(<?php echo $image_3; ?>);background-size:cover;">
                                <img src="<?php echo $image_3; ?>" class="bg-image" alt="">
                                <div class="animated-overlay"></div>
                            </div>
                            <div class="module-3--right-image bottom-right"
                                style="background-image:url(<?php echo $image_3_second; ?>);background-size:cover;">
                                <img src="<?php echo $image_3_second; ?>" class="bg-image" alt="">
                                <div class="animated-overlay"></div>
                            </div>
                        </div>
                    </section>
                <?php    
                }elseif($section['acf_fc_layout'] == 'section_photoRight_and_text'){
                    $title_section_4 = $section['title'];
                    $short_description_4 = $section['description'];
                    $image_4 = $section['image'];
                ?>
                    <section class="module-4--container fp-auto-height-custom section" data-anchor="page-<?php echo $iter; ?>"
                        data-animation="_2_column_content_with_image_on_right_column">
                        <div class="module-4 right-column full-photo"
                            style="background-image:url(<?php echo $image_4; ?>);background-size:cover;">
                            <img src="<?php echo $image_4; ?>" class="bg-image" alt="">
                            <div class="animated-overlay"></div>
                        </div>
                        <div class="module-4 left-column">
                            <div class="text-content centered">
                                <h2 style="color:#C2113B"><?php echo $title_section_4; ?></h2>
                                <p>
                                <?php echo $short_description_4; ?>
                                </p>
                            </div>
                        </div>
                    </section>
                <?php
                }elseif($section['acf_fc_layout'] == 'section_photoLarge_and_text'){
                    $short_description_5 = $section['description'];
                    $image_5 = $section['image'];
                ?>
                    <section class="module-20 section fp-auto-height-custom fp-section fp-table"
                        data-animation="_large_hero_image_with_white_text_box_below" data-anchor="page-<?php echo $iter; ?>">
                        <div class="module-20--container">
                            <div class="module-20--image"
                                style="background-image:url(<?php echo $image_5; ?>);background-size:cover;">
                                <img src="<?php echo $image_5; ?>" class="bg-image" alt="">
                            </div>
                            <div class="module-20--text">
                            <?php echo $short_description_5; ?>
                            </div>
                        </div>
                    </section>
                <?php    
                }elseif($section['acf_fc_layout'] == 'section_text'){

                    $title_section_6 = $section['title'];
                    $short_description_6_left = $section['description_column_left'];
                    $short_description_6_right = $section['description_column_right'];
                    $short_description_6_center = $section['description_column_center'];
                ?>
                    <section class="module-15--container fp-auto-height-custom section" data-anchor="page-<?php echo $iter; ?>"
                        data-animation="_2_column_content_with_title">
                        <div class="module-15--text-only">
                            <div class="centered">         
                                <h2 style="color:#C2113B"><?php echo $title_section_6; ?></h2>               
                                <div class="module-15--column-1">
                                <?php echo $short_description_6_left; ?>
                                </div>
                                <div class="module-15--column-2">
                                <?php echo $short_description_6_right; ?>
                                </div>
                                <div class="photo-credits">
                                <?php echo $short_description_6_center; ?>
                                </div>
                            </div>
                        </div>
                    </section>
                <?php  
                }
                $iter++;
            }
        ?>

            <?php 
            	$adminEmail = get_field('admin_email', 'global');
                $adminPhone = get_field('admin_phone', 'global');
            
                /*Social Media*/
                $facebook 	= get_field('facebook', 'global');
                $instagram 	= get_field('instagram', 'global');
                $twitter 	= get_field('twitter', 'global');
                $google 	= get_field('google', 'global');
                $linkedin 	= get_field('linkedin', 'global');
                $youtube 	= get_field('youtube', 'global');
                $vimeo 		= get_field('vimeo', 'global');
            ?>
            <footer id="footer" class="module-4--container fp-auto-height-custom section section-footer" data-anchor="page-footer" role="contentinfo">
                <div class="wrapper">

                    <div class="f_sec logo">
                        <img data-src="<?php echo get_template_directory_uri(); ?>/assets/images/intosai_logo_white.png" >
                    </div>

                    <div class="f_sec menu">
                        <h3>Menu</h3>

                        <nav id="footer_nav" role="navigation">
                            <?php wp_nav_menu(['theme_location' => 'mainNav', 'container' => '', 'menu_class' => 'nav_container']); ?>
                        </nav>

                    </div>

                    <div class="f_sec contact_social">

                        <h3>Contact</h3>

                        <div class="admin">
                            <div class="name">
                                <?php the_field('admin_name', 'global'); ?>
                            </div>

                            <?php if($adminEmail){ ?>
                                <a href="mailto:<?php echo antispambot($adminEmail); ?>" title="Email Site Admin">
                                    <i class="fa fa-envelope-o"></i> <?php echo antispambot($adminEmail); ?>
                                </a>
                            <?php } ?>

                            <?php if($adminPhone){ ?>
                                <a href="tel:<?php echo antispambot($adminPhone); ?>" title="Call Site Admin">
                                    <i class="fa fa-phone"></i> <?php echo antispambot($adminPhone); ?>
                                </a>
                            <?php } ?>
                        </div>

                        <div class="socialmedia">

                            <!-- FACEBOOK -->
                            <?php if($facebook){ ?>
                                <a class="socialbtn" href="<?= $facebook; ?>" target="_blank" title="Facebook">
                                    <i class="fa fa-facebook"></i>
                                </a>
                            <?php } ?>

                            <!-- INSTAGRAM -->
                            <?php if($instagram){ ?>
                                <a class="socialbtn" href="<?= $instagram; ?>" target="_blank" title="Instagram">
                                    <i class="fa fa-instagram"></i>
                                </a>
                            <?php } ?>

                            <!-- TWITTER -->
                            <?php if($twitter){ ?>
                                <a class="socialbtn" href="<?= $twitter; ?>" target="_blank" title="Twitter">
                                    <i class="fa fa-twitter"></i>
                                </a>
                            <?php } ?>

                            <!-- GOOGLE+ -->
                            <?php if($google){ ?>
                                <a class="socialbtn" href="<?= $google; ?>" target="_blank" title="Google+">
                                    <i class="fa fa-google-plus"></i>
                                </a>
                            <?php } ?>

                            <!-- LINKEDIN -->
                            <?php if($linkedin){ ?>
                                <a class="socialbtn" href="<?= $linkedin; ?>" target="_blank" title="LinkedIn">
                                    <i class="fa fa-linkedin"></i>
                                </a>
                            <?php } ?>

                            <!-- YOUTUBE -->
                            <?php if($youtube){ ?>
                                <a class="socialbtn" href="<?= $youtube; ?>" target="_blank" title="YouTube">
                                    <i class="fa fa-youtube-play"></i>
                                </a>
                            <?php } ?>

                            <!-- VIMEO -->
                            <?php if($vimeo){ ?>
                                <a class="socialbtn" href="<?= $vimeo; ?>" target="_blank" title="Vimeo">
                                    <i class="fa fa-vimeo"></i>
                                </a>
                            <?php } ?>

                        </div>

                    </div>

                    <div class="copyright">
                        <span class="copy">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?> </span>
                    </div>

                    <br class="clear" />
                </div>
            </footer>
        </div> 
        <?php    
        }
    // }else{
    /* STATIC PARALLAX BANNER */
    include('templates/sections/news_single_banner.php');

    /*POST PAGINATION*/
    include('templates/sections/paginate_single.php');

    /* PAGE CONTENT */
    while (have_posts()) : the_post();

        if(get_the_content() != ''){
            echo '<div class="page-content single-page">';
                echo '<div class="wrapper">';
                    the_content();
                echo '</div>';
            echo '</div>';
        }
        ?>
        <?php
    endwhile;

    if (have_rows('new_success_stories')) :
        include('templates/sections/new_success_stories.php'); 
    endif;

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

         if(get_row_layout() == 'newsletter'):

             include('templates/sections/newsletter.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() == 'new_success_stories'):

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

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

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

         endif;

    endwhile;
    endif;

    /* SOCIAL SHARINBG */
    include('templates/sections/social_sharing.php');
    // }

?>

Zerion Mini Shell 1.0