Example #1
0
/**
 * Append icon to a menu item
 *
 * @since 1.6.8
 *
 * @param string $title
 * @param string $id
 *
 * @return string
 */
function themify_add_menu_icon($title, $id = '')
{
    if ('' != $id) {
        if ($icon = themify_get_menu_icon($id)) {
            $title = '<i class="fa ' . esc_attr(themify_get_fa_icon_classname($icon)) . '"></i> ' . $title;
        }
    }
    return $title;
}
Example #2
0
    } else {
        ?>
                        <?php 
        if ('' != $icon_bg_feature) {
            ?>
<div class="module-feature-background" style="background: <?php 
            echo esc_attr($this->get_rgba_color($icon_bg_feature));
            ?>
"></div><?php 
        }
        ?>
                        <?php 
        if ('' != $icon_feature) {
            ?>
<i class="module-feature-icon fa <?php 
            echo esc_attr(themify_get_fa_icon_classname($icon_feature));
            ?>
" style="color: <?php 
            echo esc_attr($this->get_rgba_color($icon_color_feature));
            ?>
"></i><?php 
        }
        ?>
                    <?php 
    }
    ?>

                </div><!-- .chart -->

                <?php 
    if ('' != $link_feature) {