GithubHelp home page GithubHelp logo

welitonfreitas / solidus_zaez_banner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaeznet/spree_zaez_banner

0.0 2.0 0.0 119 KB

Adds a way to manage banners to Spree Commerce.

Home Page: http://www.zaez.net/

License: BSD 3-Clause "New" or "Revised" License

Ruby 62.98% CoffeeScript 6.56% JavaScript 0.47% CSS 0.50% HTML 29.49%

solidus_zaez_banner's Introduction

Spree Banner Build Status

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 (fork of Damiano Giacomello).

Installation

  1. Add the following to your Gemfile
gem 'spree_zaez_banner'
  1. Run bundle install

  2. 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:

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:
<%= insert_banner_box(category: "my_category") %>
  1. Additional options:
  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'
  order: 'position'
  limit: 5

Copyright (c) 2015 Zaez Inovação Digital, released under the New BSD License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.