%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php 

$count = 0;
$postLink = get_post_permalink(); ?>

<?php if( have_rows('new_success_stories') ):

    while( have_rows('new_success_stories') ): the_row(); 

        $count++;
        
        /*----------------------------------------------------
        * VARIABLES
        ----------------------------------------------------*/

        //Radiobutton
        $columnType          = get_sub_field('column_layout');
        
        //Large
        $largeTitle          = get_sub_field('title_large');
        $largeDesc           = get_sub_field('short_description_large');
        $largeImg            = get_sub_field('background_image_large');

        //Leftimage
        $leftImg             = get_sub_field('image_left');
        $leftTitle           = get_sub_field('title_left');
        $leftDesc            = get_sub_field('description_left');

        //Rightimage
        $rightTitle          = get_sub_field('title_right');
        $rightDesc           = get_sub_field('description_right');
        $rightImg            = get_sub_field('image_right');

        //Images        
        $imagesLeft          = get_sub_field('left_image_images');
        $imagesRight         = get_sub_field('right_image_images');

        //Textboxes
        $boxHeader           = get_sub_field('header_text');
        $boxLeft             = get_sub_field('left_textbox_text');
        $boxRight            = get_sub_field('right_textbox_text');

         /*----------------------------------------------------
        * RADIOBUTTON CHOICES
        ----------------------------------------------------*/

            if($columnType == 'large') : ?>
                
                <section id="<?= $count; ?>" class="scrollHolder new_success_stories_<?php echo $columnType; ?>" style="background-image: url('<?= $largeImg['url']; ?>'); margin-top:-1px!important;" data-anchor="page-<?= $count; ?>">

                        <div class="wrapper">
                            <div class="textContainer">
                                <h2><?= $largeTitle; ?></h2>
                                <p><?= $largeDesc; ?></p>
                            </div>
                        </div>

                    </section>
            
            <?php elseif($columnType == 'leftimage') : ?>

                <section id="<?= $count; ?>" class="scrollHolder new_success_stories_<?php echo $columnType; ?>"  data-anchor="page-<?= $count; ?>">
                    <div class="wrapper">
                        <div class="container">
                         
                            <div class="imageContainer">
                                <div class="imageHolder" style="background-image: url('<?= $leftImg['url']; ?>');"></div>
                            </div>

                            <div class="textContainer">
                                <div class="holder">
                                    <h2><?= $leftTitle; ?></h2>
                                    <p><?= $leftDesc; ?></p>
                                </div>
                            </div>

                        </div>
                    </div>
                </section>

            <?php elseif($columnType == 'rightimage') : ?>

                <section id="<?= $count; ?>" class="scrollHolder new_success_stories_<?php echo $columnType; ?>"  data-anchor="page-<?= $count; ?>">
                    <div class="wrapper">
                        <div class="container">

                             <div class="textContainer">
                                <div class="holder">
                                    <h2><?= $rightTitle; ?></h2>
                                    <p><?= $rightDesc; ?></p>
                                </div>
                            </div>
                            
                            <div class="imageContainer">
                                <div class="imageHolder" style="background-image: url('<?= $rightImg['url']; ?>');"></div>
                            </div>

                        </div>
                    </div>
                 </section>

            <?php elseif($columnType == 'images') : ?>

                  <section id="<?= $count; ?>" class="scrollHolder new_success_stories_<?php echo $columnType; ?>" data-anchor="page-<?= $count; ?>">
                    <div class="wrapper">
                        <div class="container">

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

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

                        </div>
                    </div>
                </section>

            <?php elseif($columnType == 'textboxes') : ?>

                <section id="<?= $count; ?>" class="scrollHolder new_success_stories_<?php echo $columnType; ?>" data-anchor="page-<?= $count; ?>">
                    <div class="wrapper">
                        <div class="container">

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

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

                                    <div class="textboxRight">
                                        <p><?= $boxRight; ?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
        
            <?php endif;

       /*----------------------------------------------------
        * END OF - RADIOBUTTON CHOICES
        ----------------------------------------------------*/
     ?>

    <?php endwhile; ?>

      <div class="menuContainer">
        <?php foreach (range(1, $count) as $num): ?>
            <li>
                <a id="link-<?= $num; ?>" class="tag" href="#<?= $num; ?>"><span></span></a>
            </li>
        <?php endforeach; ?>
      </div>

<?php endif; ?>

<?php // $num; ?>

Zerion Mini Shell 1.0