Class: CamaleonCms::Theme
- Inherits:
-
TermTaxonomy
- Object
- ActiveRecord::Base
- CamaleonRecord
- TermTaxonomy
- CamaleonCms::Theme
- Defined in:
- app/models/camaleon_cms/theme.rb
Constant Summary
Constants inherited from TermTaxonomy
CamaleonCms::TermTaxonomy::TRANSLATION_TAG_HIDE_MAP, CamaleonCms::TermTaxonomy::TRANSLATION_TAG_HIDE_REGEX, CamaleonCms::TermTaxonomy::TRANSLATION_TAG_RESTORE_MAP, CamaleonCms::TermTaxonomy::TRANSLATION_TAG_RESTORE_REGEX
Instance Method Summary collapse
-
#settings ⇒ Object
return theme settings configured in config.json.
-
#settings_file ⇒ Object
return the path to the settings file for current theme.
Methods inherited from TermTaxonomy
#children, #in_nav_menu_items, inherited, #skip_slug_validation?
Methods included from CustomFieldsRead
#add_custom_field_group, #add_custom_field_to_default_group, #get_field_groups, #get_field_object, #get_field_value, #get_field_values, #get_field_values_hash, #get_fields_grouped, #get_fields_object, #get_user_field_groups, #save_field_value, #set_field_value, #set_field_values, #update_field_value
Methods included from Metas
#delete_meta, #delete_option, #fix_save_metas_options_no_changed, #get_meta, #get_option, #options, #save_metas_options, #save_metas_options_skip, #set_meta, #set_metas, #set_option, #set_options
Methods inherited from CamaleonRecord
#cama_build_cache_key, #cama_fetch_cache, #cama_get_cache, #cama_remove_cache, #cama_set_cache
Instance Method Details
#settings ⇒ Object
return theme settings configured in config.json
13 14 15 |
# File 'app/models/camaleon_cms/theme.rb', line 13 def settings PluginRoutes.theme_info(slug) end |
#settings_file ⇒ Object
return the path to the settings file for current theme
18 19 20 |
# File 'app/models/camaleon_cms/theme.rb', line 18 def settings_file File.join(settings['path'], 'views/admin/settings').to_s end |