pageflow 14.0.0 → 14.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -90
  3. data/admins/pageflow/accounts.rb +6 -2
  4. data/app/assets/javascripts/pageflow/dist/react-client.js +1 -1
  5. data/app/assets/javascripts/pageflow/dist/react-server.js +1 -1
  6. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/general.js +4 -1
  7. data/app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js +4 -0
  8. data/app/assets/javascripts/pageflow/page_types/mixins/default_page_content.js +1 -1
  9. data/app/assets/javascripts/pageflow/slideshow/page_split_layout.js +1 -1
  10. data/app/assets/javascripts/pageflow/slideshow/page_widget.js +4 -3
  11. data/app/assets/javascripts/pageflow/ui.js +1 -1
  12. data/app/assets/javascripts/pageflow/ui/templates/inputs/check_box_group_input.jst.ejs +5 -0
  13. data/app/assets/javascripts/pageflow/ui/templates/inputs/text_area_input.jst.ejs +45 -6
  14. data/app/assets/javascripts/pageflow/ui/views/inputs/check_box_group_input_view.js +75 -0
  15. data/app/assets/javascripts/pageflow/ui/views/inputs/text_area_input_view.js +131 -18
  16. data/app/assets/javascripts/pageflow/widgets/navigation.js +2 -2
  17. data/app/assets/javascripts/pageflow/widgets/share_menu.js +1 -1
  18. data/app/assets/stylesheets/pageflow/base.scss +7 -0
  19. data/app/assets/stylesheets/pageflow/editor/wysihtml5.scss +84 -5
  20. data/app/assets/stylesheets/pageflow/mixins/icons.scss +3 -1
  21. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +13 -19
  22. data/app/assets/stylesheets/pageflow/subshare.scss +16 -14
  23. data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -0
  24. data/app/assets/stylesheets/pageflow/themes/default/mobile_navigation.scss +2 -2
  25. data/app/assets/stylesheets/pageflow/themes/default/navigation.scss +7 -1
  26. data/app/assets/stylesheets/pageflow/themes/default/navigation/dimensions.scss +34 -9
  27. data/app/assets/stylesheets/pageflow/themes/default/navigation/icons/icon_font.scss +1 -53
  28. data/app/assets/stylesheets/pageflow/themes/default/navigation/icons/sprite.scss +0 -12
  29. data/app/assets/stylesheets/pageflow/themes/default/navigation_share_box.scss +40 -0
  30. data/app/assets/stylesheets/pageflow/themes/default/navigation_share_box/icon_colors.scss +46 -0
  31. data/app/assets/stylesheets/pageflow/themes/default/overview/icons/icon_font.scss +1 -4
  32. data/app/assets/stylesheets/pageflow/themes/default/page.scss +7 -33
  33. data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +10 -8
  34. data/app/assets/stylesheets/pageflow/themes/default/page/colors.scss +41 -0
  35. data/app/assets/stylesheets/pageflow/themes/default/page/content_text_margin.scss +1 -1
  36. data/app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss +3 -3
  37. data/app/assets/stylesheets/pageflow/ui.scss +1 -0
  38. data/app/assets/stylesheets/pageflow/ui/input/check_box_group_input.scss +15 -0
  39. data/app/controllers/pageflow/entries_controller.rb +2 -1
  40. data/app/helpers/pageflow/navigation_bar_helper.rb +7 -1
  41. data/app/helpers/pageflow/pages_helper.rb +1 -1
  42. data/app/helpers/pageflow/social_share_links_helper.rb +5 -1
  43. data/app/models/pageflow/draft_entry.rb +1 -0
  44. data/app/models/pageflow/published_entry.rb +1 -0
  45. data/app/models/pageflow/revision.rb +10 -0
  46. data/app/models/pageflow/theming.rb +19 -0
  47. data/app/views/admin/accounts/_form.html.erb +5 -0
  48. data/app/views/admin/accounts/_theming_details.html.arb +3 -0
  49. data/app/views/pageflow/config/_editor_seeds.json.jbuilder +2 -1
  50. data/app/views/pageflow/editor/entries/_entry.json.jbuilder +1 -1
  51. data/app/views/pageflow/entries/_mobile_navigation.html.erb +9 -11
  52. data/app/views/pageflow/entries/navigation/_bar_top.html.erb +1 -7
  53. data/app/views/pageflow/entries/navigation/_share_box_content.html.erb +9 -0
  54. data/app/views/pageflow/entries/share_menu/_email_link.html.erb +14 -0
  55. data/app/views/pageflow/entries/share_menu/_facebook_link.html.erb +11 -2
  56. data/app/views/pageflow/entries/share_menu/_linked_in_link.html.erb +18 -0
  57. data/app/views/pageflow/entries/share_menu/_telegram_link.html.erb +17 -0
  58. data/app/views/pageflow/entries/share_menu/_twitter_link.html.erb +16 -2
  59. data/app/views/pageflow/entries/share_menu/_whats_app_link.html.erb +21 -0
  60. data/config/initializers/paperclip.rb +0 -4
  61. data/config/locales/de.yml +22 -1
  62. data/config/locales/en.yml +22 -1
  63. data/db/migrate/20190408144136_add_default_share_providers_to_themings.rb +5 -0
  64. data/db/migrate/20190408161315_add_share_providers_to_revisions.rb +5 -0
  65. data/lib/generators/pageflow/initializer/templates/pageflow.rb +0 -14
  66. data/lib/pageflow/configuration.rb +27 -6
  67. data/lib/pageflow/engine.rb +1 -1
  68. data/lib/pageflow/version.rb +1 -1
  69. metadata +21 -11
  70. data/app/assets/images/pageflow/themes/default/mobile_navigation/sharing_icons_sprite.png +0 -0
  71. data/app/assets/stylesheets/pageflow/themes/default/navigation/share_box.scss +0 -28
  72. data/app/views/pageflow/entries/share_menu/_google_link.html.erb +0 -5
