Note della versione / Piwigo 2.6.0

Mobile theme improved, New user manager, New mail system

2.6.0
Scarica Piwigo 2.6.0

Uscita il 17 Gennaio 2014

md5sum

La versione 2.6 introduce nuove funzionalità per gli utenti e in special modo per gli amministratori. Il tema mobile ha adesso importanti migliorie. La gestione utente è stata ridisegnata da zero. Il nuovo plugin "Admin Tools" vi permetterà di modificare l'album e le foto della galleria. Un nuovo sistema email presenta temi grafici puliti e un motore robusto. La versione 2.6 introduce nuove caratteristiche tecniche, tra cui la codifica più semplice per i creatori di plugin.

Miglioramenti tema mobile

Il tema mobile SmartPocket ottiene molte nuove caratteristiche: piena barra dei menu, pagina di ricerca, pagina dei tag, nuovo layout per le miniature e una pagina completa per ogni foto compresi tutti i commenti, le proprietà dettagliate e valutazioni.

Nuovo design gestione utenti

La gestione utente ha un nuovo design. Full javascript/AJAX per azioni veloci: aggiungi utente, modifica ciascun utente separatamente o in gruppo.

Admin Tools

Il nuovo plugin Admin Tools aggiunge una barra degli strumenti nella parte superiore di ogni pagina della tua galleria con una serie di funzioni utili: collegamenti rapidi alle sezioni di amministrazione specifiche, sotto forma di modifica rapida di foto e album, pulsanti "aggiungi al caddy" e "Imposta miniatura album", strumenti di sviluppo (identico al plugin MultiView).

Il modulo di Modifica rapida si apre sulla pagina della galleria (non in amministrazione) per rapide modifiche alle vostre foto e gli album. Consente inoltre ai non amministratori di modificare le proprie foto (caricate con il Community plugin).

Nuovi temi email

Le email inviate da Piwigo possono utilizzare il tema chiaro (come sopra) o il tema scuro. Il tema email non dipende più dal tema della galleria.

Geolocalizzazione visitatori

In base al loro indirizzo IP, trova la posizione del tuo visitatore alla pagina [Amministrazione > Strumenti > Storico > Ricerca] con una Google map opzionale.

Nuovo design gestione gruppi

Nuovo layout per la gestione gruppo, basato su Photo Batch Manager.

Nuove icone admin

Nuove icone nella barra menu di amministrazione e icone sui sub-menu. Molte schede di amministrazione e link ottengo anche le icone. Le icone vengono visualizzate in il Fontello system e le collezioni Font Awesome, Entypo, Iconic, Elusive and MFG Labs. Le icone sono compatibili con gli schermi di pixel ad alta densità quali Retina e moderni smartphone: qualunque sia il livello di zoom, le icone rimangono nitide e pulite.

Filtro tag

Nuova filter text box nella pagina amministrazione tags.

Foto ed album recenti

La sezione foto recenti non può più essere vuota. Piwigo trova foto nel periodo recente (cioè ultimi 7 giorni per impostazione predefinita) oppure Mostra le ultime foto aggiunte.

Numero dei tag e commenti

Il numero dei tag e dei commenti sono adesso mostrati nella barramenu.

Gestione commenti

Il nuovo Gestore Commento Utente consente di gestire tutti i commenti, tra i quali i commenti convalidati.

Ereditarietà permessi

Con $conf['inheritance_by_default'] = true; nella vostra configurazione locale (falso per impostazione predefinita), un sub-album ereditererà automaticamente le autorizzazioni del relativo album genitore. Se è un album privato "party" è concesso per l'utente "Marco" poi "Marco" otterrà automaticamente l'autorizzazione per il nuovo album "party/compleanni".

Migliorata modifica album

Aggiunto il link "modifica questo album" nella gestione dei sub-album.

Aggiunto il link "aggiungi foto" nella pagina modifica album, che va al modulo di caricamento web.

Configurazione tema predefinito

Temi Elegant e SmartPocket ottengono una pagina amministrazione.

In Elegant si può definire il comportamento dei pannelli scorrevoli.

