Sha256: 175fa0d13b2e07446fda3ab93eedf73a6a6205434a20db5e920b494dc1883cf5
Contents?: true
Size: 674 Bytes
Versions: 71
Compression:
Stored size: 674 Bytes
Contents
module Themes::Default::DefaultHelper def self.included(klass) klass.helper_method [:get_taxonomy] rescue "" end def theme_default_load_app end def theme_default_settings(theme) end def get_taxonomy(taxonomies = {}, rel = '') list = [] if taxonomies.present? taxonomies.each do |taxonomy| list << "<a href='#{taxonomy.the_url}' rel='#{rel}'>#{taxonomy.the_title}</a>" end end list.join(', ') end def theme_default_on_install(theme) theme.add_field({"name"=>"Footer message", "slug"=>"footer"},{field_key: "editor", default_value: 'Copyright © 2015 - Camaleon CMS. All rights reservated.'}) end end
Version data entries
71 entries across 71 versions & 2 rubygems