Sha256: 2eba101df77d0c7315ed378c77a424f30e80fae084d6cdc3c16b87e4cf2d34b9

Contents?: true

Size: 632 Bytes

Versions: 3

Compression:

Stored size: 632 Bytes

Contents

module Enjoy
  module Admin
    module SitemapData
      def self.config(is_active = false)
        Proc.new {
          navigation_label 'SEO'
          label I18n.t('enjoy.sitemap_data')
          field :sitemap_data_field do
            read_only true
          end
          field :sitemap_show, :toggle
          field :sitemap_lastmod
          field :sitemap_changefreq, :enum do
            enum do
              Enjoy::SitemapData::SITEMAP_CHANGEFREQ_ARRAY
            end
          end
          field :sitemap_priority

          if block_given?
            yield self
          end
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms-0.2.0.3.2 lib/enjoy/admin/sitemap_data.rb
enjoy_cms-0.2.0.3.1 lib/enjoy/admin/sitemap_data.rb
enjoy_cms-0.2.0.3 lib/enjoy/admin/sitemap_data.rb