From d53c5e454a43d4b7e3cfb64f4b7d969c3819ca1c Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 1 Mar 2012 16:18:31 +0000 Subject: feature 2584: redesign on add photos screens [Administration > Photos > Add] tabs become: {Web Form, Applications, FTP + Synchronization} admin screen for pLoader is replaced by a more generic screen for applications thanks to multisize, FTP+sync method becomes simpler git-svn-id: http://piwigo.org/svn/trunk@13451 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/photos_add.php | 6 +- admin/photos_add_applications.php | 45 +++++++++ admin/photos_add_ploader.php | 45 --------- .../default/template/photos_add_applications.tpl | 105 +++++++++++++++++++ .../themes/default/template/photos_add_direct.tpl | 2 +- admin/themes/default/template/photos_add_ftp.tpl | 6 +- .../themes/default/template/photos_add_ploader.tpl | 88 ---------------- admin/themes/default/theme.css | 5 +- language/en_UK/admin.lang.php | 2 + language/en_UK/help/photos_add_ftp.html | 89 ++++------------ language/fr_FR/admin.lang.php | 2 + language/fr_FR/help/photos_add_ftp.html | 112 +++++---------------- 12 files changed, 213 insertions(+), 294 deletions(-) create mode 100644 admin/photos_add_applications.php delete mode 100644 admin/photos_add_ploader.php create mode 100644 admin/themes/default/template/photos_add_applications.tpl delete mode 100644 admin/themes/default/template/photos_add_ploader.tpl diff --git a/admin/photos_add.php b/admin/photos_add.php index d1962808a..d969cf099 100644 --- a/admin/photos_add.php +++ b/admin/photos_add.php @@ -53,11 +53,11 @@ $upload_form_config = get_upload_form_config(); $tabs = array( array( 'code' => 'direct', - 'label' => l10n('Upload Photos'), + 'label' => l10n('Web Form'), ), array( - 'code' => 'ploader', - 'label' => l10n('Piwigo Uploader'), + 'code' => 'applications', + 'label' => l10n('Applications'), ), ); diff --git a/admin/photos_add_applications.php b/admin/photos_add_applications.php new file mode 100644 index 000000000..bf0509ec5 --- /dev/null +++ b/admin/photos_add_applications.php @@ -0,0 +1,45 @@ +assign( + array( + 'URL_DOWNLOAD_WINDOWS' => $conf['ploader_download_windows'], + 'URL_DOWNLOAD_MAC' => $conf['ploader_download_mac'], + 'URL_DOWNLOAD_LINUX' => $conf['ploader_download_linux'], + ) + ); + + +// +-----------------------------------------------------------------------+ +// | sending html code | +// +-----------------------------------------------------------------------+ + +$template->assign_var_from_handle('ADMIN_CONTENT', 'photos_add'); +?> \ No newline at end of file diff --git a/admin/photos_add_ploader.php b/admin/photos_add_ploader.php deleted file mode 100644 index bf0509ec5..000000000 --- a/admin/photos_add_ploader.php +++ /dev/null @@ -1,45 +0,0 @@ -assign( - array( - 'URL_DOWNLOAD_WINDOWS' => $conf['ploader_download_windows'], - 'URL_DOWNLOAD_MAC' => $conf['ploader_download_mac'], - 'URL_DOWNLOAD_LINUX' => $conf['ploader_download_linux'], - ) - ); - - -// +-----------------------------------------------------------------------+ -// | sending html code | -// +-----------------------------------------------------------------------+ - -$template->assign_var_from_handle('ADMIN_CONTENT', 'photos_add'); -?> \ No newline at end of file diff --git a/admin/themes/default/template/photos_add_applications.tpl b/admin/themes/default/template/photos_add_applications.tpl new file mode 100644 index 000000000..b9bdcf81b --- /dev/null +++ b/admin/themes/default/template/photos_add_applications.tpl @@ -0,0 +1,105 @@ +{include file='include/colorbox.inc.tpl'} + +{footer_script}{literal} +jQuery().ready(function(){ + jQuery(".illustration a").colorbox({rel:'group1'}); +}); +{/literal}{/footer_script} + +{html_head}{literal} + +{/literal}{/html_head} + +
+

{'Upload Photos'|@translate} {$TABSHEET_TITLE}

+
+ +
+ pLoader + +
+

