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 &copy; 2015 - Camaleon CMS. All rights reservated.'})
  end

end

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
camaleon_cms-2.4.0 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.7.2 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.7.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.7 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.6 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.5 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.4 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.3 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.2 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.3.0 app/apps/themes/default/default_helper.rb