Module: Maglove::Widgets::Helpers

Defined in:
lib/maglove/widgets/banner.rb

Instance Method Summary collapse

Instance Method Details



16
17
18
19
20
21
22
23
24
25
# File 'lib/maglove/widgets/banner.rb', line 16

def banner_widget(options = {}, &block)
  widget_block(Widgets::Banner.new(options)) do |widget|
    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