%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php $columnType = get_sub_field('column_layout'); ?>

<?php if($columnType == 'Large') : ?>
    <?php if(have_rows('1_large_column')): ?>
    <?php while(have_rows('1_large_column')): the_row(); ?>

        <?php $bgImage = get_sub_field('background_image'); ?>

    <?php endwhile; endif; ?>
<?php endif; ?>

        <?php if($columnType == 'Large'){ ?>

            <section class="scrollHolder new_success_stories_<?php echo $columnType; ?>" style="background-image: url('<?= $bgImage['url']; ?>'); margin-top:-1px!important;">

                <div class="wrapper">

                    <div class="textContainer">
                        <?php if(have_rows('1_large_column')): ?>
                        <?php while(have_rows('1_large_column')): the_row(); ?>
                            
                                <?php if(get_sub_field('title')){ ?>
                                    <h2><?php the_sub_field('title'); ?></h2>
                                <?php } ?>

                                <?php if(get_sub_field('short_description')){ ?>
                                    <p><?php the_sub_field('short_description'); ?></p>
                                <?php } ?>

                        <?php endwhile; endif; ?>
                    </div>

                </div>

            </section>

        <?php }
            elseif($columnType == 'Leftimage'){ ?>

                <section class="scrollHolder new_success_stories_<?php echo $columnType; ?>">

                    <div class="wrapper">

                        <div class="container">
                        
                            <?php if(have_rows('2_small_column_image_left')): ?>
                            <?php while(have_rows('2_small_column_image_left')): the_row(); ?>

                                <?php $sctLeftimage = get_sub_field('image'); ?>

                            <?php endwhile; endif; ?>

                            <div class="imageContainer">

                                <div class="imageHolder" style="background-image: url('<?= $sctLeftimage['url']; ?>');"></div>
                            </div>

                            <div class="textContainer">
                                <?php if(have_rows('2_small_column_image_left')): ?>
                                <?php while(have_rows('2_small_column_image_left')): the_row(); ?>
                                    
                                    <div class="holder">
                                        <?php if(get_sub_field('title')){ ?>
                                            <h2><?php the_sub_field('title'); ?></h2>
                                        <?php } ?>

                                        <?php if(get_sub_field('description')){ ?>
                                            <p><?php the_sub_field('description'); ?></p>
                                        <?php } ?>                                        
                                    </div>

                                <?php endwhile; endif; ?>
                            </div>

                        </div>

                    </div>
                </section>

        <?php }
            elseif($columnType == 'Rightimage'){ ?>

                <section class="scrollHolder new_success_stories_<?php echo $columnType; ?>">

                    <div class="wrapper">

                        <div class="container">

                            <div class="textContainer">
                                <?php if(have_rows('2_small_column_image_right')): ?>
                                <?php while(have_rows('2_small_column_image_right')): the_row(); ?>
                                    
                                    <div class="holder">
                                        <?php if(get_sub_field('title')){ ?>
                                            <h2><?php the_sub_field('title'); ?></h2>
                                        <?php } ?>

                                        <?php if(get_sub_field('description')){ ?>
                                            <p><?php the_sub_field('description'); ?></p>
                                        <?php } ?>
                                    </div>

                                <?php endwhile; endif; ?>
                            </div>

                            <?php if(have_rows('2_small_column_image_right')): ?>
                            <?php while(have_rows('2_small_column_image_right')): the_row(); ?>

                                <?php $sctRightimage = get_sub_field('image'); ?>

                            <?php endwhile; endif; ?>
                            <div class="imageContainer">
                                <div class="imageHolder" style="background-image: url('<?= $sctRightimage['url']; ?>');"></div>
                            </div>
                        </div>
                    </div>
                </section>

        <?php }
            elseif($columnType == 'Images'){ ?>

                <section class="scrollHolder new_success_stories_<?php echo $columnType; ?>">

                    <div class="wrapper">

                        <div class="container">

                            <?php if(have_rows('2_small_column_images')): ?>
                            <?php while(have_rows('2_small_column_images')): the_row(); ?>

                                <?php $cntImgLeft = get_sub_field('image_left'); ?>

                            <?php endwhile; endif; ?>

                            <div class="imageContainer Flleft">

                                <div class="imgcontLeft" style="background-image: url('<?= $cntImgLeft['url']; ?>');"></div>
                            </div>

                            <?php if(have_rows('2_small_column_images')): ?>
                            <?php while(have_rows('2_small_column_images')): the_row(); ?>

                                <?php $cntImgRight = get_sub_field('image_right'); ?>

                            <?php endwhile; endif; ?>

                            <div class="imageContainer Flright">
                                <div class="imgcontRight" style="background-image: url('<?= $cntImgRight['url']; ?>');"></div>
                            </div>

                        </div>
                    </div>
                </section>
            <?php }
                elseif($columnType == 'Textboxes'){ ?>
                    <section class="scrollHolder new_success_stories_<?php echo $columnType; ?>">

                        <div class="wrapper">

                            <div class="container">

                                <?php if(have_rows('2_small_column_textboxes')): ?>
                                <?php while(have_rows('2_small_column_textboxes')): the_row(); ?>

                                    <?php $txtboxHead = get_sub_field('header'); ?>
                                    <?php $txtboxLeft = get_sub_field('left_textbox'); ?>
                                    <?php $txtboxRight = get_sub_field('right_textbox'); ?>

                                    <div class="mainContainer">

                                        <div class="headerContainer">
                                            <h2><?= $txtboxHead; ?></h2>
                                        </div>

                                        <div class="textContainer">
                                            <div class="textboxLeft">
                                                <p><?= $txtboxLeft; ?></p>
                                            </div>

                                            <div class="textboxRight">
                                                <p><?= $txtboxRight; ?></p>
                                            </div>
                                        </div>

                                    </div>


                                <?php endwhile; endif; ?>

                            </div>
                        </div>
                    </section>
                <?php } ?>

Zerion Mini Shell 1.0