Exemplo n.º 1
0
        ?>
 data-arrows=<?php 
        echo $direction;
        ?>
 data-style=<?php 
        echo $effect;
        ?>
 data-pause="yes" data-speed=<?php 
        echo $speed;
        ?>
>
                <ul class="slides">
                    <?php 
        foreach ($custom_home['imic_pages_slider_image'] as $custom_home_image) {
            $src = wp_get_attachment_image_src($custom_home_image, 'full');
            $attachment_meta = imic_wp_get_attachment($custom_home_image);
            $caption = $attachment_meta['caption'];
            $slide_meta = '';
            $url = $attachment_meta['url'];
            if (!empty($url)) {
                $slide_meta = '<a href="' . $url . '"></a>';
            }
            if (!empty($caption)) {
                $slide_meta = '<span class="container">
                                                              <span class="slider-caption">
                                                                       <span>' . $caption . '</span>
                                                              </span>
                                               </span>';
            }
            if (!empty($caption) && $url) {
                $slide_meta = '<a href="' . $url . '"><span class="container">
Exemplo n.º 2
0
        <ul class="owl-carousel carousel-alt" data-columns="1" data-autoplay="" data-pagination="no" data-arrows="<?php 
    echo esc_attr($arrows);
    ?>
" data-single-item="no" data-items-desktop="1" data-items-desktop-small="1" data-items-mobile="1" data-items-tablet="1" <?php 
    if (isset($imic_options['enable_rtl']) && $imic_options['enable_rtl'] == 1) {
        ?>
data-rtl="rtl"<?php 
    } else {
        ?>
 data-rtl="ltr" <?php 
    }
    ?>
>
         <?php 
    foreach ($images as $image) {
        $attachment_meta = imic_wp_get_attachment($image);
        ?>
    	<li class="item"><img src=" <?php 
        echo esc_url($attachment_meta['src']);
        ?>
 " alt="" title="<?php 
        echo esc_attr($attachment_meta['caption']);
        ?>
"></li>
        <?php 
    }
    ?>
        </ul>
        <!-- End Hero Carousel -->
   	</div>
<?php 
Exemplo n.º 3
0
        ?>
        	<li class=" parallax" style="background-image:url(<?php 
        echo esc_url($image_src[0]);
        ?>
); height:<?php 
        echo esc_attr($height) . 'px';
        ?>
;">
            <?php 
        if (!empty($url)) {
            echo '<a href="' . $url . '" class="fslider-full-link"></a>';
        }
        ?>
            <div class="flex-caption" data-appear-animation="fadeInRight" data-appear-animation-delay="500">
            <?php 
        $image_data = imic_wp_get_attachment($image);
        ?>
                	<strong><?php 
        echo esc_attr($image_data['caption']);
        ?>
</strong>
                	<p><?php 
        echo esc_attr($image_data['description']);
        ?>
</p>
               	</div>
            </li>
			<?php 
    }
    ?>
            </ul>