38 'priority' =>
'first',
85 'href' => $bottom_url,
92 $classes[] =
'elgg-state-undraggable';
101 'is_trusted' =>
true,
107 $options[
'class'] =
"elgg-button elgg-button-cancel";
111 $options[
'class'] =
'elgg-button elgg-state-warning';
117 $options[
'class'] =
"elgg-button elgg-button-submit";
122 $options[
'class'] =
"elgg-button elgg-button-disabled";
128 'plugin_guids[]' =>
$plugin->guid
142 $css_class = preg_replace(
'/[^a-z0-9-]/i',
'-', $category);
143 $classes[] =
"elgg-plugin-category-$css_class";
147 $categories_html .=
"<li class=\"elgg-plugin-category prm\"><a href=\"$url\">$friendly_category</a></li>";
156 $desc =
elgg_echo($screenshot[
'description']);
157 $alt = htmlentities($desc, ENT_QUOTES,
'UTF-8');
158 $screenshot_img =
elgg_view(
'output/img', array(
159 'src' =>
"admin_plugin_screenshot/{$plugin->getID()}/thumbnail/{$screenshot['path']}",
162 $screenshot_link =
elgg_view(
'output/url', array(
163 'href' =>
"admin_plugin_screenshot/{$plugin->getID()}/full/{$screenshot['path']}",
164 'text' => $screenshot_img,
165 'class' =>
'elgg-lightbox',
168 $screenshots_html .=
"<li class=\"elgg-plugin-screenshot prm ptm\">$screenshot_link</li>";
175 .
elgg_view(
'output/text', array(
'value' =>
$plugin->getManifest()->getAuthor()));
178 'href' =>
$plugin->getManifest()->getWebsite(),
179 'text' =>
$plugin->getManifest()->getWebsite(),
180 'is_trusted' =>
true,
184 'repository' =>
$plugin->getManifest()->getRepositoryURL(),
185 'bugtracker' =>
$plugin->getManifest()->getBugTrackerURL(),
186 'donate' =>
$plugin->getManifest()->getDonationsPageURL(),
195 'text' =>
elgg_echo(
"admin:plugins:label:$id"),
196 'is_trusted' =>
true,
211 $docs =
'<ul class="elgg-menu elgg-menu-hz">';
213 $url =
'admin_plugin_text_file/' .
$plugin->getID() .
"/$file";
217 'is_trusted' =>
true,
219 $docs .=
"<li>$link</li>";
227 <
div class=
"<?php echo implode(' ', $classes); ?>" id=
"<?php echo $css_id; ?>">
228 <
div class=
"elgg-image-block">
229 <
div class=
"elgg-image-alt">
231 <
ul class=
"elgg-menu elgg-menu-metadata">
235 <
div class=
"clearfloat float-alt mtm">
239 <
div class=
"elgg-body">
245 $settings_link =
"<a class='elgg-plugin-settings' href='$link'>[" .
elgg_echo(
'settings') .
"]</a>";
250 <div
class=
"elgg-head">
251 <
h3><?php
echo $plugin->getManifest()->getName() .
" $version $settings_link"; ?></
h3>
254 if (
$plugin->getManifest()->getApiVersion() < 1.8) {
255 $reqs =
$plugin->getManifest()->getRequires();
258 echo "<p class=\"elgg-state-error\">$message</p>";
265 echo "<p class=\"elgg-state-warning\">$message</p>";
268 echo "<p class=\"elgg-state-error\">$message</p>";
284 'href' =>
"#elgg-plugin-manifest-$css_id",
285 'text' =>
elgg_echo(
"admin:plugins:label:moreinfo"),
292 <div
class=
"elgg-plugin-more hidden" id=
"elgg-plugin-manifest-<?php echo $css_id; ?>">
303 <div><?php
echo elgg_echo(
'admin:plugins:label:categories') .
": <ul class=\"elgg-plugin-categories\">$categories_html</ul>"; ?></div>
310 <div><?php
echo elgg_echo(
'admin:plugins:label:location') .
": " . htmlspecialchars(
$plugin->getPath()) ?></div>
314 echo '<div>' .
elgg_echo(
'admin:plugins:label:contributors') .
':';
320 <div><?php
echo elgg_echo(
'admin:plugins:label:dependencies'); ?>:
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
if($screenshots) $description
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($categories) $screenshots_html
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
_elgg_get_max_plugin_priority()
Returns the highest priority of the plugins.
static getFriendlyCategory($category)
Returns a category's friendly name.
elgg_get_site_url($site_guid=0)
Get the URL for the current (or specified) site.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if($action) $action_button
elgg_get_plugins_path()
Get the plugin path for this installation.
if(!$collection_name) $id
if(file_exists($welcome)) $vars