//
// Graphic.
//
if ( $graphic == 'image' ) {
$graphic = '<div' . $graphic_container_class_style . '>'
. '<div' . $graphic_outer_class_style . '>'
. '<div' . $graphic_inner_class_style . '>'
. '<img class="' . $graphic_shape . '" src="' . $graphic_image . '"' . $graphic_style . '>'
. '</div>'
. '</div>'
. '</div>';
} else if ( $graphic == 'numbers' && $child == 'true' ) {
$graphic = '<div' . $graphic_container_class_style . '>'
. '<div' . $graphic_outer_class_style . '>'
. '<div' . $graphic_inner_class_style . '>'
. '<i class="number w-h ' . $graphic_shape . '"' . $graphic_style . '></i>'
. '</div>'
. '</div>'
. '</div>';
} else {
$graphic = '<div' . $graphic_container_class_style . '>'
. '<div' . $graphic_outer_class_style . '>'
. '<div' . $graphic_inner_class_style . '>'
. '<i class="x-icon-' . $graphic_icon . ' ' . $graphic_shape . '" data-x-icon="&#x' . fa_unicode( $graphic_icon ) . ';"' . $graphic_style . '></i>'
. '</div>'
. '</div>'
. '</div>';
}
Not sure what this was added for in the child theme back in the days. Haven’t been active in themeco and PRO for a long time. Do you know what it’s used for? is there a new change to fa_unicode()?
Fatal error : Uncaught Error: Call to undefined function fa_unicode() in /public_html/wp-content/themes/pro-child/functions.php:225 Stack trace:
Maybe you guys can shine some light on what this is and if I just can do some small changes else than review the whole child themes functions.php for old code that is no longer working or unused?
My worries it that it’s used somewhere with legacy code and would cause issues which I can’t see right now. So best would be just to fix the new alternative to fa_unicode()
Seems to be this full code I used back in the days: