cirandas.net

ref: master

plugins/community_block/lib/community_block_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__) + '/community_block'

class CommunityBlockPlugin < Noosfero::Plugin

  def self.plugin_name
    "Community Block Plugin"
  end

  def self.plugin_description
    _("A plugin that adds a block to show community description")
  end

  def self.extra_blocks
    {
      CommunityBlock => {:type => Community}
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end

end