">
			<?php 
        // get the media elements
        $mediaType = get_post_meta($post->ID, 'tz_portfolio_type', true);
        switch ($mediaType) {
            case "Image":
                tz_image($post->ID, 'portfolio-main');
                break;
            case "Slideshow":
                tz_gallery($post->ID, 'portfolio-main');
                break;
            case "Grid Gallery":
                tz_grid_gallery($post->ID, 'portfolio-main');
                break;
            case "Video":
                tz_video($post->ID);
                break;
            case "Audio":
                tz_audio($post->ID);
                break;
            default:
                break;
        }
        ?>
				<!--BEGIN .pager .single-pager -->
				<ul class="pager single-pager">
				<?php 
        if (get_previous_post()) {
            ?>
					<li class="previous"><?php 
            previous_post_link('%link', theme_locals("prev_post"));
Пример #2
0
<div <?php 
post_class();
?>
 id="post-<?php 
the_ID();
?>
">

    <?php 
if (!is_singular()) {
    $embed = get_post_meta(get_the_ID(), 'tz_video_embed', TRUE);
} else {
    $embed = get_post_meta(get_the_ID(), 'tz_video_embed_single', TRUE);
}
if ($embed == '') {
    tz_video(get_the_ID());
    $height = get_post_meta(get_the_ID(), 'tz_video_height', TRUE);
    $heightSingle = get_post_meta(get_the_ID(), 'tz_video_height_single', TRUE);
    ?>

        <style type="text/css">
            #jquery_jplayer_<?php 
    echo get_the_ID();
    ?>
 {
            	height: <?php 
    echo $height;
    ?>
px;
            }
            .single #jquery_jplayer_<?php