{'pLoader stands for Piwigo Uploader. From your computer, pLoader prepares your photos and transfer them to your Piwigo photo gallery.'|@translate}

+ +

Available versions for +Windows, +Mac, +Linux +

+ +
+ +
+ Piwigo Mobile + +
+

{'Piwigo Mobile application empowers you to connect to your Piwigo gallery from your iPhone, iPad or Android, create some albums and upload several photos at once.'|@translate}

+ +

+Available on Apple AppStore +and Android market +

+
+ +
+ Lightroom + +
+

Adobe Photoshop Lightroom is a photography software designed to manage large quantities of digital images and doing post production work. The Piwigo publish Plug-in allows you to export photos from Lightroom directly to your Piwigo photo gallery.

+ +

+Details and download on alloyphoto.com +

+
+ +
+ Shotwell + +
+

Shotwell is a digital photo organizer that runs on Linux. It is the default photo manager in Ubuntu and Fedora.

+ +

On your Linux, simply install Shotwell with your package manager and the activate Piwigo publishing option.

+
+ +
+ digiKam +
+

digiKam is an advanced digital photo management application for Linux, Windows, and Mac-OSX.

+ +

To export your photos from digiKam to Piwigo, simply install digiKam and the Kipi-plugins.

+
+ +
+ iPhoto + +
+

iPhoto is the default photo manager on MacOSX. The Piwigo export plugin let you create new albums and export your photos directly from iPhoto to your Piwigo photo gallery.

+ +

+Details and download +

+
+ +
+ Aperture + +
+

Aperture is a powerful tool to refine images and manage massive libraries on your Mac. It's pro performance with iPhoto simplicity. The Piwigo export plugin allows you to create albums and export photos.

+ +

+Details and download +

+
+ +
+ ReGalAndroid + +
+

ReGalAndroid (RemoteGallery client for Android) is an open source (GPL v3) Piwigo client for the Android platform. Features include gallery browsing, album creation and photo upload.

+ +

+Details and download on Android Market +

+
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 5d3c1fbd6..3ebfff1d4 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -218,7 +218,7 @@ var sizeLimit = Math.round({$upload_max_filesize} / 1024); /* in KBytes */ {/footer_script}
-

{'Upload Photos'|@translate}

+

{'Upload Photos'|@translate} {$TABSHEET_TITLE}

diff --git a/admin/themes/default/template/photos_add_ftp.tpl b/admin/themes/default/template/photos_add_ftp.tpl index 52b2cd4d4..f3473a448 100644 --- a/admin/themes/default/template/photos_add_ftp.tpl +++ b/admin/themes/default/template/photos_add_ftp.tpl @@ -1,9 +1,9 @@
-

{'FTP + Synchronization'|@translate}

+

{'Upload Photos'|@translate} {$TABSHEET_TITLE}

