slider_two.php

Download Link
 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
<!-- Banner starts here -->
<div class="banner">
    <div class="banner-frame">
    <?php
        if(is_array(mytheme_option('sliders'))):
            $slides = mytheme_option('sliders'); ?>
            <div id="slider">
            <?php
                foreach($slides as $slide):
                    echo get_the_post_thumbnail($slide, 'sliderImage', array('title' => '#htmlid'.$slide));
                endforeach; ?>
            </div>
            <?php
                foreach($slides as $slide):
                    $temppost = get_post($slide); ?>
                    <!--<div id="htmlid<?php //echo $slide; ?>" class="nivo-html-caption">
                        <h1><?php //echo $temppost->post_title; ?></h1>
                        <p><?php //echo $temppost->post_content; ?></p>
                    </div>--><?php
                endforeach; ?>
                <div class="banner-green-bg-lf"></div>
                <div class="banner-green-bg-rg"></div><?php
        else:
            echo '<h2>'.__('Sorry! Sliders Not Found.', IAMD_TEXT_DOMAIN).'</h2>';
            echo '<p>'.__('Please check slider settings in admin panel.', IAMD_TEXT_DOMAIN).'</p>';
        endif;?>
    </div>
</div>
<!-- Banner ends here -->
<div class="banner-bottom"></div>