summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-26 16:05:06 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-26 16:05:06 -0400
commit1fca5e721ab63d4d49e068331aee90abb111dbc2 (patch)
tree12fa6bccf85bb19a2aa1b5fa2b8148b47bde0ea3 /app
parent9ca4b43a97ae92fad57b00ac0217d5b7078272fb (diff)
Add getPluginHomepage()
Diffstat (limited to 'app')
-rw-r--r--app/Core/Plugin/Base.php13
-rw-r--r--app/Template/config/plugins.php8
2 files changed, 20 insertions, 1 deletions
diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php
index 1f61ab33..a72a0cd6 100644
--- a/app/Core/Plugin/Base.php
+++ b/app/Core/Plugin/Base.php
@@ -96,4 +96,17 @@ abstract class Base extends \Core\Base
{
return '?';
}
+
+ /**
+ * Get plugin homepage
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginHomepage()
+ {
+ return '';
+ }
}
diff --git a/app/Template/config/plugins.php b/app/Template/config/plugins.php
index 8501bda9..fea48d58 100644
--- a/app/Template/config/plugins.php
+++ b/app/Template/config/plugins.php
@@ -15,7 +15,13 @@
<?php foreach($plugins as $plugin): ?>
<tr>
- <td><?= $this->e($plugin->getPluginName()) ?></td>
+ <td>
+ <?php if ($plugin->getPluginHomepage()): ?>
+ <a href="<?= $plugin->getPluginHomepage() ?>" target="_blank" rel="noreferrer"><?= $this->e($plugin->getPluginName()) ?></a>
+ <?php else: ?>
+ <?= $this->e($plugin->getPluginName()) ?>
+ <?php endif ?>
+ </td>
<td><?= $this->e($plugin->getPluginAuthor()) ?></td>
<td><?= $this->e($plugin->getPluginVersion()) ?></td>
<td><?= $this->e($plugin->getPluginDescription()) ?></td>