Skip to content

Commit 51cb35a

Browse files
Merge pull request #31 from cortex-cms/topic/EM-1322-Subscription-FAQ
Accordion Group Helpers (EM-1322: Subscription FAQ)
2 parents 5e41518 + 23663c6 commit 51cb35a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/cortex/snippets/webpage.rb

Lines changed: 8 additions & 0 deletions
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 accordion_group_widget_data
71+
JSON.parse(@webpage[:accordion_group_widget_json] || 'null', quirks_mode: true)
72+
end
73+
74+
def accordion_group_widget_data_for(section_name)
75+
accordion_group_widget_data&.[](section_name) || []
76+
end
77+
7078
def charts_widget_data
7179
JSON.parse(@webpage[:charts_widget_json] || 'null', quirks_mode: true)
7280
end

0 commit comments

Comments
 (0)