15 lines
No EOL
457 B
Ruby
15 lines
No EOL
457 B
Ruby
#totaal geen plagiaat
|
|
module FontAwesomeHelper
|
|
def fa(icon, opts = {})
|
|
classes = ['fa', "fa-#{icon}"]
|
|
|
|
classes << "fa-#{opts[:size]}" if opts[:size]
|
|
classes << 'fa-li' if opts[:li]
|
|
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
|
|
classes << 'fa-inverse' if opts[:inverse]
|
|
classes << 'fa-fw' if opts[:fw]
|
|
classes << opts[:class]
|
|
|
|
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
|
|
end
|
|
end |