Module: WeLoveIconFontsHelper

Defined in:
app/helpers/we_love_icon_fonts_helper.rb

Instance Method Summary collapse

Instance Method Details

#iconfont_bitbucket(options = {}) ⇒ Object



20
21
22
23
24
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 20

def iconfont_bitbucket(options = {})
  set_default(options, :background, '#205081')
  set_default(options, :foreground, '#ffffff')
  iconfont('zocial-bitbucket', options)
end

#iconfont_document(options = {}) ⇒ Object



32
33
34
35
36
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 32

def iconfont_document(options = {})
  set_default(options, :background, '#fb7629')
  set_default(options, :foreground, '#ffffff')
  iconfont('entypo-doc-text', options)
end

#iconfont_facebook(options = {}) ⇒ Object



2
3
4
5
6
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 2

def iconfont_facebook(options = {})
  set_default(options, :background, '#4b70ab')
  set_default(options, :foreground, '#ffffff')
  iconfont('fontawesome-facebook', options)
end

#iconfont_github(options = {}) ⇒ Object



14
15
16
17
18
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 14

def iconfont_github(options = {})
  set_default(options, :background, '#333333')
  set_default(options, :foreground, '#ffffff')
  iconfont('fontawesome-github', options)
end

#iconfont_linkedin(options = {}) ⇒ Object



8
9
10
11
12
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 8

def iconfont_linkedin(options = {})
  set_default(options, :background, '#0087be')
  set_default(options, :foreground, '#ffffff')
  iconfont('zocial-linkedin', options)
end

#iconfont_mail(options = {}) ⇒ Object



26
27
28
29
30
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 26

def iconfont_mail(options = {})
  set_default(options, :background, '#dd4b39')
  set_default(options, :foreground, '#ffffff')
  iconfont('zocial-email', options)
end