public function icon($icon, $type = 'fontawesome')
{
switch ($type) {
case 'fontawesome':
$html = '<i class="fa fa-' . $icon . ' fa-fw"></i>';
break;
case 'glyphicon':
$html = '<span class="glyphicon glyphicon-' . $icon . '" aria-hidden="true"></span>';
break;
case 'entypo':
$html = '<i class="entypo-' . $icon . '"></i>';
break;
default:
$html = '<i class="' . $icon . '"></i>';
break;
}
return $this->data('icon', $html);
}