public function render($loop)
    {
        ?>
<div class="slider_wrapper">
	<div id="roundabout" style="display:none;">
		<ul>
			<?php 
        while ($loop->have_posts()) {
            $loop->the_post();
            if (!get_post_thumbnail_id()) {
                continue;
            }
            $this->target_link = metaboxesGenerator::the_superlink();
            ?>
			<li><?php 
            the_post_thumbnail('slider_roundabout', array('title' => false));
            ?>
</li>
			<?php 
        }
        ?>
		</ul>
	</div>
</div>
<?php 
    }
Beispiel #2
0
    public function render($loop)
    {
        ?>
<div class="slider_wrapper">
	<div id="s3slider">
		<ul id="s3sliderContent">
			<?php 
        $i = 0;
        while ($loop->have_posts()) {
            $loop->the_post();
            if (!get_post_thumbnail_id()) {
                continue;
            }
            $this->target_link = metaboxesGenerator::the_superlink();
            $i++;
            ?>
			<li class="s3sliderImage">
				<?php 
            the_post_thumbnail('slider_serie3', array('title' => false));
            echo $this->get_caption($i);
            ?>
			</li>
			<?php 
        }
        ?>
			<div class="clear s3sliderImage"></div>
		</ul>
	</div>
</div>
<?php 
    }
Beispiel #3
0
    public function render($loop)
    {
        ?>
<div class="slider_wrapper">
	<div id="round-slider" style="display:none;">
		<?php 
        $_links = array();
        while ($loop->have_posts()) {
            $loop->the_post();
            if (!get_post_thumbnail_id()) {
                continue;
            }
            $img_attr = array('title' => false);
            if ($this->linked_slide) {
                $target_link = metaboxesGenerator::the_superlink();
                if (!empty($target_link)) {
                    $_links['slide-' . get_the_ID()] = $target_link;
                    $img_attr['rel'] = '#slide-' . get_the_ID();
                }
            }
            the_post_thumbnail('slider_round', $img_attr);
        }
        ?>
	</div>
	<div id="round-slider-links" style="display:none;">
		<?php 
        foreach ($_links as $_key => $_link) {
            ?>
		<?php 
            echo "<a id=\"{$_key}\" href=\"{$_link}\"></a>";
            ?>
		<?php 
        }
        ?>
	</div>
</div>
<?php 
    }
Beispiel #4
0
            ?>
						<div class="commentbox"><a href="<?php 
            echo get_comments_link();
            ?>
" title="<?php 
            comments_number();
            ?>
"><?php 
            comments_number('0', '1', '%');
            ?>
</a></div>
						<?php 
        }
        ?>
						<?php 
        $target_link = metaboxesGenerator::the_superlink('target_link');
        $taget_text = get_option('portfolio_target_text');
        if (!empty($target_link)) {
            ?>
						<p><a href="<?php 
            echo $target_link;
            ?>
" title="<?php 
            echo $taget_text;
            ?>
" class="btn" target="_blank"><?php 
            echo $taget_text;
            ?>
</a></p>
						<?php 
        }
Beispiel #5
0
    public function render($loop)
    {
        ?>
<div class="slider_wrapper">
	<div id="nivo-slider">
		<?php 
        while ($loop->have_posts()) {
            $loop->the_post();
            if (!get_post_thumbnail_id()) {
                continue;
            }
            $this->target_link = metaboxesGenerator::the_superlink();
            $full_thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'slider_nivo');
            $src = get_bloginfo('template_url') . "/timthumb.php?src={$full_thumbnail[0]}&w=80&h=50&zc=1";
            $this->get_caption();
            the_post_thumbnail('slider_nivo', array('alt' => $src, 'title' => '#slide-' . get_the_ID()));
        }
        ?>
	</div>
	<?php 
        echo $this->captions;
        ?>
</div>
<?php 
    }
Beispiel #6
0
    public function render($loop)
    {
        ?>
<div class="slider_wrapper">
	<div id="orbit-slider">
		<?php 
        while ($loop->have_posts()) {
            $loop->the_post();
            if (!get_post_thumbnail_id()) {
                continue;
            }
            $this->target_link = metaboxesGenerator::the_superlink();
            the_post_thumbnail('slider_orbit', array('title' => false, 'alt' => 'post' . get_the_ID()));
            $this->get_caption();
        }
        echo $this->captions;
        ?>
	</div>
</div>
<?php 
    }
Beispiel #7
0
    public function render($loop)
    {
        ?>
		<ul id="anythingSlider" style="display:none;">
			<?php 
        while ($loop->have_posts()) {
            $loop->the_post();
            $this->target_link = metaboxesGenerator::the_superlink();
            $slide_type = get_post_meta(get_the_ID(), 'anything_slide_type', true);
            $video_link = get_post_meta(get_the_ID(), 'anything_video_link', true);
            if (!empty($video_link)) {
                $slide_type = 'video';
            }
            ?>
			<li><?php 
            switch ($slide_type) {
                case 'video':
                    echo $this->getVideoObject($video_link);
                    break;
                case 'text':
                    the_content();
                    break;
                case 'image_text':
                    if (!get_post_thumbnail_id()) {
                        continue;
                    }
                    $caption = parent::get_caption();
                    $position = get_post_meta(get_the_ID(), 'anything_text_position', true);
                    if (empty($position)) {
                        $position = $this->default_text_position;
                    }
                    ?>
						<div class="text_slide_<?php 
                    echo $position;
                    ?>
">
							<div class="pic"><?php 
                    the_post_thumbnail('slider_anything_small', array('title' => false));
                    ?>
</div>
							<div class="txt"><?php 
                    echo $caption;
                    ?>
</div>
							<div class="clear"></div>
						</div>
					<?php 
                    break;
                case 'image':
                default:
                    if (!get_post_thumbnail_id()) {
                        continue;
                    }
                    echo $this->get_caption();
                    the_post_thumbnail('slider_anything_big', array('title' => false));
                    break;
            }
            ?>
</li>
			<?php 
        }
        ?>
		</ul>
<?php 
    }