cirandas.net

ref: master

plugins/recent_content/lib/recent_content_plugin.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require_dependency File.dirname(__FILE__) + '/recent_content_block'

class RecentContentPlugin < Noosfero::Plugin

  def self.plugin_name
    "Recent Content Plugin"
  end

  def self.plugin_description
    _("A plugin that adds a block where you can display the content of any of your blogs.")
  end

  def self.extra_blocks
    {
      RecentContentBlock => {:position => ['1','2','3'] }
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end

end