';
_e("Couldn't open plugins directory or there are no plugins available."); // TODO: make more helpful
echo '';
} else {
?>
|
|
|
> |
$plugin_data) {
$style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
$toggle = "".__('Deactivate')."";
$plugin_data['Title'] = "{$plugin_data['Title']}";
$style .= $style == 'alternate' ? ' active' : 'active';
} else {
$toggle = "".__('Activate')."";
}
$plugin_data['Description'] = wp_kses($plugin_data['Description'], array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()) ); ;
if ( $style != '' )
$style = 'class="' . $style . '"';
if ( is_writable(ABSPATH . 'wp-content/plugins/' . $plugin_file) )
$edit = "".__('Edit')."";
else
$edit = '';
echo "
{$plugin_data['Title']} |
{$plugin_data['Version']} |
{$plugin_data['Description']} ".sprintf(__('By %s'), $plugin_data['Author']).". |
$toggle | ";
if ( current_user_can('edit_plugins') )
echo "
$edit | ";
echo"
";
}
?>
%s directory and it will be automatically deactivated.', PLUGINDIR)); ?>
WordPress plugin directory.'); ?>
%s directory. Once a plugin is uploaded, you may activate it here.', PLUGINDIR)); ?>