?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/kerge/framework-customizations/extensions/megamenu/views/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/kerge/framework-customizations/extensions/megamenu

?? Viewing: item-link.php

<?php if (!defined('FW')) die('Forbidden');

// file: {theme}/framework-customizations/extensions/megamenu/views/item-link.php

/**
 * @var WP_Post $item
 * @var string $title
 * @var array $attributes
 * @var object $args
 * @var int $depth
 */

{
    $icon_html = '';

    if (
        fw()->extensions->get('megamenu')->show_icon()
        &&
        ($icon = fw_ext_mega_menu_get_meta($item, 'icon'))
    ) {
        $icon_html = '<i class="menu-icon '. $icon .'"></i> ';
    }
}

// Make a menu WordPress way
echo wp_kses_post($args->before);
echo wp_kses_post(fw_html_tag('a', $attributes, $args->link_before . $icon_html . $title . $args->link_after));
echo wp_kses_post($args->after);


??

??