scrivito_slick_slider_widget 0.90.0 → 0.90.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -5
- data/app/views/slick_slider_panel_widget/details.html.erb +4 -5
- data/app/views/slick_slider_widget/details.html.erb +35 -37
- data/app/views/slick_slider_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_slick_slider_widget/version.rb +1 -1
- metadata +2 -17
- data/app/views/slick_slider_widget/add_new_panel.html.erb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d121b8b08b20e34f7b82b7758ab356fab3588d4
|
4
|
+
data.tar.gz: 76e5054ee0dc2df56710cad55712d69b60263e70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd2d2ea1ffc8825cd157fc8bca6878e9d6c0903c927423fc175c4c901e7d7c0e4f28fe63c194bc8ecff5535f3fc32669585b3825b8823ee70da5d9ce5ee0b8d7
|
7
|
+
data.tar.gz: f521e70c21ff48f533dceb727f077cccd3e8e7a26171a66e55bb794c7b20cc7aca76be1e60746a3f5c6ddf5afb0dff768eac6fe9a81e6300e71c3042639ac4d8
|
data/README.md
CHANGED
@@ -1,21 +1,45 @@
|
|
1
1
|
# ScrivitoSlickSliderWidget
|
2
2
|
|
3
|
-
This
|
3
|
+
This gem adds a Slick Slider to your Scrivito app.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add
|
7
|
+
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
gem 'scrivito_slick_slider_widget'
|
10
10
|
|
11
|
-
Add to your
|
11
|
+
Add this line to your application JavaScript manifest:
|
12
12
|
|
13
13
|
//= require scrivito_slick_slider_widget
|
14
14
|
|
15
|
-
Add to
|
15
|
+
Add this line to your application Stylesheet manifest:
|
16
16
|
|
17
17
|
*= require scrivito_slick_slider_widget
|
18
18
|
|
19
19
|
## Customization
|
20
20
|
|
21
|
-
We
|
21
|
+
We recommend to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) which provides nicer controls.
|
22
|
+
|
23
|
+
## Localization
|
24
|
+
|
25
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
26
|
+
|
27
|
+
```yaml
|
28
|
+
en:
|
29
|
+
scrivito_slick_slider_widget:
|
30
|
+
thumbnail:
|
31
|
+
title: Slick Slider
|
32
|
+
description: Highly adaptive slider
|
33
|
+
details:
|
34
|
+
image: Image
|
35
|
+
link: Destination
|
36
|
+
alt_text: Alternative Text
|
37
|
+
infinite: Activate infinite Scrolling
|
38
|
+
slides_to_show: Number of elements visible
|
39
|
+
slides_to_scroll: Number of elements that scroll
|
40
|
+
dots: Show inditactor
|
41
|
+
autoplay: Autoplay
|
42
|
+
autoplay_speed: Speed for Autoplay in ms
|
43
|
+
slides_to_show_tablet: Number of elements visible on tablet
|
44
|
+
slides_to_show_mobile: Number of elements visible on mobile
|
45
|
+
```
|
@@ -1,18 +1,17 @@
|
|
1
1
|
<%= scrivito_details_for do %>
|
2
2
|
<div class="row">
|
3
3
|
<div class="col-xs-4">
|
4
|
-
<%= scrivito_details_for 'Image' do %>
|
4
|
+
<%= scrivito_details_for t('scrivito_slick_slider_widget.details.image', default: 'Image') do %>
|
5
5
|
<%= scrivito_image_tag(widget, :image) %>
|
6
6
|
<% end %>
|
7
7
|
</div>
|
8
8
|
<div class="col-xs-8">
|
9
|
-
<%= scrivito_details_for '
|
9
|
+
<%= scrivito_details_for t('scrivito_slick_slider_widget.details.link', default: 'Destination') do %>
|
10
10
|
<%= scrivito_tag(:div, widget, :link) %>
|
11
11
|
<% end %>
|
12
|
-
<%= scrivito_details_for '
|
13
|
-
<p>(Make sure it has as much relevant information as possible)</p>
|
12
|
+
<%= scrivito_details_for t('scrivito_slick_slider_widget.details.alt_text', default: 'Alternative Text') do %>
|
14
13
|
<%= scrivito_tag :div, widget, :alt_text %>
|
15
14
|
<% end %>
|
16
15
|
</div>
|
17
16
|
</div>
|
18
|
-
<% end %>
|
17
|
+
<% end %>
|
@@ -1,41 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</li>
|
9
|
-
</ul>
|
10
|
-
|
11
|
-
<div class="tab-panels">
|
12
|
-
<div class="tab-panel" id="edit-panels">
|
13
|
-
<%= scrivito_tag :div, widget, :panels %>
|
14
|
-
</div>
|
15
|
-
<div class="tab-panel" id="edit-settings">
|
16
|
-
<%= scrivito_details_for 'Visible slider on Desktop' do %>
|
1
|
+
<%= scrivito_large_dialog do %>
|
2
|
+
<%= scrivito_tag :div, widget, :panels %>
|
3
|
+
<hr>
|
4
|
+
<%= scrivito_details_for 'Number of elements visible on' do %>
|
5
|
+
<div class="row">
|
6
|
+
<div class="col-md-4">
|
7
|
+
<h4><%= t('scrivito_slick_slider_widget.details.slides_to_show', default: 'Desktop') %></h4>
|
17
8
|
<%= scrivito_tag(:div, widget, :slides_to_show) %>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<%= scrivito_details_for 'Visible slider on Tablet' do %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="col-md-4">
|
12
|
+
<h4><%= t('scrivito_slick_slider_widget.details.slides_to_show_tablet', default: 'Tablet') %></h4>
|
23
13
|
<%= scrivito_tag(:div, widget, :slides_to_show_tablet) %>
|
24
|
-
|
25
|
-
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="col-md-4">
|
17
|
+
<h4><%= t('scrivito_slick_slider_widget.details.slides_to_show_mobile', default: 'Mobile') %></h4>
|
26
18
|
<%= scrivito_tag(:div, widget, :slides_to_show_mobile) %>
|
27
|
-
|
28
|
-
<%= scrivito_details_for 'Activate infinite Scrolling' do %>
|
29
|
-
<%= scrivito_tag(:div, widget, :infinite) %>
|
30
|
-
<% end %>
|
31
|
-
<%= scrivito_details_for 'Show indicators' do %>
|
32
|
-
<%= scrivito_tag(:div, widget, :dots) %>
|
33
|
-
<% end %>
|
34
|
-
<%= scrivito_details_for 'Autoplay' do %>
|
35
|
-
<%= scrivito_tag(:div, widget, :autoplay) %>
|
36
|
-
<h4>Speed for autoplay</h4>
|
37
|
-
<%= scrivito_tag(:div, widget, :autoplay_speed) %>
|
38
|
-
<% end %>
|
19
|
+
</div>
|
39
20
|
</div>
|
40
|
-
|
41
|
-
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<%= scrivito_details_for do %>
|
24
|
+
<h4><%= t('scrivito_slick_slider_widget.details.slides_to_scroll', default: 'Number of elements that scroll') %></h4>
|
25
|
+
<%= scrivito_tag(:div, widget, :slides_to_scroll) %>
|
26
|
+
|
27
|
+
<h4><%= t('scrivito_slick_slider_widget.details.infinite', default: 'Activate infinite Scrolling') %></h4>
|
28
|
+
<%= scrivito_tag(:div, widget, :infinite) %>
|
29
|
+
|
30
|
+
<h4><%= t('scrivito_slick_slider_widget.details.dots', default: 'Show inditactor') %></h4>
|
31
|
+
<%= scrivito_tag(:div, widget, :dots) %>
|
32
|
+
|
33
|
+
<h4><%= t('scrivito_slick_slider_widget.details.autoplay', default: 'Autoplay') %></h4>
|
34
|
+
<%= scrivito_tag(:div, widget, :autoplay) %>
|
35
|
+
|
36
|
+
<h4><%= t('scrivito_slick_slider_widget.details.autoplay_speed', default: 'Speed for autoplay') %></h4>
|
37
|
+
<%= scrivito_tag(:div, widget, :autoplay_speed) %>
|
38
|
+
<% end %>
|
39
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail 'Slick Slider', image_tag("scrivito_slick_slider_widget/widget_preview_slick_slider.png") do %>
|
2
|
-
Highly adaptive slider
|
1
|
+
<%= scrivito_thumbnail t('scrivito_slick_slider_widget.thumbnail.title', default: 'Slick Slider'), image_tag("scrivito_slick_slider_widget/widget_preview_slick_slider.png") do %>
|
2
|
+
<%= t('scrivito_slick_slider_widget.thumbnail.description', default: 'Highly adaptive slider') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_slick_slider_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.90.
|
4
|
+
version: 0.90.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.42.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
description: Scrivito Widget for a bootstrap-style Slick Slider.
|
42
28
|
email:
|
43
29
|
- support@scrivito.com
|
@@ -60,7 +46,6 @@ files:
|
|
60
46
|
- app/models/slick_slider_panel_widget.rb
|
61
47
|
- app/models/slick_slider_widget.rb
|
62
48
|
- app/views/slick_slider_panel_widget/details.html.erb
|
63
|
-
- app/views/slick_slider_widget/add_new_panel.html.erb
|
64
49
|
- app/views/slick_slider_widget/details.html.erb
|
65
50
|
- app/views/slick_slider_widget/show.html.erb
|
66
51
|
- app/views/slick_slider_widget/thumbnail.html.erb
|
@@ -1 +0,0 @@
|
|
1
|
-
<!-- JS code for refreshing page part and activating new added panel? -->
|