# responsive-menu/3.1.12/views/admin/sections/modules/font-icons.html.twig

Responsive Menu – Create Mobile-Friendly Menu, version 3.1.12. 88 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.1.12/code/views/admin/sections/modules/font-icons.html.twig
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.1.12/raw/views/admin/sections/modules/font-icons.html.twig
- Modified: 2018-01-17T18:00:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/responsive-menu/3.1.12/code/views/admin/sections/modules/font-icons.html.twig#L10-L20`.

```twig
{#
    Responsive Menu Jinja template file.
    Safe to Copy
#}

<tr class='pro-row{% if errors.menu_font_icons %} danger{% endif %}'>
    <td class='col-left col-md-3'>
        <label for='items_order' class='control-label'>Font Icons</label>
        <div class='sub-text'>
            Responsive Menu gives you the opportunity to use a selection of brilliant font icon packages or to
            create your own custom ones. Currently we support the following:
            <ul>
                <li><a href='http://fontawesome.io/icons/' target='_blank'>Font Awesome</a></li>
                <li><a href='http://getbootstrap.com/components/#glyphicons' target='_blank'>GlyphIcons</a></li>
                <li>Custom HTML</li>
            </ul>
            For a guide on implementing icons in your menu and for more info please visit our dedicated doc page
            <a href='https://responsive.menu/docs/basic-setup/font-icons/' target='_blank'>here</a>.
        </div>
    </td>
    <td class='col-right pro'>
        <div class="responsive-menu-pro-overlay">
            <a href="https://responsive.menu?utm_source=free-plugin&utm_medium=option&utm_campaign=free-plugin-option-upgrade#pricing"
               target="_blank">Click to upgrade now to use</a>
        </div>
        <table id='font-icon-container'>
            <tr>
                <td style="width: 400px;">Menu Item</td>
                <td style="width: 200px;">Icon</td>
                <td style="width: 250px;">Type</td>
                <td></td>
            </tr>
            {% set icons = options.menu_font_icons|json_decode %}
            {% if icons is iterable %}
                {% set icon_list = font_icons(icons) %}
                {% for icon in icon_list %}
                    {% if icon.type %}
                        <tr>
                            <td>
                                <select class='selectpicker show-tick' name='menu[menu_font_icons][id][]'>
                                    <option value="">Select Menu Item</option>
                                    {% for item in menu_items(options) %}
                                        <option value='{{ item.ID }}' {% if icon.id == item.ID %}selected='selected'{% endif %}>{{ item.title }}</option>
                                    {% endfor %}
                                </select>
                            </td>
                            <td>
                                <input type='text' class='form-control' value='{{ icon.icon|escape }}' name='menu[menu_font_icons][icon][]' placeholder='fa-cog' />
                            </td>
                            <td>
                                <select class='selectpicker show-tick' name='menu[menu_font_icons][type][]'>
                                    <option value='font-awesome' {% if icon.type == 'font-awesome' %}selected='selected'{% endif %}>FontAwesome</option>
                                    <option value='glyphicon' {% if icon.type == 'glyphicon' %}selected='selected'{% endif %}>GlyphIcon</option>
                                    <option value='custom' {% if icon.type == 'custom' %}selected='selected'{% endif %}>Custom</option>
                                </select>
                            </td>
                            <td><span class="label-danger label delete-font-icon-row">x</span></td>
                        </tr>
                    {% endif %}
                {% endfor %}
            {% endif %}
            <tr>
                <td>
                    <select class='selectpicker show-tick' name='menu[menu_font_icons][id][]'>
                        <option value="">Select Menu Item</option>
                        {% for item in menu_items(options) %}
                            <option value='{{ item.ID }}'>{{ item.title }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td>
                    <input type='text' class='form-control' name='menu[menu_font_icons][icon][]' placeholder='cog' />
                </td>
                <td>
                    <select class='selectpicker show-tick' name='menu[menu_font_icons][type][]'>
                        <option value='' selected='selected'>Please Select</option>
                        <option value='font-awesome'>FontAwesome</option>
                        <option value='glyphicon'>GlyphIcon</option>
                        <option value='custom'>Custom</option>
                    </select>
                </td>
                <td></td>
            </tr>
        </table>
        <button id='add-font-icon' class='btn btn-rm btn-primary' type='button'>Add Font Icon</button>
    </td>
</tr>

```
