scrivito_facebook_widget 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -0
- data/app/views/facebook_widget/details.html.erb +20 -22
- data/app/views/facebook_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_facebook_widget/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 425993e4a8e744ae8b4c625abace421b4b70b4ca
|
4
|
+
data.tar.gz: e71ff5306a2bd36271ddf094f3e37b6a62d69299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c964faf4a617c59851867f55c65cd0252964d1c54f6a7ef0d82cc08990ba95dbdc01e5e13f6f6a416fee59c9eef4ccfbb059c24ee1848ed50abbc9c0ee49a179
|
7
|
+
data.tar.gz: bb9079d7e3db90190113dd0b0ca0953f10d7b496d3858e076cfe3632d4a0773d73629c731358726b5f5bdddde68748abf8231ad34a2354ff151ec69c6ae8d9d5
|
data/README.md
CHANGED
@@ -23,3 +23,23 @@ var fbAppId = yourAppId
|
|
23
23
|
```
|
24
24
|
|
25
25
|
The App ID can be generated using Facebook's developer tools.
|
26
|
+
|
27
|
+
## Localization
|
28
|
+
|
29
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
en:
|
33
|
+
scrivito_accordion_widget:
|
34
|
+
thumbnail:
|
35
|
+
title: Facbook
|
36
|
+
description: Add facebook social plugins to the page
|
37
|
+
details:
|
38
|
+
type: type
|
39
|
+
url: Url
|
40
|
+
width: 'Max Width'
|
41
|
+
height: 'Height'
|
42
|
+
hide_cover: Hide Cover
|
43
|
+
show_facepile: Show Facepile
|
44
|
+
show_posts: Show Posts
|
45
|
+
hide_cta: Hide CTA
|
@@ -1,33 +1,31 @@
|
|
1
|
-
<%= scrivito_details_for 'Type' do %>
|
2
|
-
<%=
|
1
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.type', default: 'Type') do %>
|
2
|
+
<%= scrivito_tag :div, widget, :type %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= scrivito_details_for 'Url' do %>
|
5
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.type', default: 'Url') do %>
|
6
6
|
<%= scrivito_tag :div, widget, :url %>
|
7
7
|
<% end %>
|
8
8
|
|
9
|
-
<%= scrivito_details_for '
|
10
|
-
<%=
|
11
|
-
|
12
|
-
<% end %>
|
9
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.width', default: 'Max Width') do %>
|
10
|
+
<%= scrivito_tag :div, widget, :width, {data: {scrivito_editors_max: 500, scrivito_editors_min: 180}}, editor: :slider %>
|
11
|
+
<% end %>
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.height', default: 'Height') do %>
|
14
|
+
<%= scrivito_tag :div, widget, :height, {data: {scrivito_editors_max: 1000, scrivito_editors_min: 70}}, editor: :slider %>
|
15
|
+
<% end %>
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.hide_cover', default: 'Hide Cover') do %>
|
18
|
+
<%= scrivito_tag :div, widget, :hide_cover %>
|
19
|
+
<% end %>
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.show_facepile', default: 'Show Facepile') do %>
|
22
|
+
<%= scrivito_tag :div, widget, :show_facepile %>
|
23
|
+
<% end %>
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.show_posts', default: 'Show Posts') do %>
|
26
|
+
<%= scrivito_tag :div, widget, :show_posts %>
|
27
|
+
<% end %>
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
<% end %>
|
29
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.hide_cta', default: 'Hide CTA') do %>
|
30
|
+
<%= scrivito_tag :div, widget, :hide_cta %>
|
33
31
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail '
|
2
|
-
Add facebook social plugins to the page
|
1
|
+
<%= scrivito_thumbnail t('scrivito_facebook_widget.thumbnail.title', default: 'Facebook'), image_tag('widget_preview_facebook.png') do %>
|
2
|
+
<%= t('scrivito_facebook_widget.thumbnail.description', default: 'Add facebook social plugins to the page') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_facebook_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|