cirandas.net

ref: master

plugins/people_block/lib/people_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
class PeopleBlockPlugin < Noosfero::Plugin

  def self.plugin_name
    "People Block Plugin"
  end

  def self.plugin_description
    _("A plugin that adds a people block")
  end

  def self.extra_blocks
    {
      PeopleBlock => {:type => Environment},
      MembersBlock => {:type => Community},
      FriendsBlock => {:type => Person}
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end

end