Skip to content

Use icon helper with different icon-set#392

Merged
florianeckerstorfer merged 1 commit intobraincrafted:developfrom
bigfoot90:icon-prefix
Sep 24, 2015
Merged

Use icon helper with different icon-set#392
florianeckerstorfer merged 1 commit intobraincrafted:developfrom
bigfoot90:icon-prefix

Conversation

@bigfoot90
Copy link
Copy Markdown
Contributor

In my project I'm using three different icon sets fa-* (fontawesome), glyphicons-* (glyphicons), md-* (material-design) for different sections: frontend and backend.

By this commit I can use the icon function like this:

{{ icon('camera') }}
{{ icon('alert', 'md') }}
{{ icon('user+fw', 'fa') }}

and the parse_icons filter like this:

{{ '.icon-heart'|parse_icons }}
{{ '.md-alert'|parse_icons }}
{{ '.fa-user+fw'|parse_icons }}

and will render to:

<i class="glyphicon glyphicon-heart"></i>
<i class="md md-alert"></i>
<i class="fa fa-user fa-fw"></i>

florianeckerstorfer pushed a commit that referenced this pull request Sep 24, 2015
Use icon helper with different icon-set
@florianeckerstorfer florianeckerstorfer merged commit e3026b2 into braincrafted:develop Sep 24, 2015
@florianeckerstorfer
Copy link
Copy Markdown
Member

Thank you very much.

@bigfoot90
Copy link
Copy Markdown
Contributor Author

@florianeckerstorfer Thanks you for merging. When you plan to set a new tag?

@florianeckerstorfer
Copy link
Copy Markdown
Member

I don't know. Just realised how long it had been since the last release. I'll try to squeeze it in this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants