?>
]" 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_mini_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 class='lrs'>
						<div>
function portfolio_widget_shortcode($atts, $content = null)
{
    extract(shortcode_atts(array('number' => '5', 'type' => '', 'columns' => '1'), $atts));
    $return = "";
    switch ($columns) {
        case 1:
            $cols = "one";
            break;
        case 2:
            $cols = "one_half";
            break;
        case 3:
            $cols = "one_third";
            break;
        case 4:
            $cols = "one_fourth";
            break;
    }
    if ($type != "") {
        $args = array('numberposts' => $number, 'post_type' => 'portfolio', 'post_status' => 'publish', 'project-type' => $type);
    } else {
        $args = array('numberposts' => $number, 'post_type' => 'portfolio', 'post_status' => 'publish');
    }
    global $post;
    $myposts = get_posts($args);
    foreach ($myposts as $post) {
        setup_postdata($post);
        $ix++;
        if ($ix >= $columns) {
            $last = "_last";
            $clear = "<div class='clear'></div>";
            $ix = 0;
            if ($columns == "1") {
                $last = "";
                $clear = "";
            }
        } else {
            $last = "";
            $clear = "";
        }
        $title = str_ireplace('"', '', trim(get_the_title()));
        $return .= '	<div class="' . $cols . $last . '   portfolio-lists-item-shortcode">
					<h4>' . $title . '</h4>
					<a    class="opacity-hover-bg pretty_portfolio prettyPhoto"  href="' . img_thumbnail_url($post->ID) . '"><img class="opacity-hover" src="' . img_mini_url($post->ID) . '" alt="" /></a>	
					<div class="clear"></div>
					<a class="portfolio_readmore button" href="' . get_permalink() . '">Read more</a>';
        $site = get_post_custom_values('projLink');
        if ($site[0] != "") {
            $return .= '<a class="portfolio_livelink button" target="_blank" href="' . $site[0] . '">Visit the Site</a>';
        }
        if ($columns != 1) {
            $return .= '<div class="clear"></div>';
        }
        $return .= '</div>' . $clear;
    }
    if ($columns != 1) {
        $return .= '<div class="clear"></div>';
    }
    return $return;
}
function blogslider($atts, $content = null)
{
    $type = "";
    extract(shortcode_atts(array('buttons' => true, 'speed' => '1000', 'width' => '', 'height' => '', 'easing' => '', 'items' => '10', 'itemsforward' => '4', 'pauseonhover' => 'true', 'direction' => 'left', 'columns' => '3', 'showtext' => 'false', 'readmore' => 'false', 'headline' => 'false', 'right' => '20', 'image' => 'false', 'number' => '10', 'direction' => 'left', 'auto' => 'false', 'title' => ''), $atts));
    $return = "";
    if ($speed == "") {
        $speed = "1000";
    }
    $rand = substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 5)), 0, 5);
    $return = "<div id='carousel-" . $rand . "' class='carousel-container'>";
    $half_height = $height / 2;
    $return .= "<style type='text/css' scoped><!--#" . $rand . " .blog-lists-item-shortcode {display:inline-block; width:" . $width . "px; margin-right:" . $right . "px;}";
    $return .= " #carousel-" . $rand . "  .carousel-nav {top:0px;}";
    if ($height != "") {
        $return .= " #" . $rand . " {height:" . $height . "px;} #" . $rand . " li, #" . $rand . " > div {  height:" . $height . "px;}";
    }
    if ($width != "") {
        $return .= " #" . $rand . " ul li, #" . $rand . " > div {width:" . $width . "px; }";
    }
    $return .= "--></style>";
    if (isset($title)) {
        $return .= "<h2>" . $title . "</h2>";
    }
    if ($buttons == "true") {
        $return .= "<a id='" . $rand . "-prev' class='carousel-nav carousel-nav-prev' onclick='return false' href='#'>&lt;</a>\r\n\t\t\t<a id='" . $rand . "-next' class='carousel-nav carousel-nav-next' onclick='return false' href='#'>&gt;</a>";
    }
    $return .= "<ul class='carousel template_ul' id='" . $rand . "'>";
    switch ($columns) {
        case 1:
            $cols = "";
            break;
        case 2:
            $cols = "one_half";
            break;
        case 3:
            $cols = "one_third";
            break;
        case 4:
            $cols = "one_fourth";
            break;
    }
    if ($type != "") {
        $args = array('numberposts' => $number, 'post_type' => 'post', 'post_status' => 'publish', 'project-type' => $type);
    } else {
        $args = array('numberposts' => $number, 'post_type' => 'post', 'post_status' => 'publish');
    }
    $ix = "";
    global $post;
    $myposts = get_posts($args);
    foreach ($myposts as $post) {
        setup_postdata($post);
        $ix++;
        $title = str_ireplace('"', '', trim(get_the_title()));
        $desc = str_ireplace('"', '', trim(get_the_content()));
        $return .= '	<li class="ex-' . $cols . ' blog-lists-item-shortcode">';
        if ($image == "true") {
            $return .= '<img src="' . img_mini_url($post->ID) . '" alt="" />';
        }
        if ($headline == "true") {
            $return .= "<h5>" . get_the_title() . "</h5>";
        }
        if ($showtext == "true") {
            $return .= "<p>" . get_the_excerpt() . "</p>";
        }
        if ($readmore == "true") {
            $return .= '<a class="team_readmore button" href="' . get_permalink() . '">Read more</a>';
        }
        $return .= "</li>";
    }
    wp_reset_query();
    $return .= "</ul>";
    $return .= "<script type='text/javascript'>\r\n\t\t<!--//--><![CDATA[//><!--\r\n\t\tjQuery(document).ready(function()\r\n\t\t\t{\r\n\t\t\tjQuery('#carousel-" . $rand . " .carousel ').carouFredSel({\r\n\t\t\t\titems               \t: " . $items . ",\r\n\t\t\t\tdirection           \t: '" . $direction . "',\r\n\t\t\t\t";
    if ($height != "") {
        $return .= "height\t\t: '" . $height . "', ";
    }
    $return .= "\t\t\t\t\r\n\t\t\t\tprev\t\t: '#" . $rand . "-prev',\r\n\t\t\t\tnext\t\t: '#" . $rand . "-next',";
    if ($auto != "true") {
        $return .= "\r\n\t\t\t\tauto :\r\n\t\t\t\t\t{\r\n\t\t\t\t\tplay:\tfalse \r\n\t\t\t\t\t},\r\n\t\t\t";
    }
    $return .= "\t\tscroll : \r\n\t\t\t\t\t{\t";
    if ($easing != "") {
        $return .= "\teasing\t\t: '" . $easing . "', ";
    }
    $return .= "\r\n\t\t            \t\t\titems           : " . $itemsforward . ",\r\n\t\t            \t\t\tduration        : " . $speed . ",                  \r\n\t            \t\t\t\tpauseOnHover    : true\r\n\t        \t\t\t\t} \r\n\t\t\t\t });\r\n\t\t\t";
    if ($height != "") {
        $return .= "\t\t\tjQuery('#" . $rand . "').parent().height('" . $height . "');";
    }
    $return .= "\r\n\t\t\t});\r\n\t\t//--><!]]>\r\n\t\t</script>";
    $return .= "</div>";
    $return .= "<div class='clear'></div>";
    return $return;
}