Exemplo n.º 1
0
                                           slideshow: true,
                                           useCSS: false
                                    });
                                });
                            </script>


                    <div class="blog-gallery left">
                        <div class="flexslider">
                            <ul class="slides">
                                 <?php 
            foreach ($slide_images as $the_image) {
                ?>
                                        <li>
                                            <img src="<?php 
                tk_get_thumb(638, 345, $the_image);
                ?>
" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
                                        </li>
                                  <?php 
            }
            ?>
                            </ul>
                        </div><!--/flexslider-->
                    </div><!--/blog-gallery-->
Exemplo n.º 2
0
            $slide_images = get_post_meta($post->ID, $prefix . 'repeatable', true);
            ?>
                                <div class="gallery-images-one left <?php 
            foreach ($post_category as $post_cat) {
                echo 'class-' . $post_cat->term_id . ' ';
            }
            ?>
">
                                    <?php 
            if (!empty($slide_images)) {
                ?>
                                        <?php 
                if (!empty($slide_images)) {
                    ?>
<img src="<?php 
                    tk_get_thumb(238, 287, $slide_images[0]);
                    ?>
" /><?php 
                }
                ?>
                                    <?php 
            }
            // if has image set
            ?>
                                    <div class="gallery-hover">
                                        <div class="gallery-hover-title">
                                            <?php 
            if ($enable_single == 'yes') {
                ?>
                                                <a href="<?php 
                the_permalink();
Exemplo n.º 3
0
    /*   If this type is shown in Blog page                     */
    /*                                                          */
    /************************************************************/
} else {
    $attachments = get_post_meta($post->ID, 'tk_repeatable', true);
    ?>
        <div class="block blog-post">
            <?php 
    if (!empty($attachments[0])) {
        ?>
                <div class="top-content-image">
                    <div class="flexslider">
                        <ul class="slides">
                            <?php 
        foreach ($attachments as $attach) {
            echo '<li><img src="' . tk_get_thumb(724, 318, $attach) . '" alt="' . get_the_title() . '" title="' . get_the_title() . '"/></li>';
        }
        ?>
                        </ul>
                    </div><!-- flex slider -->
                </div>
            <?php 
    }
    ?>

            <div class="top-content-text">
                <?php 
    get_template_part('/templates/parts/entry', 'meta');
    ?>
                <h3><a href="<?php 
    the_permalink();
Exemplo n.º 4
0
        } elseif (get_post_format() == 'gallery') {
            ?>
                                    <div class="top-content-image event-gallery <?php 
            if (empty($attachments[0])) {
                echo 'events-title-no-image';
            }
            ?>
">   
                                        <?php 
            if (!empty($attachments[0])) {
                ?>
                                            <div class="flexslider">
                                                <ul class="slides">
                                                    <?php 
                foreach ($attachments as $attach) {
                    echo '<li><img src="' . tk_get_thumb(1170, 9999, $attach) . '" alt="' . get_the_title() . '" title="' . get_the_title() . '"/></li>';
                }
                ?>
                                                </ul>
                                            </div><!-- flex slider -->                                            
                                        <?php 
            }
            ?>
                                            
                                                                     
                                        <ul class="countdown-<?php 
            echo $post->ID;
            ?>
"></ul>
                                        <?php 
            if (count($event_date) > 1 && count($event_time) > 1) {
                                <span style="display:none !important;">
                                    <?php 
            var_dump($slide_images);
            foreach (array_slice($slide_images, 1) as $the_image) {
                ?>
                                        <a href="<?php 
                echo $the_image;
                ?>
" rel="gallery" class="gallery_box<?php 
                echo $i;
                ?>
" title="<?php 
                echo the_title();
                ?>
"><img src="<?php 
                tk_get_thumb(420, 420, $the_image);
                ?>
" /></a>
                                    <?php 
            }
            ?>
                                </span>
                                


                            <!-- VIDEO FORMAT -->
                            <?php 
        } elseif ($format == 'video') {
            $video_link = get_post_meta($post->ID, 'tk_video_link', true);
            $pos_youtube = strpos($video_link, 'youtube');
            ?>