aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-08 09:48:50 +0200
committerSem <sembrestels@riseup.net>2012-07-08 09:48:50 +0200
commit17c28c8161e8c551ce4e4a1345e525cbb785fb59 (patch)
treec5e650d7ccb11fe172318ff1dd7e2eddabfd08d3 /views
parent7fd67bc8ac6882f1a73aa7f8f907cd6c2a694272 (diff)
downloadelgg-17c28c8161e8c551ce4e4a1345e525cbb785fb59.tar.gz
elgg-17c28c8161e8c551ce4e4a1345e525cbb785fb59.tar.bz2
Fixes #3646. Added suport for Repository, Bugtracker and Donations in manifest.
Diffstat (limited to 'views')
-rw-r--r--views/default/css/admin.php3
-rw-r--r--views/default/object/plugin/full.php28
2 files changed, 28 insertions, 3 deletions
diff --git a/views/default/css/admin.php b/views/default/css/admin.php
index 78ec95c26..437b0f00f 100644
--- a/views/default/css/admin.php
+++ b/views/default/css/admin.php
@@ -1460,7 +1460,8 @@ a.elgg-widget-collapsed:before {
padding: 5px 10px;
margin: 4px 0;
}
-ul.elgg-plugin-categories, ul.elgg-plugin-categories > li {
+ul.elgg-plugin-categories, ul.elgg-plugin-categories > li,
+ul.elgg-plugin-resources, ul.elgg-plugin-resources > li {
display: inline;
}
.elgg-plugin-category-bundled {
diff --git a/views/default/object/plugin/full.php b/views/default/object/plugin/full.php
index db0a52416..a96acd4ec 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()->getRepository(),
+ 'bugtracker' => $plugin->getManifest()->getBugTracker(),
+ 'donate' => $plugin->getManifest()->getDonationsPage(),
+);
+
+$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>