22 $can_deactivate =
$plugin->canDeactivate();
24 $can_deactivate =
false;
43 'priority' =>
'first',
90 'href' => $bottom_url,
98 $links =
'<ul class="elgg-menu elgg-plugin-list-reordering">' .
$links .
'</ul>';
101 $classes[] =
'elgg-state-undraggable';
109 'is_trusted' =>
true,
115 if ($can_deactivate) {
117 $options[
'class'] =
'elgg-button elgg-button-cancel elgg-plugin-state-change';
120 $classes[] =
'elgg-state-cannot-deactivate';
122 $options[
'class'] =
'elgg-button elgg-button-cancel elgg-state-disabled';
129 $options[
'class'] =
'elgg-button elgg-button-submit elgg-plugin-state-change';
132 $classes[] =
'elgg-state-inactive elgg-state-cannot-activate';
135 $options[
'class'] =
'elgg-button elgg-button-submit elgg-state-disabled';
142 'plugin_guids[]' =>
$plugin->guid
170 $css_class = preg_replace(
'/[^a-z0-9-]/i',
'-', $category);
171 $classes[] =
"elgg-plugin-category-$css_class";
192 <div <?= elgg_format_attributes($attrs) ?>>
193 <
div class=
"elgg-image-block">
194 <div
class=
"elgg-image">
199 <div
class=
"elgg-body">
200 <div
class=
"elgg-head">
204 "href" =>
"ajax/view/object/plugin/details?guid=" .
$plugin->getGUID(),
205 "text" =>
$plugin->getManifest()->getName(),
206 "class" =>
"elgg-lightbox elgg-plugin-title",
212 <
span class=
"elgg-plugin-list-description">
220 <div
class=
"elgg-body elgg-plugin-list-error">
223 'class' =>
$plugin->isActive() ?
'elgg-text-help' :
'elgg-text-help elgg-state-error',
if($action) $action_button
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
elgg_view_icon($name, $vars=array())
View one of the icons.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
if($categories) $description
if(elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $attrs
if(elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $url_options
elgg echo
Translates a string.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
_elgg_get_max_plugin_priority()
Returns the highest priority of the plugins.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
elgg_get_site_url($site_guid=0)
Get the URL for the current (or specified) site.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.