pageflow-text-page 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,68 @@
1
+ <div class="blackLayer"></div>
2
+ <div class="content_and_background text_page <% if configuration['sticky_inline_image'] %>sticky_inline_image<% end %> <%= content_image_present_css_class(configuration['background_image_id']) %> <% if configuration['invert_text'] %>invert_text<% end %>">
3
+ <div class="backgroundArea">
4
+ <%= background_image_div(configuration, 'background_image') %>
5
+ <%= shadow_div :opacity => configuration['gradient_opacity'] %>
6
+ <div class="fixed_header_area">
7
+ <div class="page_header_wrapper">
8
+ <div class="page_header">
9
+ <h2>
10
+ <span class="tagline"><%= configuration['tagline'] %></span>
11
+ <span class="title"><%= configuration['title'] %></span>
12
+ <span class="subtitle"><%= configuration['subtitle'] %></span>
13
+ </h2>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ <div class="content scroller inline_text_position_<%= configuration['inline_text_position'] ? configuration['inline_text_position'] : 'left' %>">
19
+ <div>
20
+ <div class="contentWrapper">
21
+ <div class="page_spacer"></div>
22
+ <div class="contentInnerWrapper">
23
+ <div class="content_background_layer"></div>
24
+ <div class="page_header">
25
+ <div class="header_background_layer" style="opacity: <%= configuration['gradient_opacity'].to_i / 100.0 %>"></div>
26
+ <h2>
27
+ <span class="tagline"><%= configuration['tagline'] %></span>
28
+ <span class="title"><%= configuration['title'] %></span>
29
+ <span class="subtitle"><%= configuration['subtitle'] %></span>
30
+ </h2>
31
+ <%= background_image_tag(configuration['background_image_id'], {"class" => "print_image"}) %>
32
+ </div>
33
+ <div class="contentText">
34
+ <h3>
35
+ <span class="text_title"><%= configuration['text_title'] %></span>
36
+ </h3>
37
+ <a <% if !configuration['prevent_fullscreen'] %> href="<%= fullscreen_image_url(configuration['text_image_id']) %>" target="_blank"<% else %> href="#" <% end %> class="inline_image <% if !configuration['text_image_id'] %>no_image_assigned<% end %>
38
+ <% if !configuration['prevent_fullscreen'] %>allow_fullscreen<% end %>">
39
+ <%= content_image(configuration['text_image_id'], configuration['image_description']) %>
40
+ <% if configuration['image_description'] %>
41
+ <div class="inline_image_text"><% if !configuration['image_description'].blank? %><span><%= configuration['image_description'] %></span><% end %></div>
42
+ <% end %>
43
+ <div class="bigscreen_toggler" tabindex="4" title="<%= t('.fullscreen_title') %>"><%= t('.fullscreen') %></div>
44
+ </a>
45
+ <p>
46
+ <%= raw configuration['text'] %>
47
+ </p>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="image_fullscreen_view">
54
+ <div class="image_fullscreen_wrapper">
55
+ <div class="image_fullscreen_inner_wrapper">
56
+ <%= content_image_large(configuration['text_image_id'], configuration['image_description']) %>
57
+ <% if configuration['image_description'] %>
58
+ <div class="inline_image_text"><% if !configuration['image_description'].blank? %><span><%= configuration['image_description'] %></span><% end %></div>
59
+ <% end %>
60
+ </div>
61
+ </div>
62
+ <div class="close_button" tabindex="4" title="<%= t('.close_title') %>">
63
+ <div class="label">
64
+ <%= t('.close') %>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
@@ -0,0 +1,77 @@
1
+ de:
2
+ activerecord:
3
+ attributes:
4
+ pageflow/page:
5
+ image_description: Bildunterschrift
6
+ inline_text_position: Fließtextposition
7
+ invert_text: Farben des Textbereichs invertieren
8
+ invert_title: Farben des Titelbereichs invertieren
9
+ prevent_fullscreen: Vollbildansicht ausschalten
10
+ sticky_inline_image: Bild an Seite haften
11
+ text_coverage: Textabdeckung
12
+ text_image_id: Bild im Text
13
+ text_titel: Überschrift
14
+ text_title: Texttitel
15
+ title_position: Titelposition
16
+ topasset_dim: Abblenden
17
+ topasset_parallax: Parallax
18
+ values:
19
+ pageflow/page:
20
+ inline_text_position:
21
+ center: Zentriert
22
+ left: Links
23
+ right: Rechts
24
+ text_coverage:
25
+ banner: Banner
26
+ extend_into: Text ragt hinein
27
+ title_only: Nur Titel
28
+ text_position:
29
+ center: Zentriert
30
+ pageflow:
31
+ text_page:
32
+ help_entries:
33
+ page_type:
34
+ menu_item: Text
35
+ text: ! '# Text Seite
36
+
37
+
38
+ Blog-artige Seite für lange Texte
39
+
40
+
41
+ Diese Seite ist speziell für längere Texte auf neutralem Hintergrund ausgelegt. Sie bietet
42
+
43
+ besondere Gestaltungsmöglichkeiten, die mit den Features klassischer (Parallax-) Blog-
44
+
45
+ Seiten vergleichbar sind, wie man sie beispielsweise von Tumblr und WordPress kennt.
46
+
47
+ Es gibt unterschiedliche Optionen bei der Anordnung von Titel-Bildern und auch
48
+
49
+ verschiedene Varianten, ein weiteres Bild im Fließtext einzubinden. Zum Beispiel ob das
50
+
51
+ Bild mitwandert oder auf dem Bildschirm fixiert wird.
52
+
53
+
54
+ Typische Anwendungsbeispiele: Blog-Artikel, News-Artikel, Interview'
55
+ page:
56
+ close: Schließen
57
+ close_title: Schließen
58
+ fullscreen: Ansicht vergrößern
59
+ fullscreen_title: Ansicht vergrößern
60
+ page_type_category_name: Basic
61
+ page_type_description: Lange Texte mit einem Banner-Bild
62
+ page_type_name: Text
63
+ ui:
64
+ configuration_editor:
65
+ tabs:
66
+ content: Fließtext
67
+ header: Titel
68
+ inline_help:
69
+ pageflow/page:
70
+ invert_text: Vertauscht Text- und Hintergrundfarbe im Fließtextbereich.
71
+ prevent_fullscreen: Verhindert, dass das Fließtextbild bei Klick auf das Bild im Vollbild dargestellt wird.
72
+ sticky_inline_image: Das Bild wird zunächst zusammen mit dem Text gescrollt, bleibt dann aber vertikal zentriert stehen, während der Text weiter scrollt.
73
+ text: Dies ist der Bereich für den Fließtext dieser Seite. Dieser Seitentyp ist für lange Texte optimiert. Bei Kurztexten sollte auf andere Seitentypen zurückgegriffen werden.
74
+ text_coverage: Legt fest, ein wie großer Teil des Titelbildes initial zu sehen ist.
75
+ text_image_id: Dieses Bild wird neben dem Text angezeigt.
76
+ topasset_dim: Titlebild abhängig von der Scroll-Position farblich abblenden.
77
+ topasset_parallax: Titelbild abhängig von der Scroll-Position vertikal verschieben.
@@ -0,0 +1,70 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ pageflow/page:
5
+ image_description: Image caption
6
+ inline_text_position: Text block position
7
+ invert_text: Invert text area colors
8
+ invert_title: Invert title area colors
9
+ prevent_fullscreen: Disable fullscreen
10
+ sticky_inline_image: Sticky image position
11
+ text_coverage: Text coverage
12
+ text_image_id: Inline image
13
+ text_titel: Title
14
+ text_title: Text title
15
+ title_position: Title position
16
+ topasset_dim: Header fade effect
17
+ topasset_parallax: Header parallax effect
18
+ values:
19
+ pageflow/page:
20
+ inline_text_position:
21
+ center: Center
22
+ left: Left
23
+ right: Right
24
+ text_coverage:
25
+ banner: Banner
26
+ extend_into: Text partially visible
27
+ title_only: Title area only
28
+ text_position:
29
+ center: Center
30
+ pageflow:
31
+ text_page:
32
+ help_entries:
33
+ page_type:
34
+ menu_item: Text
35
+ text: ! '# Text Page
36
+
37
+
38
+ Page for long texts
39
+
40
+
41
+ This page is especially designed for longer bodies of text on a neutral background. It offers whole range of ´options design, which are comparable to the classical blog design (parallax) of sites like WordPress or Tumblr.
42
+
43
+
44
+ There are several options for arranging the title pictures and various ways of embedding another picture into the text body. Pictures within the text can move along with the text or can be fixed to a certain part of the page.
45
+
46
+
47
+ Examples of application: blog article, news article, interview'
48
+ page:
49
+ close: Close
50
+ close_title: Close
51
+ fullscreen: Fullscreen
52
+ fullscreen_title: View larger version
53
+ page_type_category_name: Basic
54
+ page_type_description: Longer texts with a banner image
55
+ page_type_name: Text Page
56
+ ui:
57
+ configuration_editor:
58
+ tabs:
59
+ content: Text area
60
+ header: Title area
61
+ inline_help:
62
+ pageflow/page:
63
+ invert_text: Switches text and background colors
64
+ prevent_fullscreen: Prevents the image from opening fullscreen on click
65
+ sticky_inline_image: The image scrolls with the text but eventually remains at a vertically centered position.
66
+ text: This is the main contents of the page. This page type is made for long texts. Use a different page type if your main content text is short.
67
+ text_coverage: Determines how much of the title image is visible initially.
68
+ text_image_id: This image is displayed alongside the text.
69
+ topasset_dim: Animate the opacity of the title image while scrolling down.
70
+ topasset_parallax: Translate the title image vertically while scrolling down.
@@ -0,0 +1,11 @@
1
+ module Pageflow
2
+ module TextPage
3
+ class Engine < Rails::Engine
4
+ isolate_namespace Pageflow::TextPage
5
+
6
+ config.autoload_paths << File.join(config.root, 'lib')
7
+ end
8
+ end
9
+ end
10
+
11
+
@@ -0,0 +1,11 @@
1
+ module Pageflow
2
+ module TextPage
3
+ class PageType < Pageflow::PageType
4
+ name 'text_page'
5
+
6
+ def view_helpers
7
+ [Pageflow::TextPage::ImageHelper]
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ require 'pageflow/text_page/engine'
2
+
3
+ module Pageflow
4
+ module TextPage
5
+ def self.page_type
6
+ TextPage::PageType.new
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "pageflow-text-page"
5
+ spec.version = "0.1.0"
6
+ spec.authors = ["Christoph Merkelbach"]
7
+ spec.email = ["cmerkelbach@codevise.de"]
8
+ spec.summary = "Pageflow Page Type text pages"
9
+ spec.homepage = ""
10
+ spec.license = "MIT"
11
+
12
+ spec.files = `git ls-files`.split($/)
13
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_runtime_dependency 'pageflow', '~> 0.7'
18
+
19
+ # Using translations from rails locales in javascript code.
20
+ spec.add_runtime_dependency 'i18n-js'
21
+
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "rspec-rails", "~> 2.0"
25
+ spec.add_development_dependency 'factory_girl_rails'
26
+ spec.add_development_dependency "sqlite3"
27
+ end
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pageflow-text-page
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Christoph Merkelbach
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pageflow
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n-js
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_girl_rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description:
112
+ email:
113
+ - cmerkelbach@codevise.de
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - .gitignore
119
+ - .jshintignore
120
+ - .jshintrc
121
+ - CHANGELOG.md
122
+ - Gemfile
123
+ - README.md
124
+ - Rakefile
125
+ - app/assets/images/pageflow/ov-text_page.png
126
+ - app/assets/images/pageflow/text_page/fs_close_sprite.png
127
+ - app/assets/images/pageflow/text_page_pictogram.png
128
+ - app/assets/images/pageflow/text_page_pictogram_small.png
129
+ - app/assets/images/pageflow/text_sprite.png
130
+ - app/assets/javascript/pageflow/text_page.js
131
+ - app/assets/javascript/pageflow/text_page/editor.js
132
+ - app/assets/javascript/pageflow/text_page/editor/content_image_embedded_view.js
133
+ - app/assets/javascript/pageflow/text_page/page_type.js
134
+ - app/assets/stylesheets/pageflow/text_page.css.scss
135
+ - app/helper/pageflow/text_page/image_helper.rb
136
+ - app/views/pageflow/text_page/page.html.erb
137
+ - config/locales/de.yml
138
+ - config/locales/en.yml
139
+ - lib/pageflow-text-page.rb
140
+ - lib/pageflow/text_page/engine.rb
141
+ - lib/pageflow/text_page/page_type.rb
142
+ - pageflow-text-page.gemspec
143
+ homepage: ''
144
+ licenses:
145
+ - MIT
146
+ metadata: {}
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubyforge_project:
163
+ rubygems_version: 2.4.2
164
+ signing_key:
165
+ specification_version: 4
166
+ summary: Pageflow Page Type text pages
167
+ test_files: []