diff options
Diffstat (limited to 'plugins/Feedback/Feedback.php')
-rw-r--r-- | plugins/Feedback/Feedback.php | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/plugins/Feedback/Feedback.php b/plugins/Feedback/Feedback.php index 895d99462d..5cbd0afdf2 100644 --- a/plugins/Feedback/Feedback.php +++ b/plugins/Feedback/Feedback.php @@ -1,11 +1,11 @@ <?php /** * Piwik - Open source web analytics - * + * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later * @version $Id$ - * + * * @category Piwik_Plugins * @package Piwik_Feedback */ @@ -19,11 +19,28 @@ class Piwik_Feedback extends Piwik_Plugin public function getInformation() { return array( - 'name' => 'Feedback', - 'description' => 'Send your Feedback to the Piwik Team in one click. Share your ideas and suggestions with us!', + 'description' => Piwik_Translate('Feedback_PluginDescription'), 'author' => 'Piwik', - 'homepage' => 'http://piwik.org/', - 'version' => '0.1', + 'author_homepage' => 'http://piwik.org/', + 'version' => Piwik_Version::VERSION, + ); + } + + function getListHooksRegistered() + { + return array( + 'template_css_import' => 'css', + 'template_js_import' => 'js', ); } + + function css() + { + echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"plugins/Feedback/templates/styles.css\" />\n"; + } + + function js() + { + echo "<script type=\"text/javascript\" src=\"plugins/Feedback/templates/feedback.js\"></script>\n"; + } } |