'; } $output .= cpotheme_get_icon( $font_library, html_entity_decode( $font_value ) ); if ( '' != $wrapper ) { $output .= ''; } if ( false == $echo ) { return $output; } else { echo $output; } } } //Retrieve the correct library function cpotheme_get_icon( $library, $value ) { $result = ''; switch ( $library ) { case 'fontawesomesolid': $result = cpotheme_icon_library_fontawesome_solid( $value ); break; case 'fontawesomebrands' : $result = cpotheme_icon_library_fontawesome_brands( $value ); break; case 'fontawesomeregular' : $result = cpotheme_icon_library_fontawesome_regular( $value ); break; default: $result = cpotheme_icon_library_fontawesome_solid( $value ); break; } return $result; } //Icon library for fontawesome function cpotheme_icon_library_fontawesome_regular( $value ) { return '' . $value . ''; } function cpotheme_icon_library_fontawesome_brands( $value ) { return '' . $value . ''; } function cpotheme_icon_library_fontawesome_solid( $value ) { return '' . $value . ''; }