Sha256: c440cffcea4eebca5ba4c6af193e99afb1af7fab3452bf7b7c3c26d0fbd0a87c

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

Spina::Engine.configure do
  config.NEGATIVE_CAPTCHA_SECRET = 'abc'
end

module Spina
  module DefaultTheme
    include ActiveSupport::Configurable

    config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures

    self.title = "Default theme"

    self.page_parts = [{ 
      name: 'content', 
      title: 'Content', 
      page_partable_type: "Spina::Text" 
    }, { 
      name: 'team', 
      title: 'Team', 
      page_partable_type: "Spina::Structure"
    }]

    self.structures = {
      'team' => [{
        name: 'name',
        title: 'Naam',
        structure_partable_type: "Spina::Line"
      }, {
        name: 'description',
        title: 'Omschrijving',
        structure_partable_type: "Spina::Text"
      }, {
        name: 'photo',
        title: 'Foto',
        structure_partable_type: "Spina::Photo"  
      }]
    }

    self.layout_parts = []

    self.custom_pages = []
    self.plugins = []

    self.view_templates = {
      'show' => {
        title: 'Default',
        description: 'Default template',
        usage: 'Default page',
        page_parts: ['content', 'team']
      }
    }
  end
end

theme = Spina::Theme.new
theme.name = "Default theme"
theme.config = Spina::DefaultTheme.config
Spina.register_theme(theme)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spina-0.6.19 test/dummy/config/initializers/spina.rb
spina-0.6.18 test/dummy/config/initializers/spina.rb
spina-0.6.17 test/dummy/config/initializers/spina.rb
spina-0.6.16 test/dummy/config/initializers/spina.rb
spina-0.6.15 test/dummy/config/initializers/spina.rb
spina-0.6.14 test/dummy/config/initializers/spina.rb