In SmartPocket è possibile definire il comportamento durante la visione e per le presentazioni.

Supporto TIFF

Se si carica un file TIFF, Piwigo automaticamente lo memorizza in versione "originale" e crea un immagine rappresentativa in PNG. Passare a JPEG con $conf['tiff_representative_ext'] = 'jpg'; nella vostra configurazione locale.

56 lingue

Piwigo 2.6.0 aggiunge lingua inglese americano, che è leggermente diversa dall'inglese britannico. 45 lingue sono state aggiornate. Piwigo 2.6 supporta 56 lingue. La partecipazione è accolta favorevolmente sulla nostra piattaforma di traduzione, per nuove lingue, miglioramenti e nuove stringhe da tradurre.

Caratteristiche tecniche

Please note that more detailed documentation is available about Technical changes in Piwigo 2.6. Please read it to make your extensions compatible with Piwigo 2.6.

Smarty 3 (details)

Smarty, our templating system, has been updated to version 3. Usage remains the same but some cool features have been added, in particular no more need to use {literal} or {ldelim} tags when writing Javascript/CSS.
We also added the modifier translate_dec intended to replace $pwg-> l10n_dec.

Translation function (details)

The l10n function has been improved: one can provide additional parameters which will be used to perform a sprintf on the string; the same change applies to the translate template modifier.

WebServices (API)

The WebServices has been considerably enhanced in this version, the main changes are :

New methods (details)
New options (details)

Each parameter can be defined with a type which will be checked by the WS controller (no more need to do it in the method declaration). Available types are : WS_TYPE_BOOL, WS_TYPE_INT, WS_TYPE_FLOAT, WS_TYPE_POSITIVE, WS_TYPE_NOTNULL, WS_TYPE_ID.

The PwgServer::addMethod function can take a sixth parameter, an array of boolean options: hidden, admin_only, post_only.

Email system (details)

The email functions have also been rewritten for better compatibility with mail readers and more features for plugin developers.
We use the PHPMailer library for all technical operations and have implemented templates for nice and customizable displays.
Additionally the new system supports secure connections for SMTP (SSL/TLS).

GPS Metadata (details)

Piwigo 2.6 will always synchronize GPS Metadata (latitude and longitude) if the EXIF sync is activated. The data are stored in the images table, not used by the core but available for any plugin.

Fallback language

The translation system has been improved with fallback languages, it allow us to define a language as child of another (for instance Canadian French is a child of French). This brings better and faster translations for some languages.

Javascript libraries updated (details)

jQuery has been updated to 1.10.2, the major changes are listed on the jQuery website.

jQuery UI has been updated to 1.10.1, the main change is the renaming UI effects filenames.

TokenInput has been updated to 1.6.1, the parameter allowCreation was renamed into allowFreeTagging and the location of the stylesheet changed.

jGrowl has been update to 1.2.12, the location of the stylesheet changed.

We have added jQuery DataTables 1.9.4 and underscore 1.5.2, both located in themes/default/js/plugins folder.

Improvements for plugin creators

Better support of new public sections (details)

New simpler and cleaner way to add a new page in the public part of Piwigo: declare $page['is_external']=true; and assign your page content to the $CONTENT template variable. Template creators must display the variable on index.tpl.

New maintenance class (details)

In order to deal with naming conflicts we have introduced the PluginMaintain interface. It is used to define the maintenance functions of a plugin (in maintain.inc.php file) in a uniquely named class.
The same interface exists for themes : ThemeMaintain..

Rename trigger functions (details)

We decided to rename the meaningless trigger_event and trigger_action functions as trigger_change and trigger_notify. Piwigo 2.6 handles both versions but only the new ones will be kept for 2.7. No change for trigger handling with the add_event_handler function.

Templated CSS and JS files (details)

Now you can use Smarty functions in .css and .js files, just set template=true when using combine_script and combine_css.

Improve template methods to sort action buttons (details)

In 2.5 we added two methods to sort action buttons on index and photo page. As planned, the usage changed a bit for 2.6 : plugins must not declare their buttons with surrounding <span>, <div> or <li>, as this markup is now handled by the template.