Exemplo n.º 1
0
<?php

if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {
    ?>
<div class="post-media">
	<a href="<?php 
    echo get_large_thumb();
    ?>
" rel="prettyPhoto"><?php 
    tie_thumb(tie_post_width());
    ?>
</a>
</div>
<?php 
}
?>

<?php 
if (is_singular()) {
    ?>
	<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
	<?php 
    tie_include('post-meta');
    // Get Post Meta template
    ?>
	
	<div class="entry">
		<?php 
Exemplo n.º 2
0
function tie_gallery()
{
    global $post, $tie_blog;
    if (is_singular() || tie_get_option('on_home') != 'grid' || isset($tie_blog)) {
        $size = 'post';
    } else {
        if (tie_post_width() == 'w2') {
            $size = 'w2';
        } elseif (tie_post_width() == 'w3') {
            $size = 'w3';
        } else {
            $size = 'w1';
        }
    }
    $speed = 7000;
    $time = 600;
    $effect = 'animation: "fade",';
    ?>
	<?php 
    $custom = get_post_custom($post->ID);
    $slider = unserialize($custom["post_gallery"][0]);
    $number = count($slider);
    $imgaes = array();
    if ($slider) {
        foreach ($slider as $slide) {
            $image = wp_get_attachment_image_src($slide['id'], 'tie-' . $size);
            $imgaes[] = array($image[0], $image[1], $image[2]);
        }
        ?>
		
	<div class="flexslider">
		<ul class="slides">
		<?php 
        foreach ($imgaes as $image) {
            ?>
			  
		<li><img src="<?php 
            echo $image[0];
            ?>
" alt="" /></li>
		<?php 
        }
        ?>
		</ul>
	</div>
		<?php 
    }
    ?>
	<script>
	jQuery(document).ready(function() {
		jQuery('#content').imagesLoaded(function(){

		  jQuery('.flexslider').flexslider({
			<?php 
    echo $effect;
    ?>
			slideshowSpeed: <?php 
    echo $speed;
    ?>
,
			animationSpeed: <?php 
    echo $time;
    ?>
,
			randomize: false,
			controlNav: false,
			pauseOnHover: true,
			smoothHeight : true,
			start: function(slider) {
				var slide_control_width = 100/<?php 
    echo $number;
    ?>
;
				jQuery('.flex-control-nav li').css('width', slide_control_width+'%');
				jQuery('#main-content #grid').isotope();
			},
			after: function() {
				jQuery('#main-content #grid').isotope();
			}
		  });
		  
		});
	});
	</script>
<?php 
}
Exemplo n.º 3
0
</h2>
		<div class="entry">
			<p><?php 
    _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie');
    ?>
</p>
			<?php 
    get_search_form();
    ?>
		</div>
	</div>

<?php 
} else {
    $count = 0;
    $post_width = tie_post_width();
    $exc_home_cats = tie_get_option('exc_home_cats');
    if (is_home() && $exc_home_cats) {
        query_posts(array('category__not_in' => $exc_home_cats, 'paged' => $paged));
    }
    while (have_posts()) {
        the_post();
        $count++;
        $color = '';
        $get_meta = get_post_custom($post->ID);
        $tie_post_color = $get_meta["tie_post_color"][0];
        if (!empty($tie_post_color)) {
            $color = 'custom-color ' . $tie_post_color;
        }
        ?>
	<article <?php