Sha256: c984498c77b34fcabfae8b19a624411a11d0c7157ccc22a9766a83d05c34e47d

Contents?: true

Size: 1.28 KB

Versions: 35

Compression:

Stored size: 1.28 KB

Contents

=begin
  Camaleon CMS is a content management system
  Copyright (C) 2015 by Owen Peredo Diaz
  Email: owenperedo@gmail.com
  This program is free software: you can redistribute it and/or modify   it under the terms of the GNU Affero General Public License as  published by the Free Software Foundation, either version 3 of the  License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the  GNU Affero General Public License (GPLv3) for more details.
=end
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

35 entries across 35 versions & 1 rubygems

Version Path
camaleon_cms-2.1.2.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.2.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.2.0 app/apps/themes/default/default_helper.rb
camaleon_cms-2.1.2.0 app/apps/themes/default/default_helper.rb
camaleon_cms-2.1.1.4 app/apps/themes/default/default_helper.rb
camaleon_cms-2.1.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.1.0 app/apps/themes/default/default_helper.rb
camaleon_cms-2.0.4.1 app/apps/themes/default/default_helper.rb
camaleon_cms-2.0.4 app/apps/themes/default/default_helper.rb
camaleon_cms-2.0.3 app/apps/themes/default/default_helper.rb
camaleon_cms-2.0.2 app/apps/themes/default/default_helper.rb
camaleon_cms-2.0.1 app/apps/themes/default/default_helper.rb
camaleon_cms-1.1.0 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.9 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.8 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.7 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.6 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.5 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.4 app/apps/themes/default/default_helper.rb
camaleon_cms-1.0.3 app/apps/themes/default/default_helper.rb