@@ -34,6 +34,11 @@
34
34
  <%= theming.input :default_keywords,
35
35
  hint: t('pageflow.admin.themings.default_keywords_hint'),
36
36
  placeholder: Pageflow.config.default_keywords_meta_tag %>
37
+ <%= theming.input :share_providers,
38
+ as: :check_boxes,
39
+ collection: Pageflow.config.available_share_providers,
40
+ member_label: Proc.new { |s| s.to_s.camelize } %>
41
+
37
42
  <% end %>
38
43
 
39
44
  <%= f.inputs do %>
@@ -11,4 +11,7 @@ extensible_attributes_table_for(account.default_theming,
11
11
  row :default_author, class: 'default_author'
12
12
  row :default_publisher, class: 'default_publisher'
13
13
  row :default_keywords, class: 'default_keywords'
14
+ row :default_share_providers, class: 'default_share_providers' do
15
+ account.default_theming.default_share_providers.keys.map(&:camelize).join(', ')
16
+ end
14
17
  end
@@ -3,7 +3,8 @@ json.call(Pageflow.config,
3
3
  :confirm_encoding_jobs,
4
4
  :available_locales,
5
5
  :available_public_locales,
6
- :available_text_track_kinds)
6
+ :available_text_track_kinds,
7
+ :available_share_providers)
7
8
  json.file_types Pageflow.config.file_types do |file_type|
8
9
  json.collection_name file_type.collection_name
9
10
  json.top_level_type file_type.top_level_type
@@ -9,7 +9,7 @@ json.password_protected(entry.password_digest.present?)
9
9
 
10
10
  json.configuration do
11
11
  json.(entry,
12
- :title, :locale, :summary, :credits, :author, :publisher, :keywords,
12
+ :title, :locale, :summary, :credits, :author, :publisher, :keywords, :share_providers,
13
13
  :manual_start, :emphasize_chapter_beginning, :emphasize_new_pages,
14
14
  :share_url, :share_image_id, :share_image_x, :share_image_y)
15
15
  json.theme_name entry.theme.name
@@ -1,4 +1,6 @@
1
- <div class="navigation_mobile" data-widget="default_mobile_navigation">
1
+ <%= content_tag(:div,
2
+ class: navigation_bar_css_class(entry, class: 'navigation_mobile'),
3
+ data: {widget: 'default_mobile_navigation'}) do %>
2
4
  <div class="parent_page" title="<%= t('pageflow.public.back') %>"></div>
3
5
  <div class="menu index"></div>
4
6
  <div class="menu sharing"></div>
@@ -15,15 +17,11 @@
15
17
  <div class="sharing_mobile">
16
18
  <div class="wrapper">
17
19
  <ul>
