Sha256: 3c70a474fb33fd78ccfe16a2b797c3e212449ec22238440ba595d49ef9ae3105
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 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 :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-5.3 | vendor/plugins/xml_sidebar/lib/xml_sidebar.rb |