%1$s installed, and %2$s activated', $plugins_count, $count_active ); ?>

$plugin ) { // default fields to read from the plugin header $fields = array( 'name' => 'Plugin Name', 'uri' => 'Plugin URI', 'desc' => 'Description', 'version' => 'Version', 'author' => 'Author', 'author_uri' => 'Author URI' ); // Loop through all default fields, get value if any and reset it foreach( $fields as $field=>$value ) { if( isset( $plugin[ $value ] ) ) { $data[ $field ] = $plugin[ $value ]; } else { $data[ $field ] = yourls__('(no info)'); } unset( $plugin[$value] ); } $plugindir = trim( dirname( $file ), '/' ); if( yourls_is_active_plugin( $file ) ) { $class = 'active'; $action_url = yourls_nonce_url( 'manage_plugins', yourls_add_query_arg( array('action' => 'deactivate', 'plugin' => $plugindir ), yourls_admin_url('plugins.php') ) ); $action_anchor = yourls__( 'Deactivate' ); } else { $class = 'inactive'; $action_url = yourls_nonce_url( 'manage_plugins', yourls_add_query_arg( array('action' => 'activate', 'plugin' => $plugindir ), yourls_admin_url('plugins.php') ) ); $action_anchor = yourls__( 'Activate' ); } // Other "Fields: Value" in the header? Get them too if( $plugin ) { foreach( $plugin as $extra_field=>$extra_value ) { $data['desc'] .= "
\n$extra_field: $extra_value"; unset( $plugin[$extra_value] ); } } $data['desc'] .= '
' . yourls_s( 'plugin file location: %s', $file) . ''; printf( "", $class, $data['uri'], $data['name'], $data['version'], $data['desc'], $data['author_uri'], $data['author'], $action_url, $action_anchor ); } ?>
%s%s%s%s%s

plugin.php.' ); ?>

Plugin list.' ); ?>