?>
]" href="<?php 
print img_original_url($post->ID);
?>
">
							<?php 
if ($masonry == true) {
    ?>
<img src="<?php 
    print img_masonry_url($post->ID);
    ?>
" alt="" /><?php 
} else {
    ?>
<img src="<?php 
    print img_gallery_url($post->ID);
    ?>
" alt="" /><?php 
}
?>

						</a>
						<a class="portfolio_entry_bigger_image prettyPhoto prettyPhoto[works-<?php 
echo $ix;
?>
]" href="<?php 
print img_original_url($post->ID);
?>
"></a>
					</div> 
				</div>
function recent_blogposts($atts, $content = null)
{
    $ccolumn = "";
    extract(shortcode_atts(array('title' => 'From our Blog', 'number' => '3', 'column' => '3', 'order' => 'ASC', 'before' => '', 'after' => '', 'text' => '150', 'readmore' => 'true', 'image' => 'true', 'headline' => 'true'), $atts));
    $echo = "";
    $i = "1";
    $z = "";
    switch ($column) {
        case "2":
            $ccolumn = "one_half";
            break;
        case "3":
            $ccolumn = "one_third";
            break;
        case "4":
            $ccolumn = "one_fourth";
            break;
        case "5":
            $ccolumn = "one_fifth";
            break;
    }
    $echo .= "<p>" . html_entity_decode($before) . "</p>";
    global $post;
    $args = array('numberposts' => $number, 'offset' => 0, 'orderby' => $order);
    $myposts = get_posts($args);
    foreach ($myposts as $post) {
        setup_postdata($post);
        $z++;
        if ($i == $column) {
            $stoper = "_last";
            $i = 1;
            $stopdiv = "<div class='clear'></div>";
        } else {
            $i++;
            $stoper = "";
            $stopdiv = "";
        }
        $echo .= "<div class='{$ccolumn}{$stoper} shortcode_posts'>";
        if ($image != "false") {
            if (has_post_thumbnail()) {
                $echo .= "<div class='widget_posts_left'>";
                $echo .= "<a href='" . get_permalink() . "'><img src='" . img_gallery_url($post->ID) . "' alt='' />";
                //get_the_post_thumbnail($post->ID,array('50','50'));
                $echo .= "</a></div>";
            }
        }
        $echo .= "<div class='sc_posts_content'>";
        if ($headline != "false") {
            ?>
 	
					<?php 
            $echo .= "<h5><a href='" . get_permalink() . "'>" . get_the_title() . "</a></h5><p class='sc_posts_date'>" . get_the_date() . "</p>";
        }
        $echo .= "<div>";
        $content = do_shortcode(get_the_content());
        if ($text != "0" and $text != "") {
            if (strlen("{$content}") > $text) {
                $content = substr($content, 0, strpos($content, " ", $text) + 1);
            }
            $echo .= "<p>" . strip_tags($content) . "</p>";
        }
        $echo .= "<div>";
        if ($readmore == "true") {
            $echo .= "<a class='button sc_button " . load_option('primary_button') . "' href='" . get_permalink() . "'>read more...</a>";
        }
        $echo .= "</div></div><div class='clear'></div></div>";
        $echo .= "</div>";
        $echo .= $stopdiv;
    }
    wp_reset_query();
    $echo .= "<p>" . html_entity_decode($after) . "</p>";
    return $echo;
}