Sha256: 1f06b79b717960169d65d62ef065c724ce66e4d0c08bac3baeed934852520b20

Contents?: true

Size: 548 Bytes

Versions: 9

Compression:

Stored size: 548 Bytes

Contents

class Plugins::Sidebars::MagnoliaController < Sidebars::ComponentPlugin
  description 'Pictures from <a href="http://ma.gnolia.com">ma.gnolia.com</a>'

  setting :dtitle, 'Ma.gnolia Links', :label => 'Display Title'
  setting :feed,   'http://ma.gnolia.com/rss/full/people/USERNAME/', :label => 'Feed URL'
  setting :count,   5, :label => 'Items limit'

  def content
    begin
      response.lifetime = 1.hour
      @mag=check_cache(MagnoliaAggregation, @sb_config['feed'])
    rescue Exception => e
      logger.info e
      ""
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 components/plugins/sidebars/magnolia_controller.rb
typo-3.99.1 components/plugins/sidebars/magnolia_controller.rb
typo-3.99.2 components/plugins/sidebars/magnolia_controller.rb
typo-3.99.3 components/plugins/sidebars/magnolia_controller.rb
typo-3.99.4 components/plugins/sidebars/magnolia_controller.rb
typo-4.0.0 components/plugins/sidebars/magnolia_controller.rb
typo-4.0.1 components/plugins/sidebars/magnolia_controller.rb
typo-4.0.2 components/plugins/sidebars/magnolia_controller.rb
typo-4.0.3 components/plugins/sidebars/magnolia_controller.rb