18
- <li>
19
- <%= render 'pageflow/entries/share_menu/facebook_link', entry: entry %>
20
- </li>
21
- <li>
22
- <%= render 'pageflow/entries/share_menu/twitter_link', entry: entry %>
23
- </li>
24
- <li>
25
- <%= render 'pageflow/entries/share_menu/google_link', entry: entry %>
26
- </li>
20
+ <% entry.active_share_providers.each do |provider| %>
21
+ <li>
22
+ <%= render "pageflow/entries/share_menu/#{provider}_link", entry: entry %>
23
+ </li>
24
+ <% end %>
27
25
  </ul>
28
26
  </div>
29
27
  <div class="sub_share">
@@ -41,4 +39,4 @@
41
39
  </ul>
42
40
  </div>
43
41
  </div>
44
- </div>
42
+ <% end %>
@@ -15,13 +15,7 @@
15
15
  <%= render('pageflow/entries/navigation/overview_button', overview_button: entry.overview_button) %>
16
16
  <li class="navigation_menu share" tabindex="2">
17
17
  <div class="navigation_menu_box navigation_share_box">
18
- <%= render 'pageflow/entries/share_menu/facebook_link', entry: entry %>
19
- <%= render 'pageflow/entries/share_menu/twitter_link', entry: entry %>
20
- <%= render 'pageflow/entries/share_menu/google_link', entry: entry %>
21
- <div class="sub_share">
22
- <a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_entry') %></a>
23
- <a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_page') %></a>
24
- </div>
18
+ <%= render 'pageflow/entries/navigation/share_box_content', :entry => entry %>
25
19
  </div>
26
20
  <a title="<%= t('pageflow.public.share') %>">
27
21
  <span class="hint"><%= t('pageflow.public.share') %></span>
@@ -0,0 +1,9 @@
1
+ <div class="share_box_icons">
2
+ <% entry.active_share_providers.each do |provider| %>
3
+ <%= render "pageflow/entries/share_menu/#{provider}_link", entry: entry %>
4
+ <% end %>
5
+ </div>
6
+ <div class="sub_share">
7
+ <a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_entry') %></a>
8
+ <a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_page') %></a>
9
+ </div>
@@ -0,0 +1,14 @@
1
+ <%= social_share_link(:email, entry) do %>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ width="612px" height="612px" viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve">
4
+ <g>
5
+ <path d="M573.75,57.375H38.25C17.136,57.375,0,74.511,0,95.625v420.75c0,21.133,17.136,38.25,38.25,38.25h535.5
6
+ c21.133,0,38.25-17.117,38.25-38.25V95.625C612,74.511,594.883,57.375,573.75,57.375z M554.625,497.25H57.375V204.657
7
+ l224.03,187.999c7.134,5.967,15.874,8.97,24.595,8.97c8.74,0,17.461-3.003,24.595-8.97l224.03-187.999V497.25z M554.625,129.763
8
+ L306,338.379L57.375,129.763V114.75h497.25V129.763z"/>
9
+ </g>
10
+ </svg>
11
+
12
+ <span class="hint"><%= t('pageflow.public.share_via_email') %></span>
13
+ <p>Email</p>
14
+ <% end %>
@@ -1,5 +1,14 @@
1
1
  <%= social_share_link(:facebook, entry) do %>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ width="430.113px" height="430.114px" viewBox="0 0 430.113 430.114" style="enable-background:new 0 0 430.113 430.114;"
4
+ xml:space="preserve">
5
+ <g>
6
+ <path d="M158.081,83.3c0,10.839,0,59.218,0,59.218h-43.385v72.412h43.385v215.183h89.122V214.936h59.805
7
+ c0,0,5.601-34.721,8.316-72.685c-7.784,0-67.784,0-67.784,0s0-42.127,0-49.511c0-7.4,9.717-17.354,19.321-17.354
8
+ c9.586,0,29.818,0,48.557,0c0-9.859,0-43.924,0-75.385c-25.016,0-53.476,0-66.021,0C155.878-0.004,158.081,72.48,158.081,83.3z"/>
9
+ </g>
10
+ </svg>
11
+
2
12
  <span class="hint"><%= t('pageflow.public.share_on_facebook') %></span>
3
- <span class="share_facebook button"></span>
4
- <p>facebook</p>
13
+ <p>Facebook</p>
5
14
  <% end %>
