Exemplo n.º 1
0
<div class="page-wrap">
    <div id="main">
	<div class="single_post_module">
		<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
			<div class="single_post_content">
				<?php 
        //miss_before_entry();
        ?>
				<?php 
        miss_before_post(array('post_id' => get_the_ID()));
        ?>
				<div class="clearboth"></div>
				<div class="entry">
					<?php 
        if (miss_get_setting('review') == 'enable') {
            echo the_score($post->ID);
        }
        ?>
					<?php 
        the_content();
        ?>
					<div class="clearboth"></div>
					<?php 
        wp_link_pages(array('before' => '<div class="page_link">' . __('Pages:', MISS_TEXTDOMAIN), 'after' => '</div>'));
        ?>
Exemplo n.º 2
0
    /**
     *
     */
    function miss_featured_post()
    {
        global $wp_query, $irish_framework_params;
        $paged = miss_get_page_query();
        $layout = $irish_framework_params->layout['blog'];
        if (is_archive() || is_search()) {
            return false;
        }
        if ($paged != 1) {
            return false;
        }
        if ($layout['blog_layout'] != 'blog_layout2' && $layout['blog_layout'] != 'blog_layout3') {
            return false;
        }
        $args = array_merge($wp_query->query, array('post_type' => 'post', 'category__not_in' => miss_exclude_category_array($minus = false), 'showposts' => $layout['featured'], 'posts_per_page' => 1, 'offset' => 0));
        $temp = $wp_query;
        $wp_query = null;
        remove_filter('post_limits', 'my_post_limit');
        $wp_query = new WP_Query();
        $wp_query->query($args);
        ?>
<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class($layout['post_class'] . ' featured_post_module');
        ?>
><?php 
        while ($wp_query->have_posts()) {
            $wp_query->the_post();
            ?>
	
		<?php 
            miss_before_post(array('featured_post' => true, 'post_id' => get_the_ID()));
            ?>
	
		<div class="<?php 
            echo $layout['content_class'];
            ?>
">
			
			<?php 
            miss_before_entry();
            ?>

			<div class="post_excerpt">
				<?php 
            miss_post_content(array('featured_post' => true, 'blog_layout' => $layout['blog_layout']));
            ?>
			</div>
			
			<?php 
            miss_after_entry();
            ?>
	
		</div><!-- .content_class -->
		
	<?php 
        }
        ?>
</div><div class="clearboth"></div><?php 
        $wp_query = null;
        $wp_query = $temp;
    }
Exemplo n.º 3
0
 */
get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<div class="single_post_module">
		<div id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
			<?php 
        miss_before_post();
        ?>
			<div class="single_post_content">
			<?php 
        miss_before_entry();
        ?>
			<div class="entry">
				<?php 
        the_content();
        ?>
				<div class="clearboth"></div>
				<?php 
        wp_link_pages(array('before' => '<div class="page_link">' . __('Pages:', MISS_TEXTDOMAIN), 'after' => '</div>'));
        ?>
				<?php 
        edit_post_link(__('Edit', MISS_TEXTDOMAIN), '<div class="edit_link">', '</div>');