Module: GalleriaHelper
- Defined in:
- app/helpers/galleria_helper.rb
Instance Method Summary collapse
Instance Method Details
#p_galleria(id, options = {}, &block) ⇒ Object
3 4 5 6 |
# File 'app/helpers/galleria_helper.rb', line 3 def p_galleria(id,={},&block) output = galleria_encode_markup(id,,&block) output += galleria_encode_script(id,) end |
#p_galleria_item(options = {}, &block) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/helpers/galleria_helper.rb', line 8 def p_galleria_item(={},&block) = .stringify_keys output = content_tag('li') do src = .delete('src') if block_given? image_tag(src,) + content_tag('div', capture(&block)) else image_tag(src,) end end end |