diff options
author | Sem <sembrestels@riseup.net> | 2012-07-08 09:48:50 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-08 09:48:50 +0200 |
commit | 17c28c8161e8c551ce4e4a1345e525cbb785fb59 (patch) | |
tree | c5e650d7ccb11fe172318ff1dd7e2eddabfd08d3 | |
parent | 7fd67bc8ac6882f1a73aa7f8f907cd6c2a694272 (diff) | |
download | elgg-17c28c8161e8c551ce4e4a1345e525cbb785fb59.tar.gz elgg-17c28c8161e8c551ce4e4a1345e525cbb785fb59.tar.bz2 |
Fixes #3646. Added suport for Repository, Bugtracker and Donations in manifest.
41 files changed, 124 insertions, 8 deletions
diff --git a/documentation/info/manifest.xml b/documentation/info/manifest.xml index baa6cc3fa..494158481 100644 --- a/documentation/info/manifest.xml +++ b/documentation/info/manifest.xml @@ -6,6 +6,9 @@ <blurb>A concise description.</blurb> <description>This is a longer, more interesting description of my plugin, its features, and other important information.</description> <website>http://www.elgg.org/</website> + <repository>https://github.com/Elgg/Elgg</repository> + <bugtracker>http://trac.elgg.org</bugtracker> + <donations>http://elgg.org/supporter.php</donations> <copyright>(C) Elgg 2011</copyright> <license>GNU General Public License version 2</license> diff --git a/engine/classes/ElggPluginManifest.php b/engine/classes/ElggPluginManifest.php index 7e79c15c8..5eb248c2c 100644 --- a/engine/classes/ElggPluginManifest.php +++ b/engine/classes/ElggPluginManifest.php @@ -276,6 +276,32 @@ class ElggPluginManifest { } } + /** + * Returns the repository url + * + * @return sting + */ + public function getRepository() { + return $this->parser->getAttribute('repository'); + } + + /** + * Returns the bug tracker page + * + * @return sting + */ + public function getBugTracker() { + return $this->parser->getAttribute('bugtracker'); + } + + /** + * Returns the donations page + * + * @return sting + */ + public function getDonationsPage() { + return $this->parser->getAttribute('donations'); + } /** * Returns the version of the plugin. diff --git a/engine/classes/ElggPluginManifestParser18.php b/engine/classes/ElggPluginManifestParser18.php index 554e28c02..3b753f17b 100644 --- a/engine/classes/ElggPluginManifestParser18.php +++ b/engine/classes/ElggPluginManifestParser18.php @@ -13,10 +13,10 @@ class ElggPluginManifestParser18 extends ElggPluginManifestParser { * @var array */ protected $validAttributes = array( - 'name', 'author', 'version', 'blurb', 'description', - 'website', 'copyright', 'license', 'requires', 'suggests', - 'screenshot', 'category', 'conflicts', 'provides', - 'activate_on_install' + 'name', 'author', 'version', 'blurb', 'description','website', + 'repository', 'bugtracker', 'donations', 'copyright', 'license', + 'requires', 'suggests', 'conflicts', 'provides', + 'screenshot', 'category', 'activate_on_install' ); /** @@ -46,6 +46,9 @@ class ElggPluginManifestParser18 extends ElggPluginManifestParser { case 'website': case 'copyright': case 'license': + case 'repository': + case 'bugtracker': + case 'donations': case 'activate_on_install': $parsed[$element->name] = $element->content; break; diff --git a/engine/tests/api/plugins.php b/engine/tests/api/plugins.php index 8ecb0a46c..66297266c 100644 --- a/engine/tests/api/plugins.php +++ b/engine/tests/api/plugins.php @@ -68,6 +68,9 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest { 'blurb' => 'A concise description.', 'description' => 'A longer, more interesting description.', 'website' => 'http://www.elgg.org/', + 'repository' => 'https://github.com/Elgg/Elgg', + 'bugtracker' => 'http://trac.elgg.org', + 'donations' => 'http://elgg.org/supporter.php', 'copyright' => '(C) Elgg Foundation 2011', 'license' => 'GNU General Public License version 2', @@ -164,6 +167,21 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest { $this->assertEqual($this->manifest18->getWebsite(), 'http://www.elgg.org/'); $this->assertEqual($this->manifest17->getWebsite(), 'http://www.elgg.org/'); } + + public function testElggPluginManifestGetRepository() { + $this->assertEqual($this->manifest18->getRepository(), 'https://github.com/Elgg/Elgg'); + $this->assertEqual($this->manifest17->getRepository(), ''); + } + + public function testElggPluginManifestGetBugtracker() { + $this->assertEqual($this->manifest18->getBugTracker(), 'http://trac.elgg.org'); + $this->assertEqual($this->manifest17->getBugTracker(), ''); + } + + public function testElggPluginManifestGetDonationsPage() { + $this->assertEqual($this->manifest18->getDonationsPage(), 'http://elgg.org/supporter.php'); + $this->assertEqual($this->manifest17->getDonationsPage(), ''); + } public function testElggPluginManifestGetCopyright() { $this->assertEqual($this->manifest18->getCopyright(), '(C) Elgg Foundation 2011'); diff --git a/engine/tests/test_files/plugin_18/manifest.xml b/engine/tests/test_files/plugin_18/manifest.xml index 9654b6422..5d788616a 100644 --- a/engine/tests/test_files/plugin_18/manifest.xml +++ b/engine/tests/test_files/plugin_18/manifest.xml @@ -6,6 +6,9 @@ <blurb>A concise description.</blurb> <description>A longer, more interesting description.</description> <website>http://www.elgg.org/</website> + <repository>https://github.com/Elgg/Elgg</repository> + <bugtracker>http://trac.elgg.org</bugtracker> + <donations>http://elgg.org/supporter.php</donations> <copyright>(C) Elgg Foundation 2011</copyright> <license>GNU General Public License version 2</license> diff --git a/languages/en.php b/languages/en.php index 18d0c88d9..23f1c3a19 100644 --- a/languages/en.php +++ b/languages/en.php @@ -686,6 +686,9 @@ $english = array( 'admin:plugins:label:categories' => 'Categories', 'admin:plugins:label:licence' => "Licence", 'admin:plugins:label:website' => "URL", + 'admin:plugins:label:repository' => "Code", + 'admin:plugins:label:bugtracker' => "Report issue", + 'admin:plugins:label:donate' => "Donate", 'admin:plugins:label:moreinfo' => 'more info', 'admin:plugins:label:version' => 'Version', 'admin:plugins:label:location' => 'Location', diff --git a/mod/blog/manifest.xml b/mod/blog/manifest.xml index 29ee1bfc8..a68c30969 100644 --- a/mod/blog/manifest.xml +++ b/mod/blog/manifest.xml @@ -9,6 +9,7 @@ <blurb>Blog plugin</blurb> <description>Adds simple blogging capabilities to your Elgg installation.</description> <website>http://elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/bookmarks/manifest.xml b/mod/bookmarks/manifest.xml index b95af87f8..ebe8704a6 100644 --- a/mod/bookmarks/manifest.xml +++ b/mod/bookmarks/manifest.xml @@ -9,6 +9,7 @@ <blurb>Add and comment on bookmarks.</blurb> <description>Adds the ability for users to bookmark internal and external sites. Other users can then comment on the bookmarks.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/categories/manifest.xml b/mod/categories/manifest.xml index 4a6bd0864..dbc84bed0 100644 --- a/mod/categories/manifest.xml +++ b/mod/categories/manifest.xml @@ -8,6 +8,7 @@ <blurb>Add site-wide categories</blurb> <description>Site-wide Categories lets administrators define categories that users across the site can add content to.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/custom_index/manifest.xml b/mod/custom_index/manifest.xml index 80187efbc..3bdcbd333 100644 --- a/mod/custom_index/manifest.xml +++ b/mod/custom_index/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>A demonstration of how to create a front page plugin.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/dashboard/manifest.xml b/mod/dashboard/manifest.xml index cbbc1044c..20ed074a7 100644 --- a/mod/dashboard/manifest.xml +++ b/mod/dashboard/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>A widget-based dashboard for your users</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/developers/manifest.xml b/mod/developers/manifest.xml index 93a12945d..58e8e24f0 100644 --- a/mod/developers/manifest.xml +++ b/mod/developers/manifest.xml @@ -8,6 +8,9 @@ <blurb>Developer tools for Elgg</blurb> <description>A set of tools for writing plugins and themes. It is recommended that you have this plugin at the top of the plugin list.</description> <website>http://www.elgg.org/</website> + <repository>https://github.com/Elgg/Elgg</repository> + <bugtracker>http://trac.elgg.org</bugtracker> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> diff --git a/mod/diagnostics/manifest.xml b/mod/diagnostics/manifest.xml index 21e847d22..df4a81b02 100644 --- a/mod/diagnostics/manifest.xml +++ b/mod/diagnostics/manifest.xml @@ -8,6 +8,7 @@ <category>admin</category> <description>Elgg diagnostics tool</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/embed/manifest.xml b/mod/embed/manifest.xml index 81ca9194e..546471647 100644 --- a/mod/embed/manifest.xml +++ b/mod/embed/manifest.xml @@ -7,6 +7,7 @@ <category>enhancement</category> <description>Allows users to easily upload and embed media into text areas.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/externalpages/manifest.xml b/mod/externalpages/manifest.xml index f2aef09f3..8c474ddab 100644 --- a/mod/externalpages/manifest.xml +++ b/mod/externalpages/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>Create simple web pages for about, contact, privacy, and terms.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/file/manifest.xml b/mod/file/manifest.xml index 26282a8e3..7d69f4280 100644 --- a/mod/file/manifest.xml +++ b/mod/file/manifest.xml @@ -8,6 +8,7 @@ <category>widget</category> <description>File browser plugin</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/garbagecollector/manifest.xml b/mod/garbagecollector/manifest.xml index 5aafebf38..ddf15656a 100644 --- a/mod/garbagecollector/manifest.xml +++ b/mod/garbagecollector/manifest.xml @@ -7,6 +7,7 @@ <category>admin</category> <description>Perform some database cleanup tasks</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/groups/manifest.xml b/mod/groups/manifest.xml index fd28360d0..574ba1985 100644 --- a/mod/groups/manifest.xml +++ b/mod/groups/manifest.xml @@ -8,6 +8,7 @@ <category>widget</category> <description>Provides group support for elgg</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/htmlawed/manifest.xml b/mod/htmlawed/manifest.xml index 6807e96a4..e4d8fa145 100644 --- a/mod/htmlawed/manifest.xml +++ b/mod/htmlawed/manifest.xml @@ -7,6 +7,7 @@ <category>security</category> <description>Provides security filtering. Running a site with this plugin disabled is extremely insecure. DO NOT DISABLE.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/invitefriends/manifest.xml b/mod/invitefriends/manifest.xml index b36238a05..220948c30 100644 --- a/mod/invitefriends/manifest.xml +++ b/mod/invitefriends/manifest.xml @@ -7,6 +7,7 @@ <category>social</category> <description>Invite friends via email invites.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/likes/manifest.xml b/mod/likes/manifest.xml index 62835fcf5..e0a9b10f2 100644 --- a/mod/likes/manifest.xml +++ b/mod/likes/manifest.xml @@ -7,6 +7,7 @@ <category>social</category> <description>Enables users to like content on the site.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/logbrowser/manifest.xml b/mod/logbrowser/manifest.xml index 4527e2cbb..17b08803c 100644 --- a/mod/logbrowser/manifest.xml +++ b/mod/logbrowser/manifest.xml @@ -7,6 +7,7 @@ <category>admin</category> <description>Browse the system event log</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/logrotate/manifest.xml b/mod/logrotate/manifest.xml index 1aa62e2e7..79b37dbbc 100644 --- a/mod/logrotate/manifest.xml +++ b/mod/logrotate/manifest.xml @@ -7,6 +7,7 @@ <category>admin</category> <description>Rotate the system log at specific intervals</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/members/manifest.xml b/mod/members/manifest.xml index 8b18c9f91..40a05892c 100644 --- a/mod/members/manifest.xml +++ b/mod/members/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>Lists the members of your site</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/messageboard/manifest.xml b/mod/messageboard/manifest.xml index 617813725..b4188ab31 100644 --- a/mod/messageboard/manifest.xml +++ b/mod/messageboard/manifest.xml @@ -7,6 +7,7 @@ <category>widget</category> <description>This plugin allows users to put a message board on their profile for other users to post comments.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/messages/manifest.xml b/mod/messages/manifest.xml index 73a58d9d4..83f7bba64 100644 --- a/mod/messages/manifest.xml +++ b/mod/messages/manifest.xml @@ -6,8 +6,9 @@ <category>bundled</category> <category>communication</category> <description>Elgg internal messages plugin. This plugin lets user send each other messages.</description> - <copyright>See COPYRIGHT.txt</copyright> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> + <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> <type>elgg_release</type> diff --git a/mod/notifications/manifest.xml b/mod/notifications/manifest.xml index 205476881..d961ce138 100644 --- a/mod/notifications/manifest.xml +++ b/mod/notifications/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>Elgg notifications plugin</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/oauth_api/manifest.xml b/mod/oauth_api/manifest.xml index 991be6a22..96b9c7280 100644 --- a/mod/oauth_api/manifest.xml +++ b/mod/oauth_api/manifest.xml @@ -7,6 +7,7 @@ <category>bundled</category> <category>api</category> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/pages/manifest.xml b/mod/pages/manifest.xml index 4cf999f45..a764171b4 100644 --- a/mod/pages/manifest.xml +++ b/mod/pages/manifest.xml @@ -8,6 +8,7 @@ <category>widget</category> <description>Collaborative editing tool. Enables users to create pages similar to a wiki without having to know wiki syntax.</description> <website>http://www.elgg.org</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/profile/manifest.xml b/mod/profile/manifest.xml index 86fbc7b7b..b7ad5185e 100644 --- a/mod/profile/manifest.xml +++ b/mod/profile/manifest.xml @@ -7,6 +7,7 @@ <category>bundled</category> <category>social</category> <website>http://elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License Version 2</license> <activate_on_install>true</activate_on_install> diff --git a/mod/reportedcontent/manifest.xml b/mod/reportedcontent/manifest.xml index e96620b01..d98ff383b 100644 --- a/mod/reportedcontent/manifest.xml +++ b/mod/reportedcontent/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>Adds the option for users to report content and for admins to check it out.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/search/manifest.xml b/mod/search/manifest.xml index 513d3a6b9..1bc974729 100644 --- a/mod/search/manifest.xml +++ b/mod/search/manifest.xml @@ -6,6 +6,7 @@ <category>bundled</category> <description>Allow search across entities of the site</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/tagcloud/manifest.xml b/mod/tagcloud/manifest.xml index c0f89f35e..fd91d92b8 100644 --- a/mod/tagcloud/manifest.xml +++ b/mod/tagcloud/manifest.xml @@ -7,6 +7,7 @@ <category>widget</category> <description>Widget-based tag clouds.</description> <website>http://cashcostello.com/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/thewire/manifest.xml b/mod/thewire/manifest.xml index 962ed12f1..950ecfbed 100644 --- a/mod/thewire/manifest.xml +++ b/mod/thewire/manifest.xml @@ -7,6 +7,7 @@ <category>content</category> <description>Microblogging for Elgg</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/tinymce/manifest.xml b/mod/tinymce/manifest.xml index 61bf0c22c..fb36c4141 100644 --- a/mod/tinymce/manifest.xml +++ b/mod/tinymce/manifest.xml @@ -7,6 +7,7 @@ <category>enhancement</category> <description>TinyMCE plugin.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/twitter/manifest.xml b/mod/twitter/manifest.xml index 18fa8c957..18031deec 100644 --- a/mod/twitter/manifest.xml +++ b/mod/twitter/manifest.xml @@ -7,6 +7,7 @@ <category>widget</category> <description>Elgg simple twitter widget</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/twitter_api/manifest.xml b/mod/twitter_api/manifest.xml index 86bba4b50..88d43aa5e 100644 --- a/mod/twitter_api/manifest.xml +++ b/mod/twitter_api/manifest.xml @@ -7,6 +7,7 @@ <category>api</category> <category>bundled</category> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/uservalidationbyemail/manifest.xml b/mod/uservalidationbyemail/manifest.xml index 800dd2641..6a15fd0cf 100644 --- a/mod/uservalidationbyemail/manifest.xml +++ b/mod/uservalidationbyemail/manifest.xml @@ -7,6 +7,7 @@ <category>security</category> <description>Simple user account validation via email.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> diff --git a/mod/zaudio/manifest.xml b/mod/zaudio/manifest.xml index 54f819658..a103052aa 100644 --- a/mod/zaudio/manifest.xml +++ b/mod/zaudio/manifest.xml @@ -8,6 +8,7 @@ <category>multimedia</category> <description>This simple plugin lets users play mp3's in the page.</description> <website>http://www.elgg.org/</website> + <donations>http://elgg.org/supporter.php</donations> <copyright>See COPYRIGHT.txt</copyright> <license>GNU General Public License version 2</license> <requires> 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> |