diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-04 23:03:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-04 23:03:32 +0000 |
commit | 2062a91d9ca2f31ccf4cd1eaa338c5190bffe56d (patch) | |
tree | a6e2be0a8de0455d11b7091136095fa88a70b8a8 /views/default/admin/components | |
parent | 72efb16917eb7c8f4e86b4fdc01eb86e83d5568d (diff) | |
download | elgg-2062a91d9ca2f31ccf4cd1eaa338c5190bffe56d.tar.gz elgg-2062a91d9ca2f31ccf4cd1eaa338c5190bffe56d.tar.bz2 |
Added support for screenshots in the advanced plugin admin.
git-svn-id: http://code.elgg.org/elgg/trunk@8021 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/components')
-rw-r--r-- | views/default/admin/components/plugin.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/views/default/admin/components/plugin.php b/views/default/admin/components/plugin.php index 4c6a8b756..0185ba0ff 100644 --- a/views/default/admin/components/plugin.php +++ b/views/default/admin/components/plugin.php @@ -124,20 +124,15 @@ if ($categories) { // @todo We need to make a page handler to read these files in. // this is broken. -$screenshot_html = ''; +$screenshots_html = ''; $screenshots = $plugin->manifest->getScreenshots(); if ($screenshots) { $base_url = elgg_get_plugins_path() . $plugin->getID() . '/'; - $limit = 4; foreach ($screenshots as $screenshot) { - if ($limit <= 0) { - break; - } - - $screenshot_src = $plugin->getPath() . $screenshot['path']; - $screenshots .= "<li class=\"plugin-screenshot\"><a href=\"$screenshot_src\"><img src=\"$screenshot_src\"></a></li>"; + $screenshot_full = "{$vars['url']}pg/admin_plugin_screenshot/{$plugin->getID()}/full/{$screenshot['path']}"; + $screenshot_src = "{$vars['url']}pg/admin_plugin_screenshot/{$plugin->getID()}/thumbnail/{$screenshot['path']}"; - $limit--; + $screenshots_html .= "<li class=\"elgg-plugin-screenshot prm ptm\"><a href=\"$screenshot_full\"><img src=\"$screenshot_src\"></a></li>"; } } @@ -189,7 +184,7 @@ if (elgg_view_exists($settings_view)) { } ?> - <p><a class="manifest_details small link"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></p> + <div class="pts"><a class="manifest_details small link"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></div> <div class="manifest_file hidden"> @@ -201,9 +196,9 @@ if (elgg_view_exists($settings_view)) { <?php } - if ($screenshots) { + if ($screenshots_html) { ?> - <div><ul><?php echo $screenshots; ?></ul></div> + <div><ul><?php echo $screenshots_html; ?></ul></div> <?php } ?> |