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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2021ce80cf630eb3e91b1a5f7ce4013cfaa2ef34
4
- data.tar.gz: d8053fc0a58a8d8edeeefaf1e4ea857c4c8274ac
3
+ metadata.gz: 425993e4a8e744ae8b4c625abace421b4b70b4ca
4
+ data.tar.gz: e71ff5306a2bd36271ddf094f3e37b6a62d69299
5
5
  SHA512:
6
- metadata.gz: 6cccce61e042137120d0b74edd2a5bfdc0890ab0637b8b19f7c7f02b0596cde6bbc8254724ffb7fb05e93c8d935b19a97062b93d0e353e16007d170e2f59d692
7
- data.tar.gz: 1f449d44e4b223774fd34aed8846d611ac6f752e6b1ab62011c2826d3fed8b8df7b0258b38a00f25389c662b72c6a42aa086b034c256b54b6a69ecc008712ff9
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
- <%= scrivito_toggle_button_editor widget, :type %>
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 'More Options for type page' do %>
10
- <%= scrivito_details_for 'Max Width (max: 500; min: 180)' do %>
11
- <%= scrivito_tag :div, widget, :width %>
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
- <%= scrivito_details_for 'Height (min: 70)' do %>
15
- <%= scrivito_tag :div, widget, :height %>
16
- <% end %>
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
- <%= scrivito_details_for 'Hide cover' do %>
19
- <%= scrivito_toggle_button_editor widget, :hide_cover %>
20
- <% end %>
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
- <%= scrivito_details_for 'Show faces' do %>
23
- <%= scrivito_toggle_button_editor widget, :show_facepile %>
24
- <% end %>
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
- <%= scrivito_details_for 'Show latest posts' do %>
27
- <%= scrivito_toggle_button_editor widget, :show_posts %>
28
- <% end %>
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
- <%= scrivito_details_for 'Hide cta' do %>
31
- <%= scrivito_toggle_button_editor widget, :hide_cta %>
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 'Facebook widget', image_tag('widget_preview_facebook.png') do %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoFacebookWidget
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
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-06-01 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito