getPriority(); $active = $plugin->isActive(); $can_activate = $plugin->canActivate(); $max_priority = _elgg_get_max_plugin_priority(); $actions_base = '/action/admin/plugins/'; $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); // build reordering links $links = ''; $classes = array('elgg-plugin'); if ($reordering) { $classes[] = 'elgg-state-draggable'; // top and up link only if not at top if ($priority > 1) { $top_url = elgg_http_add_url_query_elements($actions_base . 'set_priority', array( 'plugin_guid' => $plugin->guid, 'priority' => 'first', 'is_action' => true )); $links .= "
$message
"; } } if (!$can_activate) { if ($active) { $message = elgg_echo('admin:plugins:warning:unmet_dependencies_active'); echo "$message
"; } else { $message = elgg_echo('admin:plugins:warning:unmet_dependencies'); echo "$message
"; } } ?>