Sha256: 0d991773c91e2efc44ea5ada5d303aeeced69ee18ea8b604336d1eca3935139a

Contents?: true

Size: 751 Bytes

Versions: 6

Compression:

Stored size: 751 Bytes

Contents

class XmlSidebar < Sidebar
  display_name "XML Syndication"
  description "RSS and Atom feeds"

  setting :articles,   true,  :input_type => :checkbox
  setting :comments,   true,  :input_type => :checkbox
  setting :trackbacks, false, :input_type => :checkbox
  setting :article_comments, true, :input_type => :checkbox
  setting :category_feeds, false, :input_type => :checkbox
  setting :tag_feeds, false, :input_type => :checkbox

  setting :format, 'atom', :input_type => :radio,
          :choices => [["rss",  "RSS"], ["atom", "Atom"]]

  def format_strip
    strip_format = self.format
    strip_format ||= 'atom'
    strip_format.gsub!(/\d+/,'')
    strip_format.gsub!('1.0', '')
    strip_format.gsub!('2.0', '')
    strip_format
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.5 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb
typo-5.4.4 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb
typo-5.4.3 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb
typo-5.4.2 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb
typo-5.4.1 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb
typo-5.4 vendor/plugins/xml_sidebar/lib/xml_sidebar.rb