cirandas.net

ref: master

plugins/cms_learning/lib/cms_learning_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
28
class CmsLearningPlugin < Noosfero::Plugin

  def self.plugin_name
    "CmsLearning"
  end

  def self.plugin_description
    _("Share your knowledge to the network.")
  end

  def stylesheet?
    true
  end

  def js_files
    ['cms_learning.js'].map{ |j| "javascripts/#{j}" }
  end

  def profile_blocks profile
    CmsLearningPlugin::LearningsBlock
  end

  def content_types
    [CmsLearningPlugin::Learning]
  end

end