@@ -0,0 +1,18 @@
1
+ <%= social_share_link(:linked_in, entry) do %>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ width="430.117px" height="430.117px" viewBox="0 0 430.117 430.117" style="enable-background:new 0 0 430.117 430.117;"
4
+ xml:space="preserve">
5
+ <g>
6
+ <path d="M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707
7
+ c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21
8
+ v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824
9
+ C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463
10
+ c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z
11
+ M5.477,420.56h92.184v-277.32H5.477V420.56z"/>
12
+ </g>
13
+ </svg>
14
+
15
+
16
+ <span class="hint"><%= t('pageflow.public.share_on_linked_in') %></span>
17
+ <p>LinkedIn</p>
18
+ <% end %>
@@ -0,0 +1,17 @@
1
+ <%= social_share_link(:telegram, entry) do %>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px"
3
+ width="512" height="512" viewBox="0 0 512.004 512.004" style="enable-background:new 0 0 512.004 512.004;"
4
+ xml:space="preserve">
5
+ <g>
6
+ <path d="M508.194,20.517c-4.43-4.96-11.42-6.29-17.21-3.76l-482,211c-5.34,2.34-8.85,7.57-8.98,13.41
7
+ c-0.13,5.83,3.14,11.21,8.38,13.79l115.09,56.6l28.68,172.06c0.93,6.53,6.06,11.78,12.74,12.73c4.8,0.69,9.57-1,12.87-4.4
8
+ l90.86-90.86l129.66,92.62c4.16,2.96,9.52,3.61,14.24,1.74c4.73-1.87,8.19-6.02,9.19-11.01l90-451
9
+ C512.604,28.967,511.454,24.177,508.194,20.517z M135.354,283.967l-84.75-41.68l334.82-146.57L135.354,283.967z M182.294,328.557
10
+ l-13.95,69.75l-15.05-90.3l183.97-138.49l-150.88,151.39C184.264,323.027,182.854,325.787,182.294,328.557z M191.424,435.857
11
+ l15.74-78.67l36.71,26.22L191.424,435.857z M396.834,455.797l-176.73-126.23l252.47-253.31L396.834,455.797z"/>
12
+ </g>
13
+ </svg>
14
+
15
+ <span class="hint"><%= t('pageflow.public.share_in_telegram') %></span>
16
+ <p>Telegram</p>
17
+ <% end %>
@@ -1,5 +1,19 @@
1
1
  <%= social_share_link(:twitter, entry) do %>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve">
4
+ <g>
5
+ <g>
6
+ <path d="M612,116.258c-22.525,9.981-46.694,16.75-72.088,19.772c25.929-15.527,45.777-40.155,55.184-69.411
7
+ c-24.322,14.379-51.169,24.82-79.775,30.48c-22.907-24.437-55.49-39.658-91.63-39.658c-69.334,0-125.551,56.217-125.551,125.513
8
+ c0,9.828,1.109,19.427,3.251,28.606C197.065,206.32,104.556,156.337,42.641,80.386c-10.823,18.51-16.98,40.078-16.98,63.101
9
+ c0,43.559,22.181,81.993,55.835,104.479c-20.575-0.688-39.926-6.348-56.867-15.756v1.568c0,60.806,43.291,111.554,100.693,123.104
10
+ c-10.517,2.83-21.607,4.398-33.08,4.398c-8.107,0-15.947-0.803-23.634-2.333c15.985,49.907,62.336,86.199,117.253,87.194
11
+ c-42.947,33.654-97.099,53.655-155.916,53.655c-10.134,0-20.116-0.612-29.944-1.721c55.567,35.681,121.536,56.485,192.438,56.485
12
+ c230.948,0,357.188-191.291,357.188-357.188l-0.421-16.253C573.872,163.526,595.211,141.422,612,116.258z"/>
13
+ </g>
14
+ </g>
15
+ </svg>
16
+
2
17
  <span class="hint"><%= t('pageflow.public.share_on_twitter') %></span>
3
- <span class="share_twitter button"></span>
4
- <p>twitter</p>
18
+ <p>Twitter</p>
5
19
  <% end %>