-{'Administration'|@translate} » {'Tools'|@translate} » {'Synchronize'|@translate} - \ No newline at end of file diff --git a/admin/themes/default/template/photos_add_ploader.tpl b/admin/themes/default/template/photos_add_ploader.tpl deleted file mode 100644 index 8047baeca..000000000 --- a/admin/themes/default/template/photos_add_ploader.tpl +++ /dev/null @@ -1,88 +0,0 @@ -{footer_script}{literal} -jQuery().ready(function(){ - jQuery("#pLoaderPage img").fadeTo("fast", 0.6); - - jQuery("#pLoaderPage img").hover( - function(){ - jQuery(this).fadeTo("fast", 1.0); // Opacity on hover - }, - function(){ - jQuery(this).fadeTo("fast", 0.6); // Opacity on mouseout - } - ); -}); -{/literal}{/footer_script} - -{html_head}{literal} - -{/literal}{/html_head} - -
-

{'Piwigo Uploader'|@translate}

-
- -
-

{'pLoader stands for Piwigo Uploader. From your computer, pLoader prepares your photos and transfer them to your Piwigo photo gallery.'|@translate}

- -
    -
  1. - {'Download,'|@translate} - - - - -
    - - windows -
    Windows -
    -
    - - - mac -
    Mac -
    -
    - - - linux -
    Linux -
    -
    -
    - -
  2. -
  3. {'Install on your computer,'|@translate}
  4. -
  5. {'Start pLoader and add your photos.'|@translate}
  6. -
-
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index 53f220fb6..c669d8e21 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -1078,4 +1078,7 @@ FORM#categoryOrdering .categoryLi:hover p.albumActions {visibility:visible;} .showCreateAlbum {text-align:left; margin:0 1em 1em 1em;line-height:22px;} #autoOrder p, #createAlbum p {text-align:left; margin:0 0 1em 0;} -#autoOrder p.actionButtons, #createAlbum p.actionButtons {margin-bottom:0;} \ No newline at end of file +#autoOrder p.actionButtons, #createAlbum p.actionButtons {margin-bottom:0;} + +#ftpPage p {text-align:left;margin:1em;} +#ftpPage fieldset p {margin:0;} \ No newline at end of file diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 586aaae85..b74698a68 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -852,4 +852,6 @@ $lang['Save manual order'] = 'Save manual order'; $lang['cancel manual order'] = 'cancel manual order'; $lang['Cancel'] = 'Cancel'; $lang['List'] = 'List'; +$lang['Web Form'] = 'Web Form'; +$lang['Applications'] = 'Applications'; ?> \ No newline at end of file diff --git a/language/en_UK/help/photos_add_ftp.html b/language/en_UK/help/photos_add_ftp.html index cba6ef9d6..3d39f1e63 100644 --- a/language/en_UK/help/photos_add_ftp.html +++ b/language/en_UK/help/photos_add_ftp.html @@ -8,12 +8,10 @@
  • With a FTP client, copy your directory in the "galleries" directory of your Piwigo installation.
  • -
  • Logon your gallery and go to Administration » Tools » Thumbnails to create missing thumbnails.
  • - -
  • Go to Administration and click on the big Synchronization button.
  • +
  • Logon your gallery and go to Administration and click on the big Synchronization button.
  • -Congratulations! You have successfully created the first album of your photo gallery. +

    Congratulations! You have successfully created the first album of your photo gallery.

    @@ -28,45 +26,28 @@ Congratulations! You have successfully created the first album of your photo gal using many features):

    -.
    -|-- admin
    -|-- doc
    -|-- galleries
    -|   |-- album-1
    -|   |   |-- album-1.1
    -|   |   |   |-- album-1.1.1
    -|   |   |   |   |-- album-1.1.1.1
    -|   |   |   |   |   |-- pwg_high
    -|   |   |   |   |   |   +-- wedding.jpg
    -|   |   |   |   |   |-- thumbnail
    -|   |   |   |   |   |   +-- TN-wedding.jpg
    -|   |   |   |   |   +-- wedding.jpg
    -|   |   |   |   +-- album-1.1.1.2
    -|   |   |   +-- album-1.1.2
    -|   |   |-- album-1.2
    -|   |   |   |-- pookie.jpg
    -|   |   |   +-- thumbnail
    -|   |   |       +-- TN-pookie.jpg
    -|   |   +-- album-1.3
    -|   +-- album-2
    -|       |-- piglet.gif
    -|       |-- pwg_representative
    -|       |   +-- video.jpg
    -|       |-- thumbnail
    -|       |   +-- TN-piglet.jpg
    -|       +-- video.avi
    -|-- include
    -|-- install
    -|-- language
    -|-- local
    -|-- plugins
    -|-- template-extension
    -|-- themes
    -+-- tool
    +galleries +|-- wedding +| |-- celebration +| | |-- arrival +| | | |-- paul-alone.jpg +| | | +-- sarah-alone.jpg +| | +-- departure +| | +-- paul-and-sarah.jpg +| +-- party +| |-- dancers001.jpg +| |-- dancers002.jpg +| +-- dancers003.jpg ++-- honeymoon + |-- hotel.png + |-- video-from-plane.avi + +-- pwg_representative + +-- video-from-plane.jpg + -
  • Except for those named "thumbnail", "pwg_high" or "pwg_representative" (see explanations below), each directory under "galleries" produces a album. There is no limit on deepness.
  • +
  • Except for "pwg_representative" (see explanations below), each directory under "galleries" produces a album. There is no limit on deepness.
  • Basically, an element is represented by a file. A file can be a Piwigo element if its extension is among file_ext @@ -75,41 +56,15 @@ Congratulations! You have successfully created the first album of your photo gal be a picture if its extension is among picture_ext configuration parameter possibilities.
  • -
  • Photo elements must have an associated thumbnail (see section below - about thumbnails)
  • - -
  • Photo elements can have a high quality file associated. As for - wedding.jpg in the example above. No prefix on the high quality picture.
  • -
  • No photo elements (video, sounds, file texts, whatever you want...) are represented by default by an icon corresponding to the filename extension. Optionally, you can associate a thumbnail and a representative file (see video.avi in the example above).
  • Warning: the name of directories and files must contain only letters, figures, "-", "_" or ".". No blank space, nor accentuated characters.
  • -
  • Once files, thumbnails and representatives are correctly placed in the +
  • Once photos are correctly placed in the directories, go to: Administration » Tools » Synchronize
  • - -
    - Thumbnails -
      - -
    • Each photo must have its thumbnail.
    • - -
    • Thumbnails are stored in the "thumbnail" sub-directory of the album - directory. The thumbnail has the same filename as the corresponding photo, with configuration parameter prefix_thumbnail as prefix (see include/config.inc.php).
    • - -
    • Thumbnails files have not necessary the same extension as the associated image (eg a ".jpg" image may have a ".GIF" extension).
    • - -
    • It is recommended to use an external module for thumbnails creation.
    • - -
    • The usage of the thumbnails creation tool integrated in Piwigo is not advisable, because the resulting quality might be disappointing and this will lie heavily on the server ressources (and that could be a serious problem on a shared server). - -
    • If you choose to use the webserver to generate thumbnails, you must allow write access on all albums directories.
    • - -
    -
    diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index f48bad8f3..8edea8062 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -853,4 +853,6 @@ $lang['Save manual order'] = 'Sauvegarder l\'ordre manuel'; $lang['cancel manual order'] = 'annuler l\'ordre manuel'; $lang['Cancel'] = 'Annuler'; $lang['List'] = 'Liste'; +$lang['Web Form'] = 'Formulaire web'; +$lang['Applications'] = 'Applications'; ?> \ No newline at end of file diff --git a/language/fr_FR/help/photos_add_ftp.html b/language/fr_FR/help/photos_add_ftp.html index b5aff7afe..7ab8e192d 100644 --- a/language/fr_FR/help/photos_add_ftp.html +++ b/language/fr_FR/help/photos_add_ftp.html @@ -4,13 +4,11 @@
    1. Créez un répertoire sur votre ordinateur.
    2. -
    3. Copiez des photos à l'intérieur de ce répertoire, puis redimensionnez-les pour un affichage sur le web. Attention : le nom des répertoires et des fichiers ne doit contenir que des lettres, des chiffres et les caractères "-", "_" ou ".". Pas d'espace ou de caractères accentués.
    4. +
    5. Copiez des photos à l'intérieur de ce répertoire. Attention : le nom des répertoires et des fichiers ne doit contenir que des lettres, des chiffres et les caractères "-", "_" ou ".". Pas d'espace ou de caractères accentués.
    6. Avec un client FTP, copiez le répertoire dans le répertoire "galleries" de votre installation de Piwigo.
    7. -
    8. Connectez-vous à votre galerie Piwigo et rendez-vous sur Administration » Outils » Miniatures pour créer les miniatures manquantes.
    9. - -
    10. Rendez-vous sur Administration et cliquez sur le gros bouton de synchronisation.
    11. +
    12. Connectez-vous à votre galerie Piwigo, rendez-vous sur Administration et cliquez sur le gros bouton de synchronisation.

    Bravo ! Vous avez créé avec succès le premier album de votre galerie.

    @@ -27,64 +25,40 @@

    Les répertoires représentant les albums se trouvent dans le répertoire "galleries". Ci-dessous l'arbre des répertoires d'une très petite galerie (mais utilisant de nombreuses fonctionnalités) :

    -.
    -|-- admin
    -|-- doc
    -|-- galleries
    -|   |-- album-1
    -|   |   |-- album-1.1
    -|   |   |   |-- album-1.1.1
    -|   |   |   |   |-- album-1.1.1.1
    -|   |   |   |   |   |-- pwg_high
    -|   |   |   |   |   |   +-- mariage.jpg
    -|   |   |   |   |   |-- thumbnail
    -|   |   |   |   |   |   +-- TN-mariage.jpg
    -|   |   |   |   |   +-- mariage.jpg
    -|   |   |   |   +-- album-1.1.1.2
    -|   |   |   +-- album-1.1.2
    -|   |   |-- album-1.2
    -|   |   |   |-- pookie.jpg
    -|   |   |   +-- thumbnail
    -|   |   |       +-- TN-pookie.jpg
    -|   |   +-- album-1.3
    -|   +-- album-2
    -|       |-- porcinet.gif
    -|       |-- pwg_representative
    -|       |   +-- video.jpg
    -|       |-- thumbnail
    -|       |   +-- TN-porcinet.jpg
    -|       +-- video.avi
    -|-- include
    -|-- install
    -|-- language
    -|-- local
    -|-- plugins
    -|-- template-extension
    -|-- themes
    -+-- tool
    +galleries +|-- mariage +| |-- ceremonie +| | |-- entree +| | | |-- arrivee-de-paul.jpg +| | | +-- arrivee-de-virginie.jpg +| | +-- sortie +| | |-- sortie-enfants-honneur.jpg +| | +-- sortie-de-paul-et-virginie.jpg +| +-- cocktail +| |-- discours001.jpg +| |-- discours002.jpg +| +-- discours003.jpg ++-- voyage-de-noces + |-- hotel.png + |-- video-decollage-avion.avi + +-- pwg_representative + +-- video-decollage-avion.jpg + -
  • A l'exception de ceux appelés "thumbnail", "pwg_high" ou "pwg_representative" (voir explications ci-dessous), chaque répertoire dans "galleries" génère un album. Le nombre de niveaux (profondeur) n'est pas limité.
  • +
  • A l'exception de celui appelé "pwg_representative", chaque répertoire dans "galleries" génère un album. Le nombre de niveaux (profondeur) n'est pas limité.
  • Fondamentalement, une photo est représentée par un fichier. Pour Piwigo, un fichier peut être une photo si son extension figure dans la liste du paramètre de configuration file_ext (voir fichier include/config.inc.php). Un fichier peut être une photo si son extension figure dans la liste du paramètre de configuration picture_ext.
  • -
  • Les éléments de type photo doivent avoir une miniature associée (voir la -section suivante à propos des miniatures).
  • - -
  • Les éléments de type photo peuvent avoir une photo en grand format -associé. Comme pour le fichier mariage.jpg -dans l'exemple ci-dessus. Aucun préfixe n'est nécessaire sur le nom du -fichier.
  • -
  • Les éléments autres que les photos (vidéos, sons, fichiers texte, tout ce que vous voulez...) sont représentés par défaut par une icône correspondant à -l'extension du nom du fichier. Optionnellement, une miniature et un -représentant peuvent être associés (voir le fichier video.avi dans l'exemple).
  • +l'extension du nom du fichier. Optionnellement, un +représentant peut être associé (voir le fichier video-decollage-avion.avi dans l'exemple).
  • Attention : le nom d'un répertoire ou d'un fichier ne doit être composé que de lettres, de chiffres, de "-", "_" ou ".". Pas d'espace @@ -95,44 +69,10 @@ sous-album à la fois. Néanmoins, il est fortement conseillé pour chaque album de choisir entre contenir des photos ou bien des sous-album.
  • -
  • Une fois que les fichiers, les miniatures et les représentants sont +
  • Une fois que les fichiers sont correctement placés dans les répertoires, se rendre sur l'écran Administration » Outils » Synchroniser.
  • - -
    - Miniatures - -
      - -
    • Comme mentionné précédemment, chaque élément de type photo doit être -associé à une miniature.
    • - -
    • Les miniatures sont stockées dans le sous-répertoire "thumbnail" de -chaque répertoire représentant un album. Une miniature est un fichier -de type photo (même extension du nom du fichier) dont le nom de fichier est -préfixé par le paramètre de configuration prefix_thumbnail -(voir include/config.inc.php).
    • - -
    • Les miniatures n'ont pas besoin d'avoir la même extension que leur -photo associée (une photo avec ".jpg" comme extension peut avoir une -miniature en ".GIF" par exemple).
    • - -
    • Il est conseillé d'utiliser un outil externe pour la création des -miniatures.
    • - -
    • Vous pouvez également utiliser l'outil de création de miniatures -intégré à Piwigo mais cela est déconseillé car la qualité risque -d'être décevante et cela utilise inutilement les ressources du serveur (ce -qui peut être un grave problème sur un serveur mutualisé).
    • - -
    • Si vous choisissez d'utiliser le serveur web pour générer les -miniatures, vous devez donner les droits en écriture sur les -répertoires.
    • - -
    - -
    -- cgit v1.2.3