Class: Spree::Cms::Sections::ImageGallery

Inherits:
Spree::CmsSection show all
Defined in:
app/models/spree/cms/sections/image_gallery.rb

Constant Summary collapse

LINKED_RESOURCE_TYPE =
['Spree::Taxon', 'Spree::Product'].freeze
LAYOUT_OPTIONS =
['Default', 'Reversed'].freeze
LABEL_OPTIONS =
['Show', 'Hide'].freeze

Constants inherited from Spree::CmsSection

Spree::CmsSection::TYPES

Instance Method Summary collapse

Methods inherited from Spree::CmsSection

#boundaries, #css_classes, #fullscreen?, #gutters_sizes

Methods inherited from Base

belongs_to_required_by_default, for_store, has_many_inversing, json_api_columns, json_api_permitted_attributes, json_api_type, page, spree_base_scopes, spree_base_uniqueness_scope

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #deprecated_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_deprecated, #preference_type, #set_preference

Instance Method Details

#default_layout?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'app/models/spree/cms/sections/image_gallery.rb', line 59

def default_layout?
  layout_style == 'Default'
end

#img_one_lg(dimensions = '540x390>') ⇒ Object



23
24
25
# File 'app/models/spree/cms/sections/image_gallery.rb', line 23

def img_one_lg(dimensions = '540x390>')
  super
end

#img_one_md(dimensions = '270x195>') ⇒ Object

img_one sizing



19
20
21
# File 'app/models/spree/cms/sections/image_gallery.rb', line 19

def img_one_md(dimensions = '270x195>')
  super
end

#img_one_xl(dimensions = '1080x780>') ⇒ Object



27
28
29
# File 'app/models/spree/cms/sections/image_gallery.rb', line 27

def img_one_xl(dimensions = '1080x780>')
  super
end

#img_three_lg(dimensions = '540x390>') ⇒ Object



51
52
53
# File 'app/models/spree/cms/sections/image_gallery.rb', line 51

def img_three_lg(dimensions = '540x390>')
  super
end

#img_three_md(dimensions = '270x195>') ⇒ Object

img_three sizing



47
48
49
# File 'app/models/spree/cms/sections/image_gallery.rb', line 47

def img_three_md(dimensions = '270x195>')
  super
end

#img_three_xl(dimensions = '1080x780>') ⇒ Object



55
56
57
# File 'app/models/spree/cms/sections/image_gallery.rb', line 55

def img_three_xl(dimensions = '1080x780>')
  super
end

#img_two_lg(dimensions = '540x800>') ⇒ Object



37
38
39
# File 'app/models/spree/cms/sections/image_gallery.rb', line 37

def img_two_lg(dimensions = '540x800>')
  super
end

#img_two_md(dimensions = '270x400>') ⇒ Object

img_two sizing



33
34
35
# File 'app/models/spree/cms/sections/image_gallery.rb', line 33

def img_two_md(dimensions = '270x400>')
  super
end

#img_two_xl(dimensions = '1080x1600>') ⇒ Object



41
42
43
# File 'app/models/spree/cms/sections/image_gallery.rb', line 41

def img_two_xl(dimensions = '1080x1600>')
  super
end

#show_labels?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'app/models/spree/cms/sections/image_gallery.rb', line 63

def show_labels?
  display_labels == 'Show'
end