';
$output .= cpotheme_get_icon($font_library, html_entity_decode($font_value));
if($wrapper != '')
$output .= '';
if($echo == false)
return $output;
else
echo $output;
}
}
//Retrieve the correct library
function cpotheme_get_icon($library, $value){
$result = '';
switch($library){
case 'fontawesome':
$result = cpotheme_icon_library_fontawesome($value);
break;
default:
$result = cpotheme_icon_library_fontawesome($value);
break;
}
return $result;
}
//Icon library for fontawesome
function cpotheme_icon_library_fontawesome($value){
wp_enqueue_style('cpotheme-fontawesome');
return ''.$value.'';
}