* @copyright Copyright (c) 2018, Chris Baldelomar * @link https://webplantmedia.com/product/brimstone-wordpress-theme/ * @license http://www.gnu.org/licenses/gpl-2.0.html */ /** * Parse social menu * * @since Brimstone 1.01 * * @param string $item_output * @param mixed $item * @param int $depth * @param object $args * @return string */ function brimstone_nav_menu_social_icons( $item_output, $item, $depth, $args ) { // Get supported social icons. $social_icons = brimstone_social_links_icons(); $known = false; // Change icon inside social links menu if there is supported URL. if ( 'social' === $args->theme_location ) { foreach ( $social_icons as $attr => $value ) { if ( false !== strpos( $item_output, $attr ) ) { $item_output = str_replace( '