Skip to content

Commit 1899382

Browse files
authored
Merge pull request #33 from cortex-cms/topic/EM-1722/Create-React-Component-For-Carousels
EM-1722: Carousels Widget
2 parents 9498a91 + 04ac396 commit 1899382

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/cortex/snippets/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Cortex
22
module Snippets
3-
VERSION = '1.1.4'
3+
VERSION = '1.1.5'
44
end
55
end

lib/cortex/snippets/webpage.rb

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ def tables_widget_data_for(section_name)
6767
tables_widget_data&.[](section_name) || []
6868
end
6969

70+
def carousels_widget_data
71+
JSON.parse(@webpage[:carousels_widget_json] || 'null', quirks_mode: true)
72+
end
73+
74+
def carousels_widget_data_for(section_name)
75+
carousels_widget_data&.[](section_name)
76+
end
77+
7078
def accordion_group_widget_data
7179
JSON.parse(@webpage[:accordion_group_widget_json] || 'null', quirks_mode: true)
7280
end

0 commit comments

Comments
 (0)