function rocknrolla_icon_box_shortcode($atts, $content = null)
{
    extract(shortcode_atts(array("icon" => '', "title" => '', "icon_type" => 'image'), $atts));
    if ($icon_type == 'image') {
        $rnr_icon_type = '<div class="img-container">';
        $rnr_icon_type .= '<img src="' . $icon . '" alt="' . $title . '">';
        $rnr_icon_type .= '</div>  ';
    } else {
        $rnr_icon_type = '<div class="img-container">';
        $rnr_icon_type .= '<i class="' . $icon . '"></i>';
        $rnr_icon_type .= '</div>  ';
    }
    $rnr_icon_box = '<div class="service-features">';
    $rnr_icon_box .= $rnr_icon_type;
    $rnr_icon_box .= '<h3>' . $title . '</h3>                ';
    $rnr_icon_box .= '<p>' . do_Shortcode($content) . '</p>';
    $rnr_icon_box .= '</div>';
    return $rnr_icon_box;
}
  function rocknrolla_icon_box_shortcode( $atts, $content = null ){
          
    extract( shortcode_atts(array(
        "icon" => '',        
        "title" => '',
        "icon_type" => 'image',
		"color" => '',
		"background" => '',
		'animation' => 'fadeInUp'
    ), $atts) );    
	
	$id= rand();
	
	if($background || $color) {
	     $return_colors = '<style type="text/css">#service-features-'.$id.' .img-container { background : '.$background.'; } #service-features-'.$id.' .img-container i{ color: '.$color.'; } #service-features-'.$id.' .img-container:after { border-color: '.$background.'; }</style>';
	}
	else {
		$return_colors ='';
	}	

    if ( $icon_type == 'image' ) {
    	$rnr_icon_type = '<div class="img-container">';
		$rnr_icon_type .= '<img src="'. $icon .'" alt="'. $title .'">';
		$rnr_icon_type .= '</div>  ';
    }
    else {
    	$rnr_icon_type = '<div class="img-container">';
		$rnr_icon_type .= '<i class="fa '. $icon .'"></i>';
		$rnr_icon_type .= '</div>  ';
    }

	$rnr_icon_box = '<div data-effect="' .$animation. '" id="service-features-'.$id.'" class="service-features animated rnr-animate">'.$return_colors;
	$rnr_icon_box .= $rnr_icon_type;
	$rnr_icon_box .= '<h3>'. $title .'</h3>                ';
	$rnr_icon_box .= '<p>'. do_Shortcode($content) .'</p>';
	$rnr_icon_box .= '</div>';

	return $rnr_icon_box;

}
function shortcode_custom_blockquote($atts, $content = null)
{
    $style = $atts['style'];
    switch ($style) {
        case 'green':
            $border = 'border-color:#A5CB5E;';
            break;
        case 'yellow':
            $border = 'border-color:#FEBF4D;';
            break;
        case 'blue':
            $border = 'border-color:#51C4ED;';
            break;
        case 'red':
            $border = 'border-color:#E4436C;';
            break;
        case 'purple':
            $border = 'border-color:#D798D1;';
            break;
        case 'black':
            $border = 'border-color:#444;';
            break;
        case 'grey':
            $border = 'border-color: #ccc;';
            break;
    }
    $str = '';
    $str .= '<blockquote style="' . $border . '">';
    $str .= do_Shortcode($content);
    $str .= '</blockquote>';
    return $str;
}