cirandas.net

ref: master

plugins/context_content/lib/context_content_plugin.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class ContextContentPlugin < Noosfero::Plugin

  def self.plugin_name
    "Display Context Content"
  end

  def self.plugin_description
    _("A plugin that display content based on page context.")
  end

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

  def stylesheet?
    true
  end

end