Module: PandaCms::ThemeHelper

Defined in:
app/helpers/panda_cms/theme_helper.rb

Instance Method Summary collapse

Instance Method Details

#h1(text, icon: "", additional_styles: "") ⇒ Object

TODO: Move these into one method?



4
5
6
# File 'app/helpers/panda_cms/theme_helper.rb', line 4

def h1(text, icon: "", additional_styles: "")
  render HeadingComponent.new(text: text, level: 1, icon: icon, additional_styles: additional_styles)
end

#h2(text, icon: "", additional_styles: "") ⇒ Object



8
9
10
# File 'app/helpers/panda_cms/theme_helper.rb', line 8

def h2(text, icon: "", additional_styles: "")
  render HeadingComponent.new(text: text, level: 2, icon: icon, additional_styles: additional_styles)
end

#h3(text, icon: "", additional_styles: "") ⇒ Object



12
13
14
# File 'app/helpers/panda_cms/theme_helper.rb', line 12

def h3(text, icon: "", additional_styles: "")
  render HeadingComponent.new(text: text, level: 3, icon: icon, additional_styles: additional_styles)
end