diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-04-26 15:03:02 -0400 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-04-26 15:03:02 -0400 |
commit | c80ba5aa03264dd64c20ed8ae222e87f9371a44d (patch) | |
tree | 9355d87a9ab4570b9e54685ad9869cd4fedd392f /views/default/object/plugin/advanced.php | |
parent | 581c2d35ae053aed07a607b8bb844603c48b7c2f (diff) | |
parent | 632cf13234d04a3f6b7acf67866a82e0bebde55c (diff) | |
download | elgg-c80ba5aa03264dd64c20ed8ae222e87f9371a44d.tar.gz elgg-c80ba5aa03264dd64c20ed8ae222e87f9371a44d.tar.bz2 |
Merge remote branch 'upstream/master'
Diffstat (limited to 'views/default/object/plugin/advanced.php')
-rw-r--r-- | views/default/object/plugin/advanced.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/default/object/plugin/advanced.php b/views/default/object/plugin/advanced.php index 4b5a3ba48..a346d4ff1 100644 --- a/views/default/object/plugin/advanced.php +++ b/views/default/object/plugin/advanced.php @@ -150,6 +150,24 @@ $website = elgg_view('output/url', array( $copyright = elgg_view('output/text', array('value' => $plugin->manifest->getCopyright())); $license = elgg_view('output/text', array('value' => $plugin->manifest->getLicense())); +// show links to text files +$files = $plugin->getAvailableTextFiles(); + +$docs = ''; +if ($files) { + $docs = '<ul>'; + foreach ($files as $file => $path) { + $url = 'admin_plugin_text_file/' . $plugin->getID() . "/$file"; + $link = elgg_view('output/url', array( + 'text' => $file, + 'href' => $url + )); + $docs .= "<li>$link</li>"; + + } + $docs .= '</ul>'; +} + ?> <div class="elgg-state-draggable elgg-plugin <?php echo $active_class ?>" id="elgg-plugin-<?php echo $plugin->guid; ?>"> @@ -190,6 +208,7 @@ if (elgg_view_exists($settings_view)) { <div class="plugin_description"><?php echo $description; ?></div> <p class="plugin_author"><?php echo $author . ' - ' . $website; ?></p> + <?php echo $docs; ?> <div class="pts"> <?php |