Example #1
0
    /**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        echo $before_widget;
        /* Display the widget title if one was input */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			
			<?php 
        $missedit = argo_get_featured_posts(array('offset' => 3, 'showposts' => 2));
        if ($missedit->have_posts()) {
            ?>
             	 <?php 
            while ($missedit->have_posts()) {
                $missedit->the_post();
                ?>
                  	<div class="post-lead">
                      	<?php 
                the_post_thumbnail('60x60');
                ?>
                      	<h5><a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a></h5>
                     	<?php 
                the_excerpt();
                ?>
                  	</div> <!-- /.post-lead -->
            <?php 
            }
            ?>
            <?php 
        } else {
            ?>
    		<p class="error">You're currently featuring 3 or fewer posts. Mark more posts as featured on the add/edit post screen to populate this region.</p>
        
         <?php 
        }
        // end more featured posts
        ?>
         
		<?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
Example #2
0
" height="<?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
" alt="<?php 
    esc_attr(get_bloginfo('name', 'display'));
    ?>
">
				</a>
			<?php 
}
?>
			
		</div><!-- end .grid_6 -->
		<div class="grid_6 featured-posts">
            <?php 
$featured = argo_get_featured_posts();
$slot = 1;
while ($featured->have_posts()) {
    $featured->the_post();
    ?>

                <div id="feature<?php 
    echo $slot;
    ?>
" class="features">
                    <a href="<?php 
    the_permalink();
    ?>
" title="headline">
                        <?php 
    the_post_thumbnail();