Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use icon helper with different icon-set #392

Merged
merged 1 commit into from
Sep 24, 2015
Merged

Use icon helper with different icon-set #392

merged 1 commit into from
Sep 24, 2015

Conversation

bigfoot90
Copy link
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
Member

Thank you very much.

@bigfoot90
Copy link
Contributor Author

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

@florianeckerstorfer
Copy link
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