aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin/full.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-16 22:15:58 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-16 22:15:58 -0400
commit6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535 (patch)
tree21eec1f05deefefa54aa5b0f03c5ab7aa4360297 /views/default/object/plugin/full.php
parent2e0cc0343715adec8a0843750016f89acc3c2394 (diff)
parent037eacc4a5015dc048c4fff080349aa96a9b918e (diff)
downloadelgg-6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535.tar.gz
elgg-6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535.tar.bz2
Merge pull request #304 from sembrestels/donate-manifest
Code, Report issue and Donate links in manifest
Diffstat (limited to 'views/default/object/plugin/full.php')
-rw-r--r--views/default/object/plugin/full.php28
1 files changed, 26 insertions, 2 deletions
diff --git a/views/default/object/plugin/full.php b/views/default/object/plugin/full.php
index db0a52416..2de65b555 100644
--- a/views/default/object/plugin/full.php
+++ b/views/default/object/plugin/full.php
@@ -172,6 +172,26 @@ $website = elgg_view('output/url', array(
'is_trusted' => true,
));
+$resources = array(
+ 'repository' => $plugin->getManifest()->getRepositoryURL(),
+ 'bugtracker' => $plugin->getManifest()->getBugTrackerURL(),
+ 'donate' => $plugin->getManifest()->getDonationsPageURL(),
+);
+
+$resources_html = "<ul class=\"elgg-plugin-resources\">";
+foreach ($resources as $id => $href) {
+ if ($href) {
+ $resources_html .= "<li class=\"prm\">";
+ $resources_html .= elgg_view('output/url', array(
+ 'href' => $href,
+ 'text' => elgg_echo("admin:plugins:label:$id"),
+ 'is_trusted' => true,
+ ));
+ $resources_html .= "</li>";
+ }
+}
+$resources_html .= "</ul>";
+
$copyright = elgg_view('output/text', array('value' => $plugin->getManifest()->getCopyright()));
$license = elgg_view('output/text', array('value' => $plugin->getManifest()->getLicense()));
@@ -242,7 +262,11 @@ if (elgg_view_exists($settings_view_old) || elgg_view_exists($settings_view_new)
<div><?php echo $description; ?></div>
<p><?php echo $author . ' - ' . $website; ?></p>
- <?php echo $docs; ?>
+
+ <?php
+ echo $resources_html;
+ echo $docs;
+ ?>
<div class="pts">
<?php
@@ -281,4 +305,4 @@ if (elgg_view_exists($settings_view_old) || elgg_view_exists($settings_view_new)
?>
</div>
</div>
-</div> \ No newline at end of file
+</div>