lib/maglove/widgets/slider.rb in maglove-widgets-2.0.1 vs lib/maglove/widgets/slider.rb in maglove-widgets-2.0.2
- old
+ new
@@ -33,18 +33,16 @@
classes = ["owl-carousel", "owl-loaded", "owl-text-select-on", "owl-theme"]
classes.push("position-#{@options[:buttons_position]}") unless @options[:buttons_position].empty?
classes.join(" ")
end
- module Helpers
- def slider_widget(options = {}, &block)
- widget_block(Widgets::Slider.new(options)) do |widget|
- haml_tag :div, widget.slider_options do
- yield if block
- end
- end
+ def template(&block)
+ haml_tag :div, slider_options do
+ yield if block
end
+ end
+ module Helpers
def slider_item(options = {}, &block)
haml_tag :div, class: "item" do
yield if block
drop_container
end