5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'app/helpers/locomotive/shared/site_metafields_helper.rb', line 5
def current_site_metafields_ui
return @site_metafields_ui if @site_metafields_ui
_ui = current_site.metafields_ui
@site_metafields_ui = {}.tap do |ui|
ui[:label] = current_site_metafields_ui_t(_ui['label'], t('locomotive.shared.sidebar.metafields'))
ui[:title] = current_site_metafields_ui_t(_ui['label'], t('locomotive.current_site_metafields.index.title'))
ui[:hint] = current_site_metafields_ui_t(_ui['hint'], t('locomotive.current_site_metafields.index.help', default: ''))
ui[:icon] = "fas fa-#{_ui['icon'].present? ? _ui['icon'] : 'newspaper'}"
end
end
|