Changeset 10988 for extensions/photoWidget
- Timestamp:
- May 22, 2011, 1:21:25 PM (13 years ago)
- Location:
- extensions/photoWidget
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/photoWidget/CHANGELOG
r9484 r10988 1 photoWidget 0.3.0 - 2011-05-22 2 ================================ 3 * Make plugin compatible with piwigo 2.2 4 * Add pl_PL, thanks to Ortolan 5 * Add ar_AR, thanks to bakir 6 1 7 photoWidget 0.2.6 - 2011-03-02 2 8 ================================ 3 * add sk_SK, thanks to dodo9 * Add sk_SK, thanks to dodo 4 10 5 11 photoWidget 0.2.5 - 2011-01-27 6 12 ================================ 7 * add no_NO (Norwegian) thanks to atlew13 * Add no_NO (Norwegian) thanks to atlew 8 14 9 15 photoWidget 0.2.4 - 2010-11-23 -
extensions/photoWidget/MANIFEST
r9484 r10988 1 photoWidget/CREDITS 1 photoWidget/js/colorpicker.js 2 photoWidget/include/photoWidgetContent.class.php 3 photoWidget/include/photoWidgetConfig.class.php 4 photoWidget/maintain.inc.php 2 5 photoWidget/MANIFEST 3 photoWidget/maintain.inc.php 4 photoWidget/rsync_exclude.txt 5 photoWidget/template/animation.tpl 6 photoWidget/template/liste.xml 7 photoWidget/template/admin.tpl 8 photoWidget/js/colorpicker.js 6 photoWidget/init.php 9 7 photoWidget/main.inc.php 10 photoWidget/default_values.inc.php 8 photoWidget/COPYING 9 photoWidget/language/es_ES/plugin.lang.php 10 photoWidget/language/es_ES/index.php 11 photoWidget/language/es_ES/description.txt 12 photoWidget/language/en_UK/plugin.lang.php 13 photoWidget/language/en_UK/index.php 14 photoWidget/language/en_UK/description.txt 15 photoWidget/language/de_DE/plugin.lang.php 16 photoWidget/language/de_DE/index.php 17 photoWidget/language/de_DE/description.txt 18 photoWidget/language/lv_LV/plugin.lang.php 19 photoWidget/language/lv_LV/index.php 20 photoWidget/language/lv_LV/description.txt 21 photoWidget/language/ru_RU/plugin.lang.php 22 photoWidget/language/ru_RU/index.php 23 photoWidget/language/ru_RU/description.txt 24 photoWidget/language/tr_TR/plugin.lang.php 25 photoWidget/language/tr_TR/index.php 26 photoWidget/language/tr_TR/description.txt 27 photoWidget/language/nl_NL/plugin.lang.php 28 photoWidget/language/nl_NL/index.php 29 photoWidget/language/nl_NL/description.txt 30 photoWidget/language/cs_CZ/plugin.lang.php 31 photoWidget/language/cs_CZ/index.php 32 photoWidget/language/cs_CZ/description.txt 33 photoWidget/language/no_NO/plugin.lang.php 34 photoWidget/language/no_NO/index.php 35 photoWidget/language/no_NO/description.txt 36 photoWidget/language/pl_PL/plugin.lang.php 37 photoWidget/language/pl_PL/index.php 38 photoWidget/language/pl_PL/description.txt 39 photoWidget/language/sk_SK/plugin.lang.php 40 photoWidget/language/sk_SK/index.php 41 photoWidget/language/sk_SK/description.txt 42 photoWidget/language/it_IT/plugin.lang.php 43 photoWidget/language/it_IT/index.php 44 photoWidget/language/it_IT/description.txt 45 photoWidget/language/hu_HU/plugin.lang.php 46 photoWidget/language/hu_HU/index.php 47 photoWidget/language/hu_HU/description.txt 48 photoWidget/language/ar_SA/plugin.lang.php 49 photoWidget/language/ar_SA/index.php 50 photoWidget/language/ar_SA/description.txt 51 photoWidget/language/fr_FR/plugin.lang.php 11 52 photoWidget/language/fr_FR/index.php 12 53 photoWidget/language/fr_FR/description.txt 13 photoWidget/language/fr_FR/plugin.lang.php 14 photoWidget/language/nl_NL/index.php 15 photoWidget/language/nl_NL/description.txt 16 photoWidget/language/nl_NL/plugin.lang.php 17 photoWidget/language/tr_TR/index.php 18 photoWidget/language/tr_TR/description.txt 19 photoWidget/language/tr_TR/plugin.lang.php 20 photoWidget/language/de_DE/index.php 21 photoWidget/language/de_DE/description.txt 22 photoWidget/language/de_DE/plugin.lang.php 23 photoWidget/language/no_NO/index.php 24 photoWidget/language/no_NO/description.txt 25 photoWidget/language/no_NO/plugin.lang.php 54 photoWidget/language/templates/plugin.lang.php 26 55 photoWidget/language/templates/index.php 27 photoWidget/language/templates/plugin.lang.php 28 photoWidget/language/en_UK/index.php 29 photoWidget/language/en_UK/description.txt 30 photoWidget/language/en_UK/plugin.lang.php 31 photoWidget/language/sk_SK/index.php 32 photoWidget/language/sk_SK/description.txt 33 photoWidget/language/sk_SK/plugin.lang.php 34 photoWidget/language/lv_LV/index.php 35 photoWidget/language/lv_LV/description.txt 36 photoWidget/language/lv_LV/plugin.lang.php 37 photoWidget/language/it_IT/index.php 38 photoWidget/language/it_IT/description.txt 39 photoWidget/language/it_IT/plugin.lang.php 40 photoWidget/language/es_ES/index.php 41 photoWidget/language/es_ES/description.txt 42 photoWidget/language/es_ES/plugin.lang.php 43 photoWidget/language/cs_CZ/index.php 44 photoWidget/language/cs_CZ/description.txt 45 photoWidget/language/cs_CZ/plugin.lang.php 46 photoWidget/language/ru_RU/index.php 47 photoWidget/language/ru_RU/description.txt 48 photoWidget/language/ru_RU/plugin.lang.php 49 photoWidget/language/hu_HU/index.php 50 photoWidget/language/hu_HU/description.txt 51 photoWidget/language/hu_HU/plugin.lang.php 52 photoWidget/CHANGELOG 53 photoWidget/modele 54 photoWidget/include/photoWidgetConfig.class.php 55 photoWidget/include/photoWidgetContent.class.php 56 photoWidget/css/admin.css 57 photoWidget/css/imgs/colorpicker_overlay.png 58 photoWidget/css/imgs/colorpicker_rgb_b.png 59 photoWidget/css/imgs/colorpicker_indic.gif 60 photoWidget/css/imgs/colorpicker_hsb_b.png 61 photoWidget/css/imgs/colorpicker_submit.png 62 photoWidget/css/imgs/colorpicker_hex.png 63 photoWidget/css/imgs/colorpicker_select.gif 64 photoWidget/css/imgs/colorpicker_rgb_r.png 65 photoWidget/css/imgs/colorpicker_hsb_s.png 66 photoWidget/css/imgs/colorpicker_rgb_g.png 67 photoWidget/css/imgs/colorpicker_hsb_h.png 68 photoWidget/css/imgs/colorpicker_background.png 69 photoWidget/css/colorpicker.css 70 photoWidget/public.php 56 71 photoWidget/swf/photowidget.swf 57 72 photoWidget/admin.php 58 photoWidget/Makefile 59 photoWidget/COPYING 60 photoWidget/css/admin.css 61 photoWidget/css/imgs/colorpicker_hex.png 62 photoWidget/css/imgs/colorpicker_hsb_b.png 63 photoWidget/css/imgs/colorpicker_rgb_g.png 64 photoWidget/css/imgs/colorpicker_overlay.png 65 photoWidget/css/imgs/colorpicker_rgb_b.png 66 photoWidget/css/imgs/colorpicker_submit.png 67 photoWidget/css/imgs/colorpicker_select.gif 68 photoWidget/css/imgs/colorpicker_hsb_h.png 69 photoWidget/css/imgs/colorpicker_indic.gif 70 photoWidget/css/imgs/colorpicker_rgb_r.png 71 photoWidget/css/imgs/colorpicker_hsb_s.png 72 photoWidget/css/imgs/colorpicker_background.png 73 photoWidget/css/colorpicker.css 74 photoWidget/init.php 75 photoWidget/public.php 73 photoWidget/CREDITS 74 photoWidget/CHANGELOG 75 photoWidget/default_values.inc.php 76 photoWidget/template/admin.tpl 77 photoWidget/template/liste.xml 78 photoWidget/template/animation.tpl -
extensions/photoWidget/admin.php
r6850 r10988 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 Nicolas Roudairehttp://www.nikrou.net |5 // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 32 32 if (isset($_POST['pw_all_categories'])) { 33 33 if ($_POST['pw_all_categories']==1) { 34 array_push($GLOBALS['page']['infos'], 35 l10n('You choose that mode for').' '.l10n('all categories')); 34 $page['infos'][] = l10n('You choose that mode for').' '.l10n('All categories'); 36 35 $me->pw_all_categories = 1; 37 36 $me->pw_categories = array(); … … 40 39 if (isset($_POST['pw_categories'])) { 41 40 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')); 41 $page['errors'][] = l10n('You must choose at least one category'); 44 42 $me->pw_categories = array(); 45 43 $save_config = true; 46 44 } 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'])));45 $page['infos'][] = l10n('You choose that mode for').' '. 46 l10n_dec('one category', 47 'severals categories', 48 count($_POST['pw_categories']) 49 ); 52 50 $me->pw_all_categories = 0; 53 51 $me->pw_categories = $_POST['pw_categories']; … … 55 53 } 56 54 } else { 57 array_push($GLOBALS['page']['errors'], 58 l10n('You must choose at least one category')); 55 $page['errors'][] = l10n('You must choose at least one category'); 59 56 } 60 57 } … … 63 60 if (!empty($_POST['pw_width']) && intval($_POST['pw_width'])!=$me->pw_width) { 64 61 $me->pw_width = intval($_POST['pw_width']); 65 array_push($GLOBALS['page']['infos'], l10n('Width has been updated'));62 $page['infos'][] = l10n('Width has been updated'); 66 63 $save_config = true; 67 64 } 68 65 if (!empty($_POST['pw_height']) && intval($_POST['pw_height'])!=$me->pw_height) { 69 66 $me->pw_height = intval($_POST['pw_height']); 70 array_push($GLOBALS['page']['infos'], l10n('Height has been updated'));67 $page['infos'][] = l10n('Height has been updated'); 71 68 $save_config = true; 72 69 } 73 70 if (!empty($_POST['pw_bgcolor']) && trim($_POST['pw_bgcolor'])!=$me->pw_bgcolor) { 74 71 $me->pw_bgcolor = $_POST['pw_bgcolor']; 75 array_push($GLOBALS['page']['infos'], l10n('Background color of animation has been updated'));72 $page['infos'][] = l10n('Background color of animation has been updated'); 76 73 $save_config = true; 77 74 } … … 88 85 $all_categories = simple_hash_from_query($query, 'id', 'name'); 89 86 90 $ GLOBALS['template']->set_filenames(array('plugin_admin_content' => PW_TEMPLATE . '/admin.tpl'));91 $ GLOBALS['template']->assign('PW_CAT_CHOICES', array(1 => l10n('Yes'), 0 => l10n('No')));92 $ GLOBALS['template']->assign('ALL_CATEGORIES', $all_categories);93 $ GLOBALS['template']->assign('PW_CATEGORIES', $me->pw_categories);94 $ GLOBALS['template']->assign('PW_ALL_CATEGORIES', $me->pw_all_categories);95 $ GLOBALS['template']->assign('PWG_PHOTO_WIDGET_PLUGIN_CSS', PW_CSS);96 $ GLOBALS['template']->assign('PWG_PHOTO_WIDGET_PLUGIN_JS', PW_JS);97 $ GLOBALS['template']->assign('PW_BGCOLOR', $me->pw_bgcolor);98 $ GLOBALS['template']->assign('PW_WIDTH', $me->pw_width);99 $ GLOBALS['template']->assign('PW_HEIGHT', $me->pw_height);100 $ GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');87 $template->set_filenames(array('plugin_admin_content' => PW_TEMPLATE . '/admin.tpl')); 88 $template->assign('PW_CAT_CHOICES', array(1 => l10n('Yes'), 0 => l10n('No'))); 89 $template->assign('ALL_CATEGORIES', $all_categories); 90 $template->assign('PW_CATEGORIES', $me->pw_categories); 91 $template->assign('PW_ALL_CATEGORIES', $me->pw_all_categories); 92 $template->assign('PWG_PHOTO_WIDGET_PLUGIN_CSS', PW_CSS); 93 $template->assign('PWG_PHOTO_WIDGET_PLUGIN_JS', PW_JS); 94 $template->assign('PW_BGCOLOR', $me->pw_bgcolor); 95 $template->assign('PW_WIDTH', $me->pw_width); 96 $template->assign('PW_HEIGHT', $me->pw_height); 97 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 101 98 ?> -
extensions/photoWidget/language/en_UK/plugin.lang.php
r6850 r10988 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 Nicolas Roudairehttp://www.nikrou.net |5 // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 20 20 // +-----------------------------------------------------------------------+ 21 21 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 $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'; 25 $lang['All categories'] = 'All categories'; 26 $lang['Applicable categorie(s)'] = 'Applicable categorie(s)'; 27 $lang['Animation size'] = 'Animation size'; 28 $lang['Animation background color'] = 'Animation background color'; 29 $lang['Color'] = 'Color'; 30 $lang['You choose that mode for'] = 'You choose that mode for'; 31 $lang['one category'] = 'one category'; 32 $lang['all categories'] = 'all categories'; 33 $lang['severals categories'] = 'severals categories'; 34 $lang['Width has been updated'] = 'Width has been updated'; 35 $lang['Height has been updated'] = 'Height has been updated'; 36 $lang['Background color of animation has been updated'] = 'Background color of animation has been updated'; 37 $lang['This widget requires Flash Player 9 or better'] = 'This widget requires Flash Player 9 or better'; 22 /* 23 * The purpose of that file is to provide a way to overwrite 24 * default translation. 25 * See language/templates/plugin.lang.php for available keys 26 */ 38 27 ?> -
extensions/photoWidget/language/fr_FR/plugin.lang.php
r6850 r10988 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 Nicolas Roudairehttp://www.nikrou.net |5 // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 20 20 // +-----------------------------------------------------------------------+ 21 21 22 // admin 23 $lang['All categories'] = 'Toutes les catégories'; 24 $lang['Animation background color'] = 'Couleur de fond de l\'animation'; 25 $lang['Animation size'] = 'Taille de l\'animation'; 26 $lang['Applicable categorie(s)'] = 'Choix de catégorie(s)'; 27 $lang['Background color of animation has been updated'] = 'La couleur de fond a été mise à jour'; 28 $lang['Color'] = 'Couleur'; 29 $lang['Height'] = 'Hauteur'; 30 $lang['Height has been updated'] = 'La hauteur a été mise à jour'; 31 $lang['Main configuration'] = 'Configuration générale'; 32 $lang['one category'] = 'une catégorie'; 33 $lang['severals categories'] = 'plusieurs catégories'; 22 34 $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.'; 35 $lang['Width'] = 'Largeur'; 36 $lang['Width has been updated'] = 'La largeur a été mise à jour'; 37 $lang['You choose that mode for'] = 'Vous avez choisi ce mode d\'affichage pour'; 23 38 $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';25 $lang['All categories'] = 'Toutes les catégories';26 $lang['Applicable categorie(s)'] = 'Choix de catégorie(s)';27 $lang['Animation size'] = 'Taille de l\'animation';28 $lang['Animation background color'] = 'Couleur de fond de l\'animation';29 $lang['Color'] = 'Couleur';30 $lang['You choose that mode for'] = 'Vous avez choisi ce mode d\'affichage pour';31 $lang['one category'] = 'une catégorie';32 $lang['all categories'] = 'toutes les catégories';33 39 $lang['severals categories'] = 'plusieurs catégories'; 34 $lang[' Width has been updated'] = 'La largeur a été mise à jour';35 $lang['Height has been updated'] = 'La hauteur a été mise à jour'; 36 $lang['Background color of animation has been updated'] = 'La couleur de fond a été mise à jour'; 40 $lang['You must choose at least one category'] = 'Vous devez choisir au moins une catégorie'; 41 42 // public 37 43 $lang['This widget requires Flash Player 9 or better'] = 'Ce mode d\'affichage nécessite flash 9 au minimum'; 38 44 ?> -
extensions/photoWidget/language/templates/plugin.lang.php
r6850 r10988 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 Nicolas Roudairehttp://www.nikrou.net |5 // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 20 20 // +-----------------------------------------------------------------------+ 21 21 22 // admin 23 $lang['All categories'] = ''; 24 $lang['Animation background color'] = ''; 25 $lang['Animation size'] = ''; 26 $lang['Applicable categorie(s)'] = ''; 27 $lang['Background color of animation has been updated'] = ''; 28 $lang['Color'] = ''; 29 $lang['Height'] = ''; 30 $lang['Height has been updated'] = ''; 31 $lang['Main configuration'] = ''; 32 $lang['No'] = ''; 33 $lang['one category'] = ''; 34 $lang['Photo Widget Plugin'] = ''; 35 $lang['severals categories'] = ''; 36 $lang['Submit'] = ''; 22 37 $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.'] = ''; 38 $lang['Width'] = ''; 39 $lang['Width has been updated'] = ''; 40 $lang['Yes'] = ''; 23 41 $lang['You can choose that mode for displaying one, severals or all categories'] = ''; 24 $lang['Main configuration'] = '';25 $lang['All categories'] = '';26 $lang['Applicable categorie(s)'] = '';27 $lang['Animation size'] = '';28 $lang['Animation background color'] = '';29 $lang['Color'] = '';30 42 $lang['You choose that mode for'] = ''; 31 $lang['one category'] = ''; 32 $lang['all categories'] = ''; 33 $lang['severals categories'] = ''; 34 $lang['Width has been updated'] = ''; 35 $lang['Height has been updated'] = ''; 36 $lang['Background color of animation has been updated'] = ''; 43 $lang['You must choose at least one category'] = ''; 44 45 // public 37 46 $lang['This widget requires Flash Player 9 or better'] = ''; 38 47 ?> -
extensions/photoWidget/main.inc.php
r9484 r10988 22 22 /* 23 23 Plugin Name: photoWidget 24 Version: 0. 2.624 Version: 0.3.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/maintain.inc.php
r6850 r10988 3 3 // | photoWidget - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 Nicolas Roudairehttp://www.nikrou.net |5 // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 36 36 $config_file = $GLOBALS['conf']['local_data_dir'].'/plugins/'; 37 37 $config_file .= basename(dirname(__FILE__)).'.dat'; 38 unlink($config_file); 38 if (file_exists($config_file)) { 39 unlink($config_file); 40 } 39 41 } 40 42 ?> -
extensions/photoWidget/template/admin.tpl
r5647 r10988 1 {html_head} 2 <link rel="stylesheet" type="text/css" href="{$PWG_PHOTO_WIDGET_PLUGIN_CSS}/admin.css"> 3 <link rel="stylesheet" type="text/css" href="{$PWG_PHOTO_WIDGET_PLUGIN_CSS}/colorpicker.css"> 4 {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 5 {known_script id="colorpicker" src="$PWG_PHOTO_WIDGET_PLUGIN_JS/colorpicker.js"} 1 {combine_css path="$PWG_PHOTO_WIDGET_PLUGIN_CSS/admin.css"} 2 {combine_css path="$PWG_PHOTO_WIDGET_PLUGIN_CSS/colorpicker.css"} 3 4 {combine_script id="colorpicker" require="jquery" path="$PWG_PHOTO_WIDGET_PLUGIN_JS/colorpicker.js"} 5 6 {footer_script require="colorpicker"} 6 7 {literal} 7 <script type="text/javascript">8 8 $(function() { 9 9 $('input[name=pw_all_categories]').change(function() { … … 35 35 }); 36 36 }); 37 </script>38 37 {/literal} 39 {/ html_head}38 {/footer_script} 40 39 41 40 <div class="titrePage"> … … 53 52 <form method="post" action="" class="general"> 54 53 <fieldset> 55 <legend>{'Main configuration'| translate}</legend>56 <p class="field radio"><span>{'All categories'| translate} ?</span>54 <legend>{'Main configuration'|@translate}</legend> 55 <p class="field radio"><span>{'All categories'|@translate} ?</span> 57 56 {html_radios name="pw_all_categories" options=$PW_CAT_CHOICES selected=$PW_ALL_CATEGORIES} 58 57 </p> 59 58 60 59 <p class="field pw-categories{if $PW_ALL_CATEGORIES==1} hide{/if}" id="pw-select-categories"> 61 <label>{'Applicable categorie(s)'| translate}</label>60 <label>{'Applicable categorie(s)'|@translate}</label> 62 61 <select name="pw_categories[]" multiple="multiple" size="{$pw_categories|@count|@max:3}"> 63 62 <option value="__none__"></option>
Note: See TracChangeset
for help on using the changeset viewer.