Questo plugin consente di creare una pagina di WordPress dove visualizzare automaticamente un elenco di tutti i plugin attivi nel proprio sito. Per ogni plugin verranno mostrati solamente il nome (con il link alla pagina web del plugin), il numero di versione e l’autore (con il link alla sua home page). Dalla versione 1.2 c’è un’opzione per visualizzare anche la descrizione dei plugin. Potete vedere un esempio del risultato in questa pagina [rimossa].
ISTRUZIONI:
- Scaricare il file zip (la versione attuale è la 1.2 del 28 novembre 2006).
- Estrarre il file zelig-show-plugins.php nella cartella dei plugin della vostra installazione di WordPress (wp-content/plugins).
- Entrare nel pannello di amministrazione di WordPress, aprire la pagina dei Plugin e attivare il plugin stesso.
- Creare un nuovo template di pagina salvando con un nuovo nome il file “page.php” presente nel vostro template e modificarlo aggiungendo nel punto opportuno (solitamente prima della riga che inizia con <?php edit_post_link… ) il seguente codice HTML:
<?php zelig_show_plugins(); ?>
Probabilmente dovrete anche aggiungere all’inizio del nuovo template il codice che definisce il nome del template stesso (oppure modificarlo se già presente):
<?php
/*
Template Name: Plugins
*/
?>
- Creare una nuova pagina utilizzando questo template, inserendo un titolo ed eventualmente il testo che si desidera. Visualizzando questa pagina, verrà mostrato automaticamente l’elenco dei plugin.
- Eventualmente personalizzare il file “style.css” del proprio template per impostare lo stile di visualizzazione della tabella con l’elenco. Le classi utilizzate sono le seguenti:
.plugins-list (DIV che racchiude l’intera tabella)
.alternate-plug-row (classe assegnata alle righe dispari della tabella)
.plug-row (classe assegnata alle righe pari della tabella)
Il plugin offre la possibilità di visualizzare una linea di testo alla fine della tabella con il totale dei plugin attivi e di personalizzarne l’aspetto (o anche escluderla), ed è inoltre possibile scegliere se visualizzare o meno la descrizione dei plugin. Queste opzioni possono essere definite per mezzo di alcuni parametri della funzione zelig_show_plugins():
Parametro |
Valori |
Descrizione |
Default |
show_count |
0
1 |
Se impostato a zero, la linea con il totale non verrà visualizzata |
1 |
before |
testo |
Testo visualizzato nella riga prima della cifra con il totale dei plugin |
There are |
after |
testo |
Testo visualizzato nella riga dopo la cifra con il totale dei plugin |
active plugins in this blog! |
description |
0
1 |
Se impostato a 1 viene mostrata anche la descrizione dei plugin |
0 |
ESEMPI:
<?php zelig_show_plugins('show_count=0'); ?>
Esclude la visualizzazione della riga con il totale.
<?php zelig_show_plugins('before=Ci sono ben &after= plugin attivi in questo blog!'); ?>
Mostrerà la linea “Ci sono ben XX plugin attivi in questo blog!” alla fine della tabella.
<?php zelig_show_plugins('before=&after= plugin attivi in totale.'); ?>
Mostrerà la linea “XX plugin attivi in totale.” alla fine della tabella.
<?php zelig_show_plugins('description=1'); ?>
Mostrerà anche la descrizione dei plugin oltre all’autore.
NOTE:
Il codice restituito dalla funzione è valido XHTML Strict.
Plugin testato solamente con WordPress 2.0.4 e seguenti. Al momento non so dire se funzioni anche con versioni precedenti (ma ringrazio chi avesse la possibilità di testarlo e di farmelo sapere!)
AGGIORNAMENTI:
- Versione 1.2 (28 novembre 2006): aggiunta la possibilità di visualizzare anche la descrizione dei plugin.
- Versione 1.1 (30 agosto 2006): aggiunta la possibilità di visualizzare alla fine della tabella una riga con il totale dei plugin, personalizzabile tramite i parametri della funzione.
This plugin allows to create a WordPress page where to show a list of all the active plugins of your web site. For every plugin, only the following elements will be shown: name (with a link to the plugin page), version number and author (with a link to his home page). Starting from version 1.2 there’s an option to show plugins descriptions too. You can see an example of the result in this page [removed].
INSTRUCTIONS:
- Download the zip file (current version is 1.2 of november 28, 2006).
- Extract the zelig-show-plugins.php file into the plugins directory in your WordPress installation (wp-content/plugins).
- Log in to WordPress administration. Go to the Plugins page and Activate this plugin.
- Create a new page template saving with a different name the “page.php” file present in your template, then edit it adding in the right place (usually before the row starting with <?php edit_post_link… ) the following HTML code:
<?php zelig_show_plugins(); ?>
You also have to add at the top of this new template the code that defines it’s name (or change it, if already present):
- Create a new page using this template, adding a title and if necessary some text. Loading this page, the plugins list will be shown automatically.
- In case, you can also edit the “style.css” of your template to set up the visualization style of the table. The classes used are the following:
.plugins-list (DIV including the whole table)
.alternate-plug-row (class assigned to the odd rows of the table)
.plug-row (class assigned to the even rows of the table)
<?php
/*
Template Name: Plugins
*/
?>
This plugin can display a text row after the end of the table with the total count of active plugins. You can change the default text of this line or exclude it at all. Another option lets you show plugins descriptions too. You can set all these options using some parameters of the zelig_show_plugins() function:
Parameter |
Values |
Description |
Default |
show_count |
0
1 |
If set to 0, the line with the total count of plugins will be excluded |
1 |
before |
string |
Text displayed before the figure |
There are |
after |
string |
Text displayed after the figure |
active plugins in this blog! |
description |
0
1 |
If set to 1, it will show plugins descriptions too |
0 |
EXAMPLES:
<?php zelig_show_plugins('show_count=0'); ?>
Excludes displaying of the line with the total count of plugins.
<?php zelig_show_plugins('before=Ci sono ben &after= plugin attivi in questo blog!'); ?>
Displays the line “That’s amazing: XX active plugins!” after the table.
<?php zelig_show_plugins('before=&after= plugin attivi in totale.'); ?>
Displays the line “XX active plugins.” after the table.
<?php zelig_show_plugins('description=1'); ?>
Displays plugins descriptions too.
NOTES:
The output code is valid XHTML Strict.
Tested with WordPress 2.0.4 and newest only. At present I can’t say if it works with previous versions (but I will apreciate if someone could try it and let me know!).
CHANGE LOG:
- Version 1.2 (november 28, 2006): added an option to show plugins descriptions too.
- Version 1.1 (august 30, 2006): added a text line after the table with the total count of all active plugins. It’s possible to exclude it or customize the text using the function’s parameters.
Pingback: [BLOCKED BY STBV] | WordPress plugin: Zelig Show Plugins
Pingback: Mostrare ai lettori l'elenco dei plugin wordpress installati sul proprio blog | IMMENSO blog