pageflow-text-page 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62541c66c7a4e7cf14968341cdb71305e72edfdc3c482d8c3624f22e0a1e656d
|
4
|
+
data.tar.gz: b352873cacf1aaf22c559adbf439f754204ed9f5bef50b916a434de7ebc9f89c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25aa572040dd199bd7b527d6d21ead5acb8a336ca4c3ee6355447f244ecf78b9ebf0631374ecc6bc56a311f3d3c67877eb5f52160d534d58955403c29e5aafa7
|
7
|
+
data.tar.gz: 590d46fa27064db4371829e8b7f3bc65c69933ed1a0fb23710358ab08dde0a097c0f6e2189cff25e47ea4ee7b8d24749e8b7b4cb4f1b0e357bddec2ef584799e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.
|
3
|
+
### Version 1.6.0
|
4
4
|
|
5
|
-
2019-11-
|
5
|
+
2019-11-21
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-5-stable...v1.6.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
9
|
+
- Restrict theme-induced text max-width to left text layout
|
10
|
+
([#31](https://github.com/codevise/pageflow-text-page/pull/31))
|
11
|
+
- Change file lookup to perma_id
|
12
|
+
([#30](https://github.com/codevise/pageflow-text-page/pull/30))
|
13
|
+
- Fix Travis CI
|
14
|
+
([#29](https://github.com/codevise/pageflow-text-page/pull/29))
|
11
15
|
|
12
16
|
See
|
13
|
-
[1-
|
17
|
+
[1-5-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-5-stable/CHANGELOG.md)
|
14
18
|
for previous changes.
|
@@ -29,14 +29,18 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
|
|
29
29
|
@include pageflow-page-type-pictograms("text_page");
|
30
30
|
|
31
31
|
.page .text_page {
|
32
|
+
.inline_text_position_left {
|
33
|
+
.page_text {
|
34
|
+
@include wide_desktop {
|
35
|
+
max-width: $text-page-page-text-wide-desktop-max-width;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
32
40
|
.page_text {
|
33
41
|
font-size: $text-page-content-text-base-font-size;
|
34
42
|
max-width: 500px;
|
35
43
|
|
36
|
-
@include wide_desktop {
|
37
|
-
max-width: $text-page-page-text-wide-desktop-max-width;
|
38
|
-
}
|
39
|
-
|
40
44
|
@include phone {
|
41
45
|
font-size: $text-page-content-text-phone-base-font-size;
|
42
46
|
max-width: 84%;
|
@@ -1,28 +1,28 @@
|
|
1
1
|
module Pageflow
|
2
2
|
module TextPage
|
3
3
|
module ImageHelper
|
4
|
-
def content_image(
|
5
|
-
image =
|
4
|
+
def content_image(perma_id, alt, format = :medium)
|
5
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
6
6
|
if image
|
7
|
-
image_tag(image.attachment.url(:
|
7
|
+
image_tag(image.attachment.url(format), alt: alt)
|
8
8
|
else
|
9
9
|
''
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
def content_image_large(
|
14
|
-
image =
|
13
|
+
def content_image_large(perma_id, alt, format = :large)
|
14
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
15
15
|
if image
|
16
|
-
image_tag(image.attachment.url(:
|
16
|
+
image_tag(image.attachment.url(format), alt: alt)
|
17
17
|
else
|
18
18
|
''
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def fullscreen_image_url(
|
23
|
-
image =
|
22
|
+
def fullscreen_image_url(perma_id, format = :large)
|
23
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
24
24
|
if image
|
25
|
-
return image.attachment.url(
|
25
|
+
return image.attachment.url(format)
|
26
26
|
else
|
27
27
|
'#'
|
28
28
|
end
|
@@ -31,9 +31,9 @@ module Pageflow
|
|
31
31
|
def background_asset_present_css_class(configuration)
|
32
32
|
file =
|
33
33
|
if configuration['background_type'] == 'video'
|
34
|
-
|
34
|
+
find_file_in_entry(VideoFile, configuration['video_file_id'])
|
35
35
|
else
|
36
|
-
|
36
|
+
find_file_in_entry(ImageFile, configuration['background_image_id'])
|
37
37
|
end
|
38
38
|
|
39
39
|
file ? '' : 'no_background_asset'
|
data/pageflow-text-page.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.required_ruby_version = '~> 2.1'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'pageflow', ['>=
|
21
|
+
spec.add_runtime_dependency 'pageflow', ['>= 15', '< 16']
|
22
22
|
spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', ['>= 1.0', '< 3']
|
25
|
-
spec.add_development_dependency 'pageflow-support', ['>=
|
25
|
+
spec.add_development_dependency 'pageflow-support', ['>= 15', '< 16']
|
26
26
|
spec.add_development_dependency 'rake', '~> 12.0'
|
27
27
|
spec.add_development_dependency 'rspec-rails', '~> 3.0'
|
28
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-text-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '15'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '16'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '15'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '16'
|
@@ -70,7 +70,7 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
73
|
+
version: '15'
|
74
74
|
- - "<"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '16'
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '15'
|
84
84
|
- - "<"
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '16'
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.7.
|
189
|
+
rubygems_version: 2.7.10
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Pageflow Page Type text pages
|