icons, true ) ) { $this->icons[] = $icon; } } /** * Adds a font icon to footer the web page. * * @since 1.0.0 */ public function add_icons() { if ( empty( $this->icons ) ) { return; } $icons = ''; require_once get_parent_theme_file_path( 'lib/icons/svg-fonts.php' ); $icons_def = bayleaf_get_font_icons_def(); foreach ( $this->icons as $icon ) { if ( isset( $icons_def[ $icon ] ) ) { $icons .= $icons_def[ $icon ]; } } $icons .= ''; echo $icons; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /** * Returns the instance of this class. * * @since 1.0.0 * * @return object Instance of this class. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } } Icon_Loader::init();