lib/zen/package/settings/lib/settings.rb in zen-0.2.6.1 vs lib/zen/package/settings/lib/settings.rb in zen-0.2.7

- old
+ new

@@ -32,12 +32,10 @@ Zen::Theme::Registered.each do |name, theme| name = name.to_s theme_hash[name] = name end -# ------ - # Register the plugin Zen::Plugin.add do |plugin| plugin.name = 'settings' plugin.author = 'Yorick Peterse' plugin.url = 'http://yorickpeterse.com/' @@ -70,22 +68,9 @@ setting.title = lang('settings.labels.website_description') setting.description = lang('settings.placeholders.website_description') setting.name = 'website_description' setting.group = 'general' setting.type = 'textarea' -end - -plugin(:settings, :register) do |setting| - setting.title = lang('settings.labels.website_enabled') - setting.description = lang('settings.placeholders.website_enabled') - setting.name = 'website_enabled' - setting.group = 'general' - setting.type = 'radio' - setting.default = '1' - setting.values = { - lang('zen_general.special.boolean_hash.true') => '1', - lang('zen_general.special.boolean_hash.false') => '0' - } end plugin(:settings, :register) do |setting| setting.title = lang('settings.labels.language') setting.description = lang('settings.placeholders.language')