@@ -0,0 +1,21 @@
1
+ <%= social_share_link(:whats_app, entry) do %>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ width="90px" height="90px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve">
4
+ <g>
5
+ <path d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522
6
+ c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982
7
+ c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537
8
+ c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938
9
+ c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537
10
+ c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333
11
+ c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882
12
+ c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977
13
+ c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344
14
+ c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223
15
+ C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/>
16
+ </g>
17
+ </svg>
18
+
19
+ <span class="hint"><%= t('pageflow.public.share_in_whats_app') %></span>
20
+ <p>WhatsApp</p>
21
+ <% end %>
@@ -1,7 +1,3 @@
1
- Paperclip.interpolates(:pageflow_filesystem_root) do |_attachment, _style|
2
- Pageflow.config.paperclip_filesystem_root
3
- end
4
-
5
1
  Paperclip.interpolates(:pageflow_s3_root) do |_attachment, _style|
6
2
  Pageflow.config.paperclip_s3_root
7
3
  end
@@ -196,6 +196,7 @@ de:
196
196
  published_revision_published_at: Veröffentlicht am
197
197
  publisher: Herausgeber
198
198
  share_image_id: Social Sharing Bild
199
+ share_providers: Social Share Links
199
200
  share_url: Social Sharing URL
200
201
  summary: Zusammenfassung
201
202
  theme_name: Theme
@@ -269,11 +270,13 @@ de:
269
270
  default_keywords: Standard Schlüsselwörter
270
271
  default_locale: Standard Sprache
271
272
  default_publisher: Standard Herausgeber
273
+ default_share_providers: Standard Share Links
272
274
  home_button_enabled_by_default: Home-Button in neuen Beiträgen anzeigen
273
275
  home_url: Redirect URL
274
276
  imprint_link_label: Impressum-Link Text
275
277
  imprint_link_url: Impressum-Link URL
276
278
  privacy_link_url: Datenschutz-Link URL
279
+ share_providers: Standard Share Links
277
280
  theme_name: Theme
278
281
  pageflow/video_file:
279
282
  dimensions: Maße
@@ -417,6 +420,13 @@ de:
417
420
  not_published: Nicht veröffentlicht
418
421
  published_with_password_protection: Mit Passwortschutz veröffentlicht
419
422
  published_without_password_protection: Ohne Passwortschutz veröffentlicht
423
+ share_providers:
424
+ email: Email
425
+ facebook: Facebook
426
+ linked_in: LinkedIn
427
+ telegram: Telegram (nur Mobilgeräte)
428
+ twitter: Twitter
429
+ whats_app: WhatsApp (nur Mobilgeräte)
420
430
  pageflow/membership:
421
431
  role:
422
432
  editor: Redakteur
@@ -1799,6 +1809,7 @@ de:
1799
1809
  overview_button_enabled: In der Übersicht werden die Kapitel und Seiten des Haupterzählstrangs angezeigt.
1800
1810
  overview_button_enabled_disabled: Diese Funktion steht in diesem Theme nicht zur Verfügung.
1801
1811
  publisher: Name oder Firmenname des Herausgeber.
1812
+ share_providers: Social Media Plattformen, die unter dem Menüpunkt "Teilen" des Beitrags angezeigt werden sollen
1802
1813
  share_url: URL, die geteilt werden soll, wenn der Benutzer auf einen der Social Media Buttons klickt. Feld frei lassen, um URL des veröffentlichten Beitrags zu verwenden.
1803
1814
  summary: 'Trage hier ein, welcher Beschreibungstext beim Teilen in sozialen Netzwerken angezeigt wird.
1804
1815
 
@@ -1833,8 +1844,18 @@ de:
1833
1844
  bold: Fett
1834
1845
  cancel: Abbrechen
1835
1846
  create_link: Link einfügen
1847
+ insert_ordered_list: Nummerierte Liste einfügen
1848
+ insert_unordered_list: Aufzählungsliste einfügen
1836
1849
  italic: Kursiv
1837
- ok: Ok
1850
+ link_type:
1851
+ page_link: Seite
1852
+ url: URL
1853
+ ok: DELETED
1854
+ open_in_new_tab: In neuem Tab öffnen
1855
+ open_in_new_tab_help: Empfohlen, damit der Beitrag nach Betrachten des Links nicht erneut geladen werden muss. Bitte beachte, dass Links in der Editor-Vorschau immer in einem neuen Tab geöffnet werden.
1856
+ remove_link: Link entfernen
1857
+ save: Speichern
1858
+ target: Ziel
1838
1859
  underline: Unterstrichen
