Class: Spree::Cms::Sections::SideBySideImages

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

Constant Summary collapse

LINKED_RESOURCE_TYPE =
['Spree::Taxon', 'Spree::Product'].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

#gutters?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/models/spree/cms/sections/side_by_side_images.rb', line 13

def gutters?
  gutters == 'Gutters'
end

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



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

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

#img_one_md(dimensions = '387x250>') ⇒ Object

img_one sizing



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

def img_one_md(dimensions = '387x250>')
  super
end

#img_one_xl(dimensions = '1468x952>') ⇒ Object



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

def img_one_xl(dimensions = '1468x952>')
  super
end

#img_two_lg(dimensions = '734x476>') ⇒ Object



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

def img_two_lg(dimensions = '734x476>')
  super
end

#img_two_md(dimensions = '387x250>') ⇒ Object

img_two sizing



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

def img_two_md(dimensions = '387x250>')
  super
end

#img_two_xl(dimensions = '1468x952>') ⇒ Object



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

def img_two_xl(dimensions = '1468x952>')
  super
end