Changeset 5647
- Timestamp:
- Apr 4, 2010, 10:44:52 PM (14 years ago)
- Location:
- extensions/photoWidget
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/photoWidget/CHANGELOG
r5613 r5647 1 photoWidget 0.2.0 - 2010-04-04 2 ================================ 3 * Improve categories selections in admin 4 * Fix some mispelling language keys 5 1 6 photoWidget 0.1.1 - 2010-04-03 2 7 ================================ -
extensions/photoWidget/admin.php
r5611 r5647 30 30 31 31 if (!empty($_POST['submit'])) { 32 if (isset($_POST['pw_all_categories']) && $_POST['pw_all_categories']!=$me->pw_all_categories) { 33 $me->pw_all_categories = $_POST['pw_all_categories']; 34 array_push($GLOBALS['page']['infos'], 35 l10n('You choose that mode for').' '.l10n('all categories')); 36 $save_config = true; 37 } else { 38 if (!empty($_POST['pw_categories']) && $_POST['pw_categories']!=$me->pw_categories) { 39 $me->pw_categories = $_POST['pw_categories']; 32 if (isset($_POST['pw_all_categories'])) { 33 if ($_POST['pw_all_categories']==1) { 40 34 array_push($GLOBALS['page']['infos'], 41 l10n('You choose that mode for').' '. 42 l10n_dec('one category', 43 'severals categories', 44 count($_POST['pw_categories']))); 35 l10n('You choose that mode for').' '.l10n('all categories')); 36 $me->pw_all_categories = 1; 37 $me->pw_categories = array(); 45 38 $save_config = true; 39 } else { 40 if (isset($_POST['pw_categories'])) { 41 if (count($_POST['pw_categories'])==1 && ($_POST['pw_categories'][0]=='__none__')) { 42 array_push($GLOBALS['page']['errors'], 43 l10n('You must choose at least one category')); 44 $me->pw_categories = array(); 45 $save_config = true; 46 } else { 47 array_push($GLOBALS['page']['infos'], 48 l10n('You choose that mode for').' '. 49 l10n_dec('one category', 50 'severals categories', 51 count($_POST['pw_categories']))); 52 $me->pw_all_categories = 0; 53 $me->pw_categories = $_POST['pw_categories']; 54 $save_config = true; 55 } 56 } else { 57 array_push($GLOBALS['page']['errors'], 58 l10n('You must choose at least one category')); 59 } 46 60 } 47 61 } 48 if (!empty($_POST['pw_width']) && intval($_POST['pw_width'])!=$me->pw_width) { 62 63 if (!empty($_POST['pw_width']) && intval($_POST['pw_width'])!=$me->pw_width) { 49 64 $me->pw_width = intval($_POST['pw_width']); 50 65 array_push($GLOBALS['page']['infos'], l10n('Width has been updated')); -
extensions/photoWidget/css/admin.css
r5611 r5647 35 35 36 36 p.hide { 37 filter: alpha(opacity=70); 38 opacity: 0.7; 39 -moz-opacity: 0.7; 40 -khtml-opacity: 0.7; 41 37 display: none; 42 38 } -
extensions/photoWidget/default_values.inc.php
r5611 r5647 21 21 22 22 $default_values['pw_all_categories'] = 0; 23 $default_values['pw_categories'] = array(); 23 24 $default_values['pw_bgcolor'] = '000000'; 24 25 $default_values['pw_width'] = 600; -
extensions/photoWidget/include/photoWidgetContent.class.php
r5611 r5647 22 22 class photoWidgetContent 23 23 { 24 private $query_string = null ;24 private $query_string = null, $applicable = false; 25 25 26 26 public function __construct($config) { -
extensions/photoWidget/language/en_UK/index.php
r5625 r5647 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | pwgPhotoWidget - a plugin for Piwigo | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2010 Nicolas Roudaire http://www.nikrou.net | 11 6 // +-----------------------------------------------------------------------+ 12 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/photoWidget/language/en_UK/plugin.lang.php
r5613 r5647 22 22 $lang['That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'] = 'That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'; 23 23 $lang['You can choose that mode for displaying one, severals or all categories'] = 'You can choose that mode for displaying one, severals or all categories'; 24 $lang['Main configuration'] = 'Main configuration'; 24 25 $lang['All categories'] = 'All categories'; 26 $lang['Applicable categorie(s)'] = 'Applicable categorie(s)'; 25 27 $lang['Animation size'] = 'Animation size'; 26 28 $lang['Animation background color'] = 'Animation background color'; -
extensions/photoWidget/language/es_ES/index.php
r5624 r5647 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | pwgPhotoWidget - a plugin for Piwigo | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2010 Nicolas Roudaire http://www.nikrou.net | 11 6 // +-----------------------------------------------------------------------+ 12 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/photoWidget/language/es_ES/plugin.lang.php
r5625 r5647 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 ddtddt | 5 // | Copyright(C) 2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2010 ddtddt | 6 7 // +-----------------------------------------------------------------------+ 7 8 // | This program is free software; you can redistribute it and/or modify | … … 21 22 22 23 $lang['That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'] = 'Este plugin fija las imagettas bajo la forma de una animación flash 3D.'; 23 $lang[' Vouscan choose that mode for displaying one, severals or all categories'] = 'Usted puede elegir este modo de fijación como la una, varios o todas las categorías';24 $lang['You can choose that mode for displaying one, severals or all categories'] = 'Usted puede elegir este modo de fijación como la una, varios o todas las categorías'; 24 25 $lang['All categories'] = 'Todas las categorías'; 25 26 $lang['Animation size'] = 'Talla de la animación'; -
extensions/photoWidget/language/fr_FR/index.php
r5625 r5647 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | pwgPhotoWidget - a plugin for Piwigo | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id$ 8 // | last update : $Date$ 9 // | last modifier : $Author$ 10 // | revision : $Revision$ 5 // | Copyright(C) 2010 Nicolas Roudaire http://www.nikrou.net | 11 6 // +-----------------------------------------------------------------------+ 12 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/photoWidget/language/fr_FR/plugin.lang.php
r5611 r5647 21 21 22 22 $lang['That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'] = 'Ce plugin affiche les imagettes sous la forme d\'une animation flash en 3D.'; 23 $lang['Vous can choose that mode for displaying one, severals or all categories'] = 'Vous pouvez choisir ce mode d\'affichage pour une, plusieurs ou toutes les catégories'; 23 $lang['You can choose that mode for displaying one, severals or all categories'] = 'Vous pouvez choisir ce mode d\'affichage pour une, plusieurs ou toutes les catégories'; 24 $lang['Main configuration'] = 'Configuration générale'; 24 25 $lang['All categories'] = 'Toutes les catégories'; 26 $lang['Applicable categorie(s)'] = 'Choix de catégorie(s)'; 25 27 $lang['Animation size'] = 'Taille de l\'animation'; 26 28 $lang['Animation background color'] = 'Couleur de fond de l\'animation'; -
extensions/photoWidget/language/templates/plugin.lang.php
r5611 r5647 21 21 22 22 $lang['That plugin display pictures using a flash movie that rotates them in 3D. It works like regulars categories but in a more amazing and exciting way.'] = ''; 23 $lang['Vous can choose that mode for displaying one, severals or all categories'] = ''; 23 $lang['You can choose that mode for displaying one, severals or all categories'] = ''; 24 $lang['Main configuration'] = ''; 24 25 $lang['All categories'] = ''; 26 $lang['Applicable categorie(s)'] = ''; 25 27 $lang['Animation size'] = ''; 26 28 $lang['Animation background color'] = ''; -
extensions/photoWidget/main.inc.php
r5613 r5647 22 22 /* 23 23 Plugin Name: photoWidget 24 Version: 0. 1.124 Version: 0.2.0 25 25 Description: add an amazing 3D animation for pictures 26 26 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=370 -
extensions/photoWidget/template/admin.tpl
r5613 r5647 7 7 <script type="text/javascript"> 8 8 $(function() { 9 $('input[name=pw_all_categories]').change(function() { 10 if ($(this).attr('value')==0) { 11 $('#pw-select-categories').removeClass('hide'); 12 } else { 13 $('#pw-select-categories').addClass('hide'); 14 } 15 }); 16 9 17 $('input.pwg-picker') 10 18 .each(function() { … … 47 55 <legend>{'Main configuration'|translate}</legend> 48 56 <p class="field radio"><span>{'All categories'|translate} ?</span> 49 {html_radios name= 'pw_all_categoriesoptions=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES}57 {html_radios name="pw_all_categories" options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES} 50 58 </p> 51 59 52 <p class="field pw-categories ">60 <p class="field pw-categories{if $PW_ALL_CATEGORIES==1} hide{/if}" id="pw-select-categories"> 53 61 <label>{'Applicable categorie(s)'|translate}</label> 54 62 <select name="pw_categories[]" multiple="multiple" size="{$pw_categories|@count|@max:3}"> 55 <option value=" "></option>63 <option value="__none__"></option> 56 64 {html_options options=$ALL_CATEGORIES selected=$PW_CATEGORIES} 57 65 </select>
Note: See TracChangeset
for help on using the changeset viewer.