1839
1860
  url: URL
1840
1861
  url_display:
@@ -196,6 +196,7 @@ en:
196
196
  published_revision_published_at: Published since
197
197
  publisher: Publisher
198
198
  share_image_id: Social Sharing Image
199
+ share_providers: Social Share Links
199
200
  share_url: Social Sharing URL
200
201
  summary: Summary
201
202
  theme_name: Theme
@@ -269,11 +270,13 @@ en:
269
270
  default_keywords: Default keywords
270
271
  default_locale: Default locale
271
272
  default_publisher: Default publisher
273
+ default_share_providers: Default Share Links
272
274
  home_button_enabled_by_default: "'Home'-Button enabled by default"
273
275
  home_url: Redirect URL
274
276
  imprint_link_label: Legal notice link label
275
277
  imprint_link_url: Legal notice link URL
276
278
  privacy_link_url: Privacy link URL
279
+ share_providers: Default Share Links
277
280
  theme_name: Theme
278
281
  pageflow/video_file:
279
282
  dimensions: Dimensions
@@ -417,6 +420,13 @@ en:
417
420
  not_published: Not published
418
421
  published_with_password_protection: Published with password protection
419
422
  published_without_password_protection: Published without password protection
423
+ share_providers:
424
+ email: Email
425
+ facebook: Facebook
426
+ linked_in: LinkedIn
427
+ telegram: Telegram (only mobile)
428
+ twitter: Twitter
429
+ whats_app: WhatsApp (only mobile)
420
430
  pageflow/membership:
421
431
  role:
422
432
  editor: Editor
@@ -1771,6 +1781,7 @@ en:
1771
1781
  overview_button_enabled: The overview displays chapters and pages of the main storyline.
1772
1782
  overview_button_enabled_disabled: This option is not available for your theme.
1773
1783
  publisher: The publisher's name or company name.
1784
+ share_providers: Social media platforms to be listed in the "Share"-dialog of the entry
1774
1785
  share_url: URL to share via social media buttons. Leave blank to use URL of published story.
1775
1786
  summary: Here you can write a description, which is shown, when your Pageflow is shared in social networks.
1776
1787
  title: Here you can choose a title for your Pageflow. It will be shown on the title bar of the browser window. It also acts as an indicator for search engines once the report is published.
@@ -1808,8 +1819,18 @@ en:
1808
1819
  bold: Bold
1809
1820
  cancel: Cancel
1810
1821
  create_link: Insert link
1822
+ insert_ordered_list: Insert ordered list
1823
+ insert_unordered_list: Insert unordered list
1811
1824
  italic: Italic
1812
- ok: Ok
1825
+ link_type:
1826
+ page_link: Page
1827
+ url: URL
1828
+ ok: DELETED
1829
+ open_in_new_tab: Open in new tab
1830
+ open_in_new_tab_help: Recommended. Otherwise the entry has to be reloaded when returning from the link. Please note that inside the editor preview links always open in a new tab.
1831
+ remove_link: Remove link
1832
+ save: Save
1833
+ target: Target
1813
1834
  underline: Underline
1814
1835
  url: URL
1815
1836
  url_display:
@@ -0,0 +1,5 @@
1
+ class AddDefaultShareProvidersToThemings < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :pageflow_themings, :default_share_providers, :text, after: 'default_keywords'
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddShareProvidersToRevisions < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :pageflow_revisions, :share_providers, :text, after: 'keywords'
4
+ end
5
+ end
@@ -22,20 +22,6 @@ Pageflow.configure do |config|
22
22
  # reprocessing attachments.
23
23
  config.paperclip_attachments_version = 'v1'
24
24
 
25
- # Path to the location in the filesystem where attachments shall
26
- # be stored. The value of this option is available via the
27
- # pageflow_filesystem_root paperclip interpolation.
28
-
29
- # The directory on the server where uploads are stored before processing.
30
- # If you are using more than one server to host Pageflow, it is required
31
- # that all web servers and all process servers have write access to it. You
32
- # will need to create a shared folder and mount it on your servers.
33
- #
34
- # For single servers, you must take care to retain access to it between
35
- # deployments. That's why the default value points to the system folder, which
36
- # is usually automatically symlinked by Capistrano.
37
- config.paperclip_filesystem_root = Rails.public_path.join('system/uploads')
38
-
39
25
  # Allow multiple development instances to share one S3 bucket by
40
26
  # keeping each instance's files in a separate folder named after the
41
27
  # system's hostname. Use a generic `main` folder in all other
@@ -10,11 +10,6 @@ module Pageflow
10
10
  # reprocessing attachments.
11
11
  attr_accessor :paperclip_attachments_version
12
12
 
13
- # Path to the location in the filesystem where attachments shall
14
- # be stored. The value of this option is available via the
15
- # pageflow_filesystem_root paperclip interpolation.
16
- attr_accessor :paperclip_filesystem_root
17
-
18
13
  # Root folder in S3 bucket to store files in. Can be used to
19
14
  # separate files of multiple development instances in a shared
20
15
  # development S3 bucket.
@@ -30,6 +25,8 @@ module Pageflow
30
25
  # This hash should include the signed POST policy, the access key ID and
31
26
  # security token (if present), etc.
32
27
  # These fields will be included as input elements of type 'hidden' on the form
28
+ #
29
+ # # @since 14.0
33
30
  attr_accessor :paperclip_direct_upload_options
34
31
 
35
32
  # Refer to the pageflow initializer template for a list of
@@ -249,6 +246,11 @@ module Pageflow
249
246
  # @since 0.10
250
247
  attr_accessor :available_public_locales
251
248
 
249
+ # Array of sharing providers which can be configured on theming level.
250
+ # Defaults to `[:facebook, :twitter, :linked_in, :whats_app, :telegram, :email]`.
251
+ # @since 14.1
252
+ attr_accessor :available_share_providers
253
+
252
254
  # How to handle https requests for URLs which will have assets in the page.
253
255
  # If you wish to serve all assets over http and prevent mixed-content warnings,
254
256
  # you can force a redirect to http. The inverse is also true: you can force
@@ -271,6 +273,13 @@ module Pageflow
271
273
  attr_accessor :default_author_meta_tag
272
274
  attr_accessor :default_publisher_meta_tag
273
275
 
276
+ # Share provider defaults.
277
+ #
278
+ # Default share providers for new themings.
279
+ # Must be a subset or equal to `available_share_providers`
280
+ # @since 14.1
281
+ attr_accessor :default_share_providers
282
+
274
283
  # Whether a user can be deleted.
275
284
  #
276
285
  # @example
@@ -317,7 +326,6 @@ module Pageflow
317
326
 
318
327
  def initialize
319
328
  @paperclip_attachments_version = 'v1'
320
- @paperclip_filesystem_root = Rails.public_path.join('system/uploads')
321
329
  @paperclip_s3_root = 'main'
322
330
 
323
331
  @paperclip_s3_default_options = Defaults::PAPERCLIP_S3_DEFAULT_OPTIONS.dup
@@ -365,6 +373,7 @@ module Pageflow
365
373
 
366
374
  @available_locales = [:en, :de]
367
375
  @available_public_locales = PublicI18n.available_locales
376
+ @available_share_providers = [:email, :facebook, :linked_in, :twitter, :telegram, :whats_app]
368
377
 
369
378
  @public_https_mode = :prevent
370
379
 
@@ -372,6 +381,8 @@ module Pageflow
372
381
  @default_author_meta_tag = 'Pageflow'
373
382
  @default_publisher_meta_tag = 'Pageflow'
374
383
 
384
+ @default_share_providers = @available_share_providers
385
+
375
386
  @authorize_user_deletion = lambda { |_user| true }
376
387
 
377
388
  @available_text_track_kinds = [:captions, :subtitles, :descriptions]
@@ -399,6 +410,16 @@ module Pageflow
399
410
  page_types.register(page_type)
400
411
  end
401
412
 
413
+ # @deprecated Pageflow now supports direct uploads to S3 via signed post requests.
414
+ # Please change your forms accordingly.
415
+ def paperclip_filesystem_root
416
+ ActiveSupport::Deprecation.warn('Pageflow::Configuration#paperclip_filesystem_root is deprecated.', caller)
417
+ end
418
+
419
+ def paperclip_filesystem_root=(_val)
420
+ ActiveSupport::Deprecation.warn('Pageflow::Configuration#paperclip_filesystem_root is deprecated.', caller)
421
+ end
422
+
402
423
  def revision_components
403
424
  page_types.map(&:revision_components).flatten.uniq
404
425
  end