I'm trying to add fontawesome icons to CB Registration.
Code:
// $ui is not used anymore:
function cbFieldTip($ui, $fieldTip, $tipTitle='', $width='', $image='images/mini-icons/icon-16-info.png', $htmltext='', $href='', $style='', $olparams='',$click=false) {
$altText = ' alt="' . strip_tags( sprintf( _UE_INFORMATION_FOR_FIELD, htmlspecialchars( $tipTitle ), htmlspecialchars( $fieldTip ) ) ) . '" title=""';
// overlib_mini does not support newlines:
if (strpos($fieldTip, "<") === false) {
$fieldTip = str_replace("\r\n", "<br />", $fieldTip);
$fieldTip = str_replace("\n", "<br />", $fieldTip);
} else {
$fieldTip = str_replace("\r\n", " ", $fieldTip);
$fieldTip = str_replace("\n", " ", $fieldTip);
}
$fieldTip = str_replace(array('"','<','>',"\\"), array(""","<",">","\\\\"), $fieldTip);
$tipTitle = str_replace(array('"','<','>',"\\"), array(""","<",">","\\\\"), $tipTitle);
$fieldTip = str_replace(array("'","'","'"), "\\'", $fieldTip);
$tipTitle = str_replace(array("'","'","'"), "\\'", $tipTitle);
return CB45_mosToolTip( $ui, $fieldTip, $tipTitle, $width, $image, $htmltext, $href, $style, $olparams, $click, $altText );
}
I want to insert <i class style="fa fa-info-circle fa-1"></i> instead of <img src.......>
I understand html and css but this is a bit way over my knowledge, if someone can help i would be most appreciatted.