cirandas.net

ref: master

plugins/profile_images/lib/profile_images_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
class ProfileImagesPlugin < Noosfero::Plugin
  def self.plugin_name
    'ProfileImagesPlugin'
  end

  def self.plugin_description
    _('Adds a block that lists all images inside a profile.')
  end

  def self.extra_blocks
    {
      ProfileImagesPlugin::ProfileImagesBlock => { type: [Person, Community, Enterprise] }
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end
end