Sha256: 9c4d00d8459d0e22c5710fc3cfe7cebe90c80985703204561e5f04973dc9fe7b
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
Spree Banner [](https://travis-ci.org/zaeznet/spree_zaez_banner) ============ Adds a way to manage banners to Spree Commerce. Old versions of Spree ------------ For old version of Spree (before 3-0-stable), go to [old extension](https://github.com/zaeznet/spree_banner) (fork of [Damiano Giacomello](https://github.com/damianogiacomello/spree_banner)). Installation ------------ 1. Add the following to your Gemfile ```ruby gem 'spree_zaez_banner' ``` 2. Run `bundle install` 3. To copy and apply migrations run: ``` rails g spree_banner:install ``` Configuration ------------- Preferences can be updated within the admin panel "Banner box settings". Or you may set them with an initializer within your application: ```ruby SpreeBanner::Config.tap do |config| config.banner_styles = {mini: "48x48>", small: "100x100>", large: "800x200#"} config.banner_default_style = 'small' end ``` Banner use example ------------------ 1. Add banner helper method in your view: ```erb <%= insert_banner_box(category: "my_category") %> ``` 2. Additional options: ```ruby class: 'my_class' style: 'my_style' carousel_id: 'carousel' buttons_carousel: true|false buttons_class: 'my_buttons_class' indicators_carousel: true|false image_class: 'my_image_class' ``` Copyright (c) 2015 Zaez Inovação Digital, released under the New BSD License
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spree_zaez_banner-3.0.3 | README.md |
spree_zaez_banner-3.0.2 | README.md |
spree_zaez_banner-3.0.1 | README.md |
spree_zaez_banner-3.0.0 | README.md |