Module: Maglove::Widgets::Helpers
- Defined in:
- lib/maglove/widgets/banner.rb
Instance Method Summary collapse
Instance Method Details
#banner_widget(options = {}, &block) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/maglove/widgets/banner.rb', line 16 def ( = {}, &block) (Widgets::Banner.new()) do || haml_tag :div, class: "banner-outer align-#{widget.options[:alignment]}" do haml_tag :div, class: "banner banner-#{widget.options[:style]}" do yield if block drop_container end end end end |