download.php 2.23 KB
Newer Older
imac's avatar
imac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?php
/**
 * Template Name: Télechargement
 *
 */
$post_ID = 260;
?>
<div id="download" class="clearfix container ">
    <div class="phototheque-content">

        <div class="nav-phototeque container gray-bg row fixed">

            <div class="header">
                <div class = "btn-wrapper row close-panel">
                    <div class="pink-btn circle-btn"><span class = "abs-center backlink">Retour</span></div>
                </div>
                <nav class = "row">
                    <h2 class = "crete big-title">Téléchargement</h2>
                </nav>	
            </div>
        </div>
        <div class="gallery-wrapper right hidden-elem row">
            <div class="panel panel-content product-list transition clearfix list-animation">
                <?php
                if (get_field('telechargement', $post_ID)):
                    $i = 0;
                    while (has_sub_field('telechargement', $post_ID)) :
                        ?>
                        <section id = "cat<?php echo $i; ?>">
                            <h2 class="crete small-title"><?php the_sub_field('tl_titre', $post_ID); ?></h2>
                            <div class="product-list">
                                <?php
                                if (get_sub_field('tl_images', $post_ID)):

                                    while (has_sub_field('tl_images', $post_ID)) :
                                        $options = array();
                                        $options['image'] = get_sub_field('tl_image');
Nahla Shiri's avatar
Nahla Shiri committed
38
                                        $options['title'] = get_sub_field('tl_titre_image');
imac's avatar
imac committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
                                        $options['dwnldLink'] = get_sub_field('tl_link');
                                        echo nap_get_item($post_ID, null, '', $options);
                                        ?>

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

                        <?php
                        $i++;
                    endwhile;
                endif;
                ?>

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