diff options
59 files changed, 1148 insertions, 4331 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 328a36ab7..2a7214974 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1576,7 +1576,7 @@ DELETE */ function do_maintenance_all_tables() { - global $prefixeTable; + global $prefixeTable, $page; $all_tables = array(); @@ -1590,7 +1590,7 @@ function do_maintenance_all_tables() // Repair all tables $query = 'REPAIR TABLE '.implode(', ', $all_tables).';'; - pwg_query($query); + $mysql_rc = pwg_query($query); // Re-Order all tables foreach ($all_tables as $table_name) @@ -1610,14 +1610,27 @@ function do_maintenance_all_tables() if (count($all_primary_key) != 0) { $query = 'ALTER TABLE '.$table_name.' ORDER BY '.implode(', ', $all_primary_key).';'; - pwg_query($query); + $mysql_rc = $mysql_rc && pwg_query($query); } } // Optimize all tables $query = 'OPTIMIZE TABLE '.implode(', ', $all_tables).';'; - pwg_query($query); - + $mysql_rc = $mysql_rc && pwg_query($query); + if ($mysql_rc) + { + array_push( + $page['infos'], + l10n('Optimization completed') + ); + } + else + { + array_push( + $page['errors'], + l10n('Optimizations errors') + ); + } } /** diff --git a/admin/template/yoga/theme/admin/theme.css b/admin/template/yoga/theme/admin/theme.css index 3f05818f8..e4eb6a6d8 100644 --- a/admin/template/yoga/theme/admin/theme.css +++ b/admin/template/yoga/theme/admin/theme.css @@ -3,7 +3,7 @@ body, h3, dt, h2, .throw, .content, input.rateButtonSelected /* <= why IE doesn't inherit this ? */ { color:#ccc; } input.text, input.button, input.submit, input.reset, input.file, select, textarea { -color:#444; } +color:#111; } input.rateButton, legend, #theAdminPage h3 { color: #777; } #theAdminPage h2 { color: #333; } @@ -71,11 +71,12 @@ right:0; text-align:right; top:0; width:770px; } .HelpActions a { border:0; margin:4px 14px 0 0; position:absolute; right:0; } .HelpActions li {list-style-image:none; list-style-position:outside; list-style-type:none; text-align:center; text-indent:0pt; } -fieldset#uploadConf input { margin-left:5%; width:160px; } +fieldset#uploadConf input { margin:0 5px 0 110px; width:160px; } table.table2 th { padding:3px 30px; } table.table2 tr.throw { text-align: center; } table.table2 { margin:0pt auto; } .sort { display:block; padding:8px 5px 0px 1px; } + /* tabsheets are often used in admin pages => No specific css files */ .tabsheet { background-color:transparent; border:0; display:table; diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 129623864..d4f7423b2 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Replacers (customized templates)'; $lang['Original templates'] = 'Original templates'; $lang['Optional URL keyword'] = 'Optional URL keyword'; $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +$lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +$lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?>
\ No newline at end of file diff --git a/language/es_ES/admin.lang.php b/language/es_ES/admin.lang.php index 5f5655f20..accd13027 100644 --- a/language/es_ES/admin.lang.php +++ b/language/es_ES/admin.lang.php @@ -663,4 +663,6 @@ $lang['You are running the latest version of Piwigo.'] = 'Usted utiliza la últi /* TODO */ $lang['Original templates'] = 'Original templates'; /* TODO */ $lang['Optional URL keyword'] = 'Optional URL keyword'; /* TODO */ $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?>
\ No newline at end of file diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 60981ae2e..342d15586 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Remplaçants (templates modifiés)'; $lang['Original templates'] = 'Templates d\'origine'; $lang['Optional URL keyword'] = 'Paramètre facultatif de l\'URL'; $lang['Templates recorded.'] = 'La configuration des templates a été enregistrée.'; +$lang['Optimizations completed'] = 'Toutes les optimisations ont été réalisées avec succès.'; +$lang['Optimizations errors'] = 'Certaines optimisations se sont terminées avec des erreurs.'; ?>
\ No newline at end of file diff --git a/language/it_IT/admin.lang.php b/language/it_IT/admin.lang.php index 632e04fec..e36bfcb0f 100644 --- a/language/it_IT/admin.lang.php +++ b/language/it_IT/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Sostituzione (templates personalizzati)'; $lang['Original templates'] = 'Templates d\'origine';
$lang['Optional URL keyword'] = 'Parametro facultativo del\'URL';
$lang['Templates recorded.'] = 'La configurazione dei templates è stata registrata.';
+/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.';
+/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.';
?>
\ No newline at end of file diff --git a/language/nl_NL/admin.lang.php b/language/nl_NL/admin.lang.php index ef134648b..3b4fcdd2f 100644 --- a/language/nl_NL/admin.lang.php +++ b/language/nl_NL/admin.lang.php @@ -663,4 +663,6 @@ $lang['You are running the latest version of Piwigo.'] = 'Je hebt de laatste ver /* TODO */ $lang['Original templates'] = 'Original templates'; /* TODO */ $lang['Optional URL keyword'] = 'Optional URL keyword'; /* TODO */ $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?>
\ No newline at end of file diff --git a/plugins/admin_advices/admin_advices.php b/plugins/admin_advices/admin_advices.php new file mode 100644 index 000000000..ee2a3e797 --- /dev/null +++ b/plugins/admin_advices/admin_advices.php @@ -0,0 +1,194 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 Piwigo team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' ); + +// Add a XHTML tag in HEAD section +function set_admin_advice_add_css() +{ + global $template, $page; + if ( isset($page['body_id']) and $page['body_id']=='theAdminPage' + and $page['page'] == 'intro' + ) + {// This Plugin works only on the Admin page + $template->append( + 'head_elements', + '<link rel="stylesheet" type="text/css" ' + . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">' + ); + add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); + } +} + +// Build an advice on the Admin Intro page +function set_admin_advice() +{ + global $page, $user, $template, $conf, $prefixeTable, $lang; + $my_path = dirname(__FILE__).'/'; + +// Include language advices + foreach ($conf as $key => $value) + { + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } + } + $adv = array(); + ini_set('error_reporting', E_ALL); + ini_set('display_errors', true); + + include_once( $my_path."adv_set.php" ); + + $cases = range(0,count($lang['Adv_case'])-1); + srand ((double) microtime() * 10000000); + shuffle($cases); + + + $cond = false; + foreach ($cases as $id) + { + if (!isset($adv['c'][$id])) $adv['c'][$id] = true; + if (!isset($adv['n'][$id])) $adv['c'][$id] = false; + if (!isset($lang['Adv_case'][$id])) $adv['c'][$id] = false; + $cond = $adv['c'][$id]; + if ($cond) break; + } + $confk = $adv['n'][$id]; + if (substr($confk,0,2) == '**') $confk = substr($confk,2); + else $confk = '$conf[' . "'$confk']"; + $advice_text = (isset($adv['v'][$id])) ? $adv['v'][$id] : ''; + $more = $lang['Adv_case'][$id]; + + $template->set_filenames(array( + 'admin_advice' => $my_path.'admin_advices.tpl') + ); + +// Mysql status + $result = pwg_query('SHOW TABLE STATUS ;'); + $pwgspacef = $spacef = $pwgsize = $size = 0; + $len = strlen($prefixeTable); + $check = array(); + while ($row = mysql_fetch_array($result)) + { + $size += ($row['Data_length'] + $row['Index_length']); + $spacef += $row['Data_free']; + if ( substr( $row['Name'], 0, $len ) == $prefixeTable ) { + $pwgsize += ($row['Data_length'] + $row['Index_length']); + $pwgspacef += $row['Data_free']; + $check[] = (string) $row['Check_time']; + } + } + $size .= ' bytes'; + $pwgsize .= ' bytes'; + $spacef .= ' bytes'; + $pwgspacef .= ' bytes'; + if ($size > 1024) $size = round($size / 1024, 1) . ' Kb'; + if ($size > 1024) $size = round($size / 1024, 1) . ' Mb'; + if ($pwgsize > 1024) $pwgsize = round($pwgsize / 1024, 1) . ' Kb'; + if ($pwgsize > 1024) $pwgsize = round($pwgsize / 1024, 1) . ' Mb'; + if ($spacef > 1024) $spacef = round($spacef / 1024, 1) . ' Kb'; + if ($spacef > 1024) $spacef = round($spacef / 1024, 1) . ' Mb'; + if ($pwgspacef > 1024) $pwgspacef = round($pwgspacef / 1024, 1) . ' Kb'; + if ($pwgspacef > 1024) $pwgspacef = round($pwgspacef / 1024, 1) . ' Mb'; + $check = array_flip(array_flip($check)); + rsort($check); + $end = end($check); + $prev = prev($check); + $first = $check[0]; + $checkon = ''; + if (empty($end)) $end = $prev; + if ($end == $first) $checkon .= 'Last table check on: %s'; + else $checkon .= 'Most recent table check on: %s - oldest: %s'; + $checkon = sprintf($checkon, $first, $end); + $template->assign( + array( + 'prefixTable' => $prefixeTable, + 'pwgsize' => $pwgsize, + 'size' => $size, + 'checked_tables' => $checkon, + 'pwgspacef' => $pwgspacef, + 'spacef' => $spacef, + 'U_maintenance' => get_root_url() + . 'admin.php?page=maintenance&action=database', + ) + ); + +// If there is an advice + if ( $cond ) + { + +// Random Thumbnail + $query = ' +SELECT * +FROM '.IMAGES_TABLE.' +ORDER BY RAND(NOW()) +LIMIT 0, 1 +;'; + $result = pwg_query($query); + $row = mysql_fetch_assoc($result); + if ( is_array($row) ) + { + $url_modify = get_root_url().'admin.php?page=picture_modify' + .'&image_id='.$row['id']; + $query = ' +SELECT * FROM '.IMAGE_TAG_TABLE.' +WHERE image_id = ' . $row['id'] .' +;'; + $tag_count = mysql_num_rows(mysql_query($query)); + $template->assign('thumbnail', + array( + 'IMAGE' => get_thumbnail_url($row), + 'IMAGE_ALT' => $row['file'], + 'IMAGE_TITLE' => $row['name'], + 'METADATA' => (empty($row['date_metadata_update'])) ? + 'un' : '', + 'NAME' => (empty($row['name'])) ? + 'un' : '', + 'COMMENT' => (empty($row['comment'])) ? + 'un' : '', + 'AUTHOR' => (empty($row['author'])) ? + 'un' : '', + 'CREATE_DATE' => (empty($row['date_creation'])) ? + 'un' : '', + 'TAGS' => ($tag_count == 0) ? + 'un' : '', + 'NUM_TAGS' => $tag_count, + 'U_MODIFY' => $url_modify, + ) + ); + } + //$advice_text = array_shift($adv); + $template->assign( + array( + 'ADVICE_ABOUT' => $confk, + 'ADVICE_TEXT' => $advice_text, + ) + ); + $template->assign('More', $more ); + $template->pparse('admin_advice'); + } +} +?> diff --git a/plugins/admin_advices/admin_advices.tpl b/plugins/admin_advices/admin_advices.tpl index 85c385286..56ca9a85e 100644 --- a/plugins/admin_advices/admin_advices.tpl +++ b/plugins/admin_advices/admin_advices.tpl @@ -1,39 +1,63 @@ -{if isset($ADVICE_ABOUT)} <div class="content"> + <h3>{'An_advice_about'|@translate} {$ADVICE_ABOUT}</h3> - <h4>{$ADVICE_TEXT}</h4> - <table summary="Admin advices summary"> - <tr><td style="text-align: left; width: 50%;"> + <h4>{$ADVICE_TEXT}</h4> + <table summary="Admin advices summary"> + {if isset($More)} + <tr> + <td style="text-align: left; width: 50%;"> {foreach from=$More item=advice} {$advice}<BR /> {/foreach} <br /> - </td><td style="text-align: right; width: 20%;"> + </td> + <td style="text-align: right; width: 20%;"> {if isset($thumbnail.IMAGE)} - <a href="{$thumbnail.U_MODIFY}" title="{'link_info_image'|@translate}"> - <img class="thumbnail" src="{$thumbnail.IMAGE}" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"></a> - </td><td style="text-align: left;"> - <img src="{$themeconf.icon_dir}/{$thumbnail.NAME}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Name'|@translate}<br /> - <img src="{$themeconf.icon_dir}/{$thumbnail.COMMENT}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Description'|@translate}<br /> - <img src="{$themeconf.icon_dir}/{$thumbnail.AUTHOR}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Author'|@translate}<br /> - <img src="{$themeconf.icon_dir}/{$thumbnail.CREATE_DATE}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Creation date'|@translate}<br /> - <img src="{$themeconf.icon_dir}/{$thumbnail.METADATA}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Metadata'|@translate}<br /> - <img src="{$themeconf.icon_dir}/{$thumbnail.TAGS}check.png" - alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Tags'|@translate} ({$thumbnail.NUM_TAGS}) + <a href="{$thumbnail.U_MODIFY}" title="{'link_info_image'|@translate}"> + <img class="thumbnail" src="{$thumbnail.IMAGE}" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"></a> + </td><td style="text-align: left;"> + <img src="{$themeconf.icon_dir}/{$thumbnail.NAME}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Name'|@translate}<br /> + <img src="{$themeconf.icon_dir}/{$thumbnail.COMMENT}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Description'|@translate}<br /> + <img src="{$themeconf.icon_dir}/{$thumbnail.AUTHOR}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Author'|@translate}<br /> + <img src="{$themeconf.icon_dir}/{$thumbnail.CREATE_DATE}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Creation date'|@translate}<br /> + <img src="{$themeconf.icon_dir}/{$thumbnail.METADATA}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Metadata'|@translate}<br /> + <img src="{$themeconf.icon_dir}/{$thumbnail.TAGS}check.png" + alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Tags'|@translate} ({$thumbnail.NUM_TAGS}) {/if} - </td> - </tr> - - <tr> - <td colspan=2>{$smarty.now|date_format:"%A, %B %e, %Y - %r"} --- Templates generated by <a href="http://www.smarty.net/" onclick="window.open(this.href, ''); return false;">Smarty</a> {$smarty.version}</td> + </td> </tr> + {/if} </table> - + <div class="summary"> + <h4>External summary</h4> + <ul>Database Analysis<br /> + {if ($pwgsize != $size)} + - Space used by {$prefixTable} tables: {$pwgsize}<br /> + {/if} + - Space used by all tables: {$size}<br /> + - {$checked_tables}<br /> + - Unused allocated space by {$prefixTable} tables: {$pwgspacef}<br /> + {if ($spacef > 0 and $pwgspacef != $spacef)} + - Unused allocated space: {$spacef}<br /> + {/if} + {if ($spacef > 0)} + Useful links: + <a class="internal" href="{$U_maintenance}">{'repair and optimize database'|@translate}</a> - + {else} + MySQL documentation: + {/if} + <a class="external" href="http://dev.mysql.com/doc/" onclick="window.open(this.href, ''); return false;">MySQL</a> + <br /><br /> + Templates generated on {$smarty.now|date_format:"%A, %B %e, %Y - %r"} by + <a class="external" href="http://www.smarty.net/" onclick="window.open(this.href, ''); return false;">Smarty</a> + {$smarty.version} + </ul> + </div> </div> -{/if}
\ No newline at end of file + diff --git a/plugins/admin_advices/adv_set.php b/plugins/admin_advices/adv_set.php new file mode 100644 index 000000000..d0fb98c2f --- /dev/null +++ b/plugins/admin_advices/adv_set.php @@ -0,0 +1,175 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + + +// +// A new advices needs: +// $lang['Adv_case'][xx] = 'Text' ==> in all plugin.lang +// $adv['c'][xx] = Condition (default true) +// $adv['v'][xx] = Value (if there is one (facultative)) +// $adv['n'][xx] = Name of $conf (A new advice about blah-blah) +// +// prefix '**' . => Not a $conf['xxxxx'] + +load_language('plugin.lang', dirname(__FILE__).'/'); + +// No needed translation here below + +// Use l10n if your need a localization and update all plugin.lang + +$adv['n'][0] = '**' . $lang['contribute']; + +$adv['n'][1] = 'newcat_default_status'; +$adv['c'][1] = ($conf['newcat_default_status'] !== 'public'); +$adv['v'][1] = sprintf($lang['current'], 'public'); + +$adv['n'][2] = 'slideshow_period'; +$adv['c'][2] = ( $conf['slideshow_period'] < 4 ); +$adv['v'][2] = sprintf($lang['current'], $conf['slideshow_period']); + +$adv['n'][3] = 'file_ext'; +$adv['c'][3] = ( in_array('php',$conf['file_ext']) ); +$adv['v'][3] = sprintf($lang['current'], implode(', ', $conf['file_ext'])); + +$adv['n'][4] = 'show_iptc_mapping'; + +$adv['n'][5] = 'top_number'; +$adv['c'][5] = ( $conf['top_number'] > 50 ); +$adv['v'][5] = sprintf($lang['current'], $conf['top_number']); + +$adv['n'][6] = 'top_number'; +$adv['c'][6] = ( $conf['top_number'] < 2 ) ? true : false; +$adv['v'][6] = sprintf($lang['current'], $conf['top_number']); + +$adv['n'][7] = 'anti-flood_time'; +$adv['c'][7] = ( $conf['anti-flood_time'] > 100 ) ? true : false; +$adv['v'][7] = sprintf($lang['current'], $conf['anti-flood_time']); + +$adv['n'][8] = 'calendar_datefield'; +$adv['c'][8] = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); +$adv['v'][8] = sprintf($lang['current'], $conf['calendar_datefield']); + +/* Unavailable creation date and default calendar is creation date */ +$adv['n'][9] = 'calendar_datefield'; +$adv['c'][9] = ( (( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ) + or ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) )) + and ( $conf['calendar_datefield'] == 'date_creation' ) ) + ? false : true; +$adv['v'][9] = sprintf($lang['current'], $conf['calendar_datefield']); + +$adv['n'][10] = 'newcat_default_visible'; +$adv['c'][10] = !$conf['newcat_default_visible']; +$adv['v'][10] = sprintf($lang['current'], 'false'); + +$adv['n'][11] = 'level_separator'; +$adv['c'][11] = ( $conf['level_separator'] == ' / ' ); +$adv['v'][11] = sprintf($lang['current'], $conf['level_separator']); + +$adv['n'][12] = 'paginate_pages_around'; +$adv['c'][12] = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); +$adv['v'][12] = sprintf($lang['current'], $conf['paginate_pages_around']); + +$adv['n'][13] = 'tn_width'; +$adv['c'][13] = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); +$adv['v'][13] = sprintf($lang['current'], $conf['tn_width']); + +$adv['n'][14] = 'tn_height'; +$adv['c'][14] = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); +$adv['v'][14] = sprintf($lang['current'], $conf['tn_height']); + +$adv['n'][15] = 'tn_height'; + +$adv['c'][15] = ( $conf['tn_height'] !== $conf['tn_width'] ); +$adv['v'][15] = l10n('TN-height&width'); + +$adv['n'][16] = 'show_version'; +$adv['c'][16] = $conf['show_version']; +$adv['v'][16] = sprintf($lang['current'], 'true'); + +$adv['n'][17] = 'show_thumbnail_caption'; +$adv['c'][17] = $conf['show_thumbnail_caption']; +$adv['v'][17] = sprintf($lang['current'], 'true'); + +$adv['n'][18] = 'show_picture_name_on_title'; +$adv['c'][18] = $conf['show_picture_name_on_title']; +$adv['v'][18] = sprintf($lang['current'], 'true'); + +$adv['n'][19] = 'subcatify'; +$adv['c'][19] = $conf['subcatify']; +$adv['v'][19] = sprintf($lang['current'], 'true'); + +$adv['n'][20] = 'allow_random_representative'; +$adv['c'][20] = $conf['allow_random_representative']; +$adv['v'][20] = sprintf($lang['current'], 'true'); + +$adv['n'][21] = 'prefix_thumbnail'; +$adv['c'][21] = ( $conf['prefix_thumbnail'] !== 'TN-' ); +$adv['v'][21] = sprintf($lang['current'], $conf['prefix_thumbnail']); + +$adv['n'][22] = 'users_page'; +$adv['c'][22] = ( $conf['users_page'] < 21 ); +$adv['v'][22] = sprintf($lang['current'], $conf['users_page']); + +$adv['n'][23] = 'mail_options'; +$adv['c'][23] = $conf['mail_options']; +$adv['v'][23] = sprintf($lang['current'], 'true'); + +$adv['n'][24] = 'check_upgrade_feed'; +$adv['c'][24] = $conf['check_upgrade_feed']; +$adv['v'][24] = sprintf($lang['current'], 'true'); + +$adv['n'][25] = 'rate_items'; +$adv['c'][25] = ( count($conf['rate_items']) < 4 ); +$adv['v'][25] = sprintf($lang['current'], $conf['rate_items']); + +$adv['n'][26] = 'rate_items'; +$adv['c'][26] = ( count($conf['rate_items']) > 6 ); +$adv['v'][26] = sprintf($lang['current'], $conf['rate_items']); + +$adv['n'][27] = $conf['show_iptc']; +$adv['c'][27] = $conf['show_iptc']; +$adv['v'][27] = sprintf($lang['current'], 'true'); + +$adv['n'][28] = 'use_iptc'; +$adv['c'][28] = $conf['use_iptc']; +$adv['v'][28] = sprintf($lang['current'], 'true'); + +$adv['n'][29] = 'use_iptc'; + +$adv['n'][30] = 'use_iptc_mapping'; + +$adv['n'][31] = 'show_exif'; +$adv['v'][31] = sprintf($lang['current'], (($conf['show_exif'])? 'true':'false' )); + +$adv['n'][32] = 'use_exif'; +$adv['v'][32] = sprintf($lang['current'], (($conf['use_exif'])? 'true':'false' )); + +$adv['n'][33] = '**' . $lang['navigation']; + +?>
\ No newline at end of file diff --git a/plugins/admin_advices/en_UK/lang.adv.php b/plugins/admin_advices/en_UK/lang.adv.php deleted file mode 100644 index 26dc4d56b..000000000 --- a/plugins/admin_advices/en_UK/lang.adv.php +++ /dev/null @@ -1,447 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | This program is free software; you can redistribute it and/or modify | -// | it under the terms of the GNU General Public License as published by | -// | the Free Software Foundation | -// | | -// | This program is distributed in the hope that it will be useful, but | -// | WITHOUT ANY WARRANTY; without even the implied warranty of | -// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | -// | General Public License for more details. | -// | | -// | You should have received a copy of the GNU General Public License | -// | along with this program; if not, write to the Free Software | -// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | -// | USA. | -// +-----------------------------------------------------------------------+ - -global $lang; -$lang['An_advice_about'] = 'A new advice about'; -$lang['Metadata'] = 'Metadata'; - -foreach ($conf as $key => $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Current value: public. '; - $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'You will have more time to describe and check your pictures.'; - $adv[] = 'Time to decide between private and public status.'; - $adv[] = 'If you choose private, time to distribute authorization.'; - $adv[] = 'Your new category will be well prepared.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'This value could be too small for low band connections.'; - $adv[] = 'Think about higher value like 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Should never contains extensions which can be executed'; - $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Show IPTC Data from your picture:'; - $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . - ' in ./tools/<br />' . - ' 2 - Rename it as sample.jpg.<br />' . - ' 3 - Run ./tools/metadata.php<br />' . - ' 4 - Analyse results to determine which IPTC fields could be' . - ' useful for your visitors.'; - $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; - $adv[] = 'Advanced users would take care of $lang values and impacts' . - ' on templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'This value is maybe too high for low connections, ' . - 'think about 25-50 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'One? It could be too low for random pictures, ' . - 'think about 5-10 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'For normal flow processing, your value is probably too high. ' . - 'Reasonable value is 60 (default).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = 'Authorized values are ' . - "'date_creation' or 'date_available'" . - ', otherwise you can get unpredictable results.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advice - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = "'date_creation'" . ' is NOT filled by ' . - 'any activated use metadata mapping fields.'; - $adv[] = 'So activate metadata usage <strong>or</strong> change to ' . - '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activate metadata usage as you want: <br />' . - '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . - 'each way will be correct.<br />' . - '2 - And respectively map:<br />' . - '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' . - '=> \'2#055\', ...<br />' . - 'or/and:<br />' . - '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' . - '=> \'DateTimeOriginal\', ...<br />' . - '3 - Finally, a new task is up to you: Metadata synchronization.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Current value: false.'; - $adv[] = 'Not useful, private status is better, so code ' . - '$conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; - $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . - '$conf[\'paginate_pages_around\'] = 2; <br />' . - 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Should be a close value to your thumbnail width.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Should be a close value to your thumbnail height.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Thumbnail height and width have to be equal.'; - $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . - ';<br />' . - 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Current value: true.'; - $adv[] = 'For security reason, please set ' . - '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Current value: true.'; - $adv[] = 'If you do NOT have any category descriptions just have ' . - 'a look to $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Current value: true.'; - $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' . - 'but analyze if you can avoid for performance reasons.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; - $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; - $adv[] = 'Distant site may use a different prefix but ' . - 'create_listing_file.php must be modified.<br />' . - 'You will get a warning message during synchronization in ' . - 'that case.'; - $adv[] = 'Try to keep the same prefix thru all your sites either ' . - 'local or distants.'; - $adv[] = 'Keep this parameter in your ./include/config_'. - '<strong>local.inc.php</strong>. <br />'. - 'See our wiki configuration page for more information about ' . - './include/config_<strong>local.inc.php</strong>.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; - $adv[] = 'Unless you have a low band connection, you can draw up ' . - '$conf[\'users_page\'] to a higher value ' . - 'if you have more than 20 members.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only few webmasters have to set ' . - '$conf[\'mail_options\'] = true; <br />' . - 'A specific advice you can get from an advanced ' . - 'user on our forum in some mailing issues.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only PWG dev Team have to set ' . - '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; - $adv[] = 'Check your best rated pictures prior to remove some values.' . - '<br />Reduce excessive rating and change your ' . - '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Current value: true.'; - $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' - . '<br />Some Professional photographers choose false ' . - 'their reasons are not really professional.' ; - $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' . - '<strong>use</strong>_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Current value: true.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave it ' . - 'as $conf[\'use_iptc\'] = false;'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '<br />Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' . - '<strong>use</strong>_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '<br />2 - Rename it as sample.jpg.' . - '<br />3 - Run ./tools/metadata.php' . - '<br />4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.<br />' . - 'IPTC fields have to be described in ' . - '$conf[\'use_iptc_mapping\']'; - $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . - '<strong>use</strong>_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '<br />2 - Rename it as sample.jpg.' . - '<br />3 - Run ./tools/metadata.php' . - '<br />4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '<br />Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . - '<strong>use</strong>_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Should be true, some information from your camera ' . - 'can be displayed.'; - $adv[] = 'Think about EXIF information could be different depending ' . - 'on camera models.<br />' . - 'If you change your camera these fields could be ' . - 'partly different.'; - $adv[] = 'Many professional photographers choose false, ' . - 'their reasons are to protect their knowledge.' ; - $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' . - '<strong>use</strong>_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '<br />2 - Rename it as sample.jpg.' . - '<br />3 - Run ./tools/metadata.php' . - '<br />4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would take care of $lang values and ' . - 'impacts on templates.'; - $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' . - '<strong>use</strong>_exif_mapping must be totally different.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave the default value.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '<br />Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' . - '<strong>use</strong>_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '<br />2 - Rename it as sample.jpg.' . - '<br />3 - Run ./tools/metadata.php' . - '<br />4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would carefully chose overrided fields ' . - 'prior to synchronize.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '<br />Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' . - '<strong>use</strong>_exif_mapping must be totally different.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/fr_FR/lang.adv.php b/plugins/admin_advices/fr_FR/lang.adv.php deleted file mode 100644 index 11fd5cf53..000000000 --- a/plugins/admin_advices/fr_FR/lang.adv.php +++ /dev/null @@ -1,480 +0,0 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Piwigo - a PHP based picture gallery | -// +-----------------------------------------------------------------------+ -// | Copyright(C) 2008 Piwigo Team http://piwigo.org | -// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | -// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | -// +-----------------------------------------------------------------------+ -// | This program is free software; you can redistribute it and/or modify | -// | it under the terms of the GNU General Public License as published by | -// | the Free Software Foundation | -// | | -// | This program is distributed in the hope that it will be useful, but | -// | WITHOUT ANY WARRANTY; without even the implied warranty of | -// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | -// | General Public License for more details. | -// | | -// | You should have received a copy of the GNU General Public License | -// | along with this program; if not, write to the Free Software | -// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | -// | USA. | -// +-----------------------------------------------------------------------+ - -global $lang; -$lang['An_advice_about'] = 'Un nouveau conseil à propos de '; -$lang['Metadata'] = 'Méta-données'; - -foreach ($conf as $key => $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Valeur actuelle : public. '; - $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' - . 'Du temps pour vous décider entre un statut privé ou public.'; - $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' - . 'à l\'attribution des autorisations. <br />' - . 'Vos nouvelles catégories seront préparées plus facilement.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'Ce délai pourrait être trop petit pour les connexions ' - . 'en bas débit.'; - $adv[] = 'Pensez à une valeur supérieure comme 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Ne devrait jamais contenir des extensions pouvant être '; - $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' - . ' 2 - Renommez celle-ci en sample.jpg.<br />' - . ' 3 - Lancez ./tools/metadata.php<br />' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' - . 'bas débit.<br /> Pensez à une valeur située entre 25-50 ' - . 'en fonction de la taille de vos minitures.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' - . 'autour de 5-10 selon la tailles de vos miniatures.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' - . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = 'Les valeurs admises sont ' - . "'date_creation' ou 'date_available'" . ', toute autre valeur' - . 'peut aboutir à des résultats imprévisibles.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advise - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' - . 'des méta-données (use_) n\'actualise la base.'; - $adv[] = 'Soit vous activez l\'usage des méta-données <strong>ou' - . '</strong> changez pour ' - . '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activez l\'usage des méta-données simplement par: <br />' - . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' - . 'au choix, les 2 sont valables.<br />' - . '2 - Respectivement à chacune faire la modif:<br />' - . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' - . '=> \'2#055\', ...<br />' - . 'et/ou:<br />' - . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' - . '=> \'DateTimeOriginal\', ...<br />' - . '3 - Enfin une nouvelle tache vous est destinée: ' - . 'la synchronisation des méta-données.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Valeur actuelle : false.'; - $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' - . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Vous pouvez toujours essayer un autre séparateur comme :' - . '<br />$conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] - . '.'; - $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' - . 'Pour un site avec une interface légère, on choisira : <br />' - . '$conf[\'paginate_pages_around\'] = 2; <br />' - . 'Afin de proposer plus d\'accès directs, on choisira : <br />' - . '$conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit ' - . 'différente de la hauteur maximale. Pourquoi les ajouts en ' - . 'portrait afficheraient des miniatures dans une résolution ' - . 'différente de celle des miniatures en paysage?'; - $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] - . ';<br />' - . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' - . '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' - . 'essayez $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />' - . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' - . 'de performance.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas ' - . 'standard.'; - $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' - . 'problème d\'affichage.'; - $adv[] = 'Un site distant peut avoir un préfixe différent, le ' - . 'create_listing_file.php devra être modifié.<br />' - . 'Vous devriez avoir un message d\'avertissement pendant la ' - . 'synchronisation dans ce cas.'; - $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' - . 'locaux ou distants.'; - $adv[] = 'Conservez ce paramètre dans votre ./include/config_' - . '<strong>local.inc.php</strong>. <br />' - . 'Voir la page sur la configuration dans le Wiki pour plus ' - . 'd\'informations à propos de ' - . './include/config_<strong>local.inc.php</strong>.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; - $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' - . 'augmenter largement $conf[\'users_page\'] ' - . 'surtout si vous avez plus de 20 membres.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' - . 'indiquer $conf[\'mail_options\'] = true; <br />' - . 'Un utilisateur avancé de notre forum les aura conseillé ' - . 'dans un seul cas de problème d\'email.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' - . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) - . 'éléments.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas moins.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas plus.'; - $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' - . ' certaines valeurs.' - . '<br />Réduire les valeurs excessives et modifiez votre ' - . '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' - . '$conf[\'show_iptc\'] = false;' - . '<br />Comme quelques photographes professionnels choisissez ' - . 'false bien que leurs raisons ne soient guère professionnelles.'; - $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' - . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . '$conf[\'use_iptc\'] = false;'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.<br />Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' - . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' - . ' 2 - Renommez celle-ci en sample.jpg.<br />' - . ' 3 - Lancez ./tools/metadata.php<br />' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.<br />' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' - . '<strong>use</strong>_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' - . ' 2 - Renommez celle-ci en sample.jpg.<br />' - . ' 3 - Lancez ./tools/metadata.php<br />' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.<br />' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.<br />Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' - . '<strong>use</strong>_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Valeur actuelle : ' - . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; - $adv[] = 'Devrait être à true, certaines informations propres à votre ' - . 'appareil pourront être affichées.'; - $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' - . 'différentes suivant les modèles d\'appareil.<br />' - . 'Si vous changez votre appareil ces champs pourraient en ' - . 'partie differents.'; - $adv[] = 'Beaucoup de photographes professionnels choissent false, ' - . 'ceci afin de protéger leur savoir-faire.' ; - $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' - . '<strong>use</strong>_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' - . ' 2 - Renommez celle-ci en sample.jpg.<br />' - . ' 3 - Lancez ./tools/metadata.php<br />' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' - . '<strong>use</strong>_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . 'la valeur par défaut.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.<br />Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' - . '<strong>use</strong>_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' - . ' 2 - Renommez celle-ci en sample.jpg.<br />' - . ' 3 - Lancez ./tools/metadata.php<br />' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront très attention aux champs ' - . 'sélectionnés et modifiés par la synchronisation.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.<br />Ces champs pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' - . '<strong>use</strong>_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/en_UK/index.php b/plugins/admin_advices/language/en_UK/index.php index c15b15795..c15b15795 100644 --- a/plugins/admin_advices/en_UK/index.php +++ b/plugins/admin_advices/language/en_UK/index.php diff --git a/plugins/admin_advices/language/en_UK/plugin.lang.php b/plugins/admin_advices/language/en_UK/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/en_UK/plugin.lang.php @@ -0,0 +1,157 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software, you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY, without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program, if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// --------- Starting below: New or revised $lang ---- from Butterfly (1.8) +$lang['An_advice_about'] = 'A new advice about'; +$lang['contribute'] = 'how you can contribute'; +$lang['navigation'] = 'navigation'; +$lang['Metadata'] = 'Metadata'; +$lang['current'] = 'Current value: %s.'; +$lang['TN-height&width'] = 'Thumbnail height and width have to be equal.'; +$lang['Adv_case'][0] = array( /* **contribute */ + 'If you want to contribute with your own "tip", please publish it', + 'on Piwigo Forums (or mail it to the one of the developers),', + 'and we would be happy to add it within next release.', ); +$lang['Adv_case'][1] = array( /* newcat_default_status */ + 'Try $conf[\'newcat_default_status\'] = \'private\',', + 'You will have more time to describe and check your pictures.', + 'Time to decide between private and public status.', + 'If you choose private, time to distribute authorization.', + 'Your new category will be well prepared.', ); +$lang['Adv_case'][2] = array( /* slideshow_period */ + 'This value could be too small for low band connections.', + 'Think about higher value like 4.', ); +$lang['Adv_case'][3] = array( /* file_ext */ + 'Should never contains extensions which can be executed', + 'on the server side like *.php, *.PHP, *.asp, ...', ); +$lang['Adv_case'][4] = array( /* show_iptc_mapping */ + 'Show IPTC Data from your picture:', + ' 1 - Copy one of your jpg pictures (a public one) in ./tools/', + ' 2 - Rename it as sample.jpg.', + ' 3 - Run ./tools/metadata.php', + ' 4 - Analyse results to determine which IPTC fields could be useful for your visitors.', + 'Beginners would prefer to keep $conf[\'show_iptc\'] = false,', + 'Advanced users would take care of $lang values and impacts on templates.', ); +$lang['Adv_case'][5] = array( /* top_number */ + 'This value is maybe too high for low connections, think about 25-50 depending on your thumbnail sizes.', ); +$lang['Adv_case'][6] = array( /* top_number */ + 'One? It could be too low for random pictures, think about 5-10 depending on your thumbnail sizes.', ); +$lang['Adv_case'][7] = array( /* anti-flood_time */ + 'For normal flow processing, your value is probably too high. Reasonable value is 60 (default).' , ); +$lang['Adv_case'][8] = array( /* calendar_datefield */ + 'Authorized values are ' . "'date_creation' or 'date_available'" . ', otherwise you can get unpredictable results.' , ); +$lang['Adv_case'][9] = array( /* calendar_datefield */ + "'date_creation'" . ' is NOT filled by any activated use metadata mapping fields.', + 'So activate metadata usage <strong>or</strong> change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ <strong>local.inc.php</strong>', + 'See our wiki configuration page for more information about ./include/config_<strong>local.inc.php</strong>.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?>
\ No newline at end of file diff --git a/plugins/admin_advices/fr_FR/index.php b/plugins/admin_advices/language/es_ES/index.php index c15b15795..c15b15795 100644 --- a/plugins/admin_advices/fr_FR/index.php +++ b/plugins/admin_advices/language/es_ES/index.php diff --git a/plugins/admin_advices/language/es_ES/plugin.lang.php b/plugins/admin_advices/language/es_ES/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/es_ES/plugin.lang.php @@ -0,0 +1,157 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software, you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY, without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program, if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// --------- Starting below: New or revised $lang ---- from Butterfly (1.8) +$lang['An_advice_about'] = 'A new advice about'; +$lang['contribute'] = 'how you can contribute'; +$lang['navigation'] = 'navigation'; +$lang['Metadata'] = 'Metadata'; +$lang['current'] = 'Current value: %s.'; +$lang['TN-height&width'] = 'Thumbnail height and width have to be equal.'; +$lang['Adv_case'][0] = array( /* **contribute */ + 'If you want to contribute with your own "tip", please publish it', + 'on Piwigo Forums (or mail it to the one of the developers),', + 'and we would be happy to add it within next release.', ); +$lang['Adv_case'][1] = array( /* newcat_default_status */ + 'Try $conf[\'newcat_default_status\'] = \'private\',', + 'You will have more time to describe and check your pictures.', + 'Time to decide between private and public status.', + 'If you choose private, time to distribute authorization.', + 'Your new category will be well prepared.', ); +$lang['Adv_case'][2] = array( /* slideshow_period */ + 'This value could be too small for low band connections.', + 'Think about higher value like 4.', ); +$lang['Adv_case'][3] = array( /* file_ext */ + 'Should never contains extensions which can be executed', + 'on the server side like *.php, *.PHP, *.asp, ...', ); +$lang['Adv_case'][4] = array( /* show_iptc_mapping */ + 'Show IPTC Data from your picture:', + ' 1 - Copy one of your jpg pictures (a public one) in ./tools/', + ' 2 - Rename it as sample.jpg.', + ' 3 - Run ./tools/metadata.php', + ' 4 - Analyse results to determine which IPTC fields could be useful for your visitors.', + 'Beginners would prefer to keep $conf[\'show_iptc\'] = false,', + 'Advanced users would take care of $lang values and impacts on templates.', ); +$lang['Adv_case'][5] = array( /* top_number */ + 'This value is maybe too high for low connections, think about 25-50 depending on your thumbnail sizes.', ); +$lang['Adv_case'][6] = array( /* top_number */ + 'One? It could be too low for random pictures, think about 5-10 depending on your thumbnail sizes.', ); +$lang['Adv_case'][7] = array( /* anti-flood_time */ + 'For normal flow processing, your value is probably too high. Reasonable value is 60 (default).' , ); +$lang['Adv_case'][8] = array( /* calendar_datefield */ + 'Authorized values are ' . "'date_creation' or 'date_available'" . ', otherwise you can get unpredictable results.' , ); +$lang['Adv_case'][9] = array( /* calendar_datefield */ + "'date_creation'" . ' is NOT filled by any activated use metadata mapping fields.', + 'So activate metadata usage <strong>or</strong> change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ <strong>local.inc.php</strong>', + 'See our wiki configuration page for more information about ./include/config_<strong>local.inc.php</strong>.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?>
\ No newline at end of file diff --git a/template/yoga/admin/index.php b/plugins/admin_advices/language/fr_FR/index.php index c15b15795..c15b15795 100644 --- a/template/yoga/admin/index.php +++ b/plugins/admin_advices/language/fr_FR/index.php diff --git a/plugins/admin_advices/language/fr_FR/plugin.lang.php b/plugins/admin_advices/language/fr_FR/plugin.lang.php new file mode 100644 index 000000000..20ea2aef2 --- /dev/null +++ b/plugins/admin_advices/language/fr_FR/plugin.lang.php @@ -0,0 +1,159 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software, you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY, without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program, if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// --------- Starting below: New or revised $lang ---- from Butterfly (1.8) +$lang['An_advice_about'] = 'Un nouveau conseil à propos de '; +$lang['contribute'] = 'comment contribuer'; +$lang['navigation'] = 'navigation'; +$lang['Metadata'] = 'Méta-données'; +$lang['current'] = 'Valeur actuelle : %s.'; +$lang['TN-height&width'] = 'Hauteur et largeur de miniature devrait être égales.'; +$lang['Adv_case'][0] = array( /* **contribute */ + 'Si vous souhaitez contribuer avec votre propre «astuce», merci de la publier', + 'sur les Forums de Piwigo (ou par message privé à l\'un des développeurs),', + 'et nous serons heureux de l\'ajouter dès la publication suivante.', ); +$lang['Adv_case'][1] = array( /* newcat_default_status */ + 'Essayez $conf[\'newcat_default_status\'] = \'private\';', + 'Vous aurez plus de temps pour décrire et contrôler vos images. ', + 'Du temps pour vous décider entre un statut privé ou public.', + 'Si vous choisissez de rester privé, vous passerez directement à l\'attribution des autorisations. ', + 'Vos nouvelles catégories seront préparées plus facilement.', ); +$lang['Adv_case'][2] = array( /* slideshow_period */ + 'Ce délai pourrait être trop court pour les connexions en bas débit. ', + 'Pensez à une valeur supérieure comme 4.', ); +$lang['Adv_case'][3] = array( /* file_ext */ + 'Ne devrait jamais contenir des extensions pouvant être exécutées', + 'sur le serveur comme *.php, *.PHP, *.asp, ...', ); +$lang['Adv_case'][4] = array( /* show_iptc_mapping */ + 'Comment gérer les IPTC:', + ' 1 - Copiez une image jpg (publique) dans ./tools/', + ' 2 - Renommez celle-ci en sample.jpg.', + ' 3 - Lancez ./tools/metadata.php', + ' 4 - Analysez les résultats pour déterminer quels champs ', + 'Les débutants laisseront $conf[\'show_iptc\'] = false;', + 'Les utilisateurs avancés penseront aux valeurs du tableau $lang; voire même à l\'impact possible sur les templates.', ); +$lang['Adv_case'][5] = array( /* top_number */ + 'Cette valeur pourrait être trop grande pour des connexions bas débit.', + 'Pensez à une valeur située entre 25-50 en fonction de la taille de vos minitures.', ); +$lang['Adv_case'][6] = array( /* top_number */ + 'Une seule? Au moins pour les images aléatoires, pensez autour de 5-10 selon la tailles de vos miniatures.', ); +$lang['Adv_case'][7] = array( /* anti-flood_time */ + 'Pour un traitement fluide, votre valeur est sans doute trop grande. Une valeur raisonnable serait 60 (valeur par défaut).', ); +$lang['Adv_case'][8] = array( /* calendar_datefield */ + 'Les valeurs admises sont ' . "'date_creation' ou 'date_available'" . ', toute autre valeur peut aboutir à des résultats imprévisibles.', ); + $lang['Adv_case'][9] = array( /* calendar_datefield */ + "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ des méta-données (use_) n\'actualise la base.', + 'Soit vous activez l\'usage des méta-données <strong>ou</strong> changez pour $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activez l\'usage des méta-données simplement par: ', + '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; au choix, les 2 sont valables.', + '2 - Respectivement à chacune faire la modif:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'et/ou:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Enfin une nouvelle tache vous est destinée: la synchronisation des méta-données.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'C\'est une erreur, un statut "private" est plus simple, alors choisissez $conf[\'newcat_default_visible\'] = true;', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Vous pouvez toujours essayer un autre séparateur comme : $conf[\'level_separator\'] = \'+ \';', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Les valeurs habituelles se situent entre 2 et 5. Pour un site avec une interface légère, on choisira : ', + '$conf[\'paginate_pages_around\'] = 2;', + 'Afin de proposer plus d\'accès directs, on choisira : $conf[\'paginate_pages_around\'] = 7;', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Doit être une valeur proche de la largeur de vos miniatures. Les valeurs habituelles se situent entre 96 et 150, comme $conf[\'tn_width\'] = 128;', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Doit être une valeur proche de la hauteur de vos miniatures. Les valeurs habituelles se situent entre 96 et 150, comme $conf[\'tn_height\'] = 128;', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Largeur et hauteur de miniature devraient être égales.', + 'Essayez $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'ou $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'Pour des raisons de sécurité de votre galerie, préférez $conf[\'show_version\'] = false;', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'Pour une galerie moins chargée, faites le test de $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'Pour une galerie moins chargée, faites le test de $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'Si aucune de vos catégories ne possède de description alors essayez $conf[\'subcatify\'] = false;', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Laissez $conf[\'allow_random_representative\'] = true, ', + 'mais étudiez comment vous pourriez l\'éviter pour des raisons de performance.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas standard.', + 'Ne pas changer votre préfixe sauf si vos miniatures ont un problème d\'affichage.', + 'Un site distant peut avoir un préfixe différent, le create_listing_file.php devra être modifié.', + 'Vous devriez avoir un message d\'avertissement pendant la synchronisation dans ce cas.', + 'Essayez de garder le même préfixe de miniatures pour les sites locaux ou distants.', + 'Conservez ce paramètre dans votre ./include/config_<strong>local.inc.php</strong>.', + 'Voir la page sur la configuration dans le Wiki pour plus d\'informations à propos de ./include/config_<strong>local.inc.php</strong>.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'A moins d\'avoir une connexion bas débit, vous pouvez augmenter largement $conf[\'users_page\'] surtout si vous avez plus de 20 membres.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Devrait être à false, seulement quelques webmasters devront indiquer $conf[\'mail_options\'] = true;', + 'Un utilisateur avancé de notre forum les aura conseillé dans un seul cas de problème d\'email.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Devrait être à false, seuls les membres de l\'équipe Piwigo codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.', ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments mais pas moins.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments mais pas plus.', + 'Contrôlez vos images les mieux notées avant de retirer certaines valeurs.', + 'Réduire les valeurs excessives et modifiez votre $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Peut être effectivement à true, éventuellement choisissez $conf[\'show_iptc\'] = false,', + 'Comme quelques photographes professionnels choisissez false bien que leurs raisons ne soient guère professionnelles.', + 'Ne confondez pas <strong>show</strong>_iptc et <strong>use</strong>_iptc (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Les documentalistes et photographes professionnels préfèreront la valeur true, mais les débutants devraient laisser $conf[\'use_iptc\'] = false,', + 'Faire attention aux champs mentionnés dans la synchronisation des métadonnées.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs IPTC quand bien même ces champs ne seraient pas vides.', + 'Ne confondez pas <strong>show</strong>_iptc et <strong>use</strong>_iptc (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'Comment gérer les IPTC:', + '1 - Copiez une image jpg (publique) dans ./tools/', + '2 - Renommez celle-ci en sample.jpg.', + '3 - Lancez ./tools/metadata.php', + '4 - Analysez les résultats pour déterminer quels champs IPTC pourraient compléter votre base de données.', + 'Les débutants laisseront $conf[\'use_iptc\'] = false,', + 'Les utilisateurs avancés feront des efforts de documentation avant de transférer leurs images.', + 'Les champs IPTC doivent être décrits par $conf[\'use_iptc_mapping\']', + 'Dans tous les cas, <strong>show</strong>_iptc_mapping et <strong>use</strong>_iptc_mapping seront totalement différents.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'Comment gérer les IPTC:', + 'Faites attention aux champs mentionnés dans la synchronisation des métadonnées.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs IPTC quand bien même ces champs ne seraient pas vides.', + 'Dans tous les cas, <strong>show</strong>_iptc_mapping et <strong>use</strong>_iptc_mapping seront totalement différents.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Devrait être à true, certaines informations propres à votre appareil pourront être affichées.', + 'Pensez au fait que les informations EXIF peuvent être différentes suivant les modèles d\'appareil.', + 'Si vous changez votre appareil ces champs pourraient en partie differents.', + 'Beaucoup de photographes professionnels choissent false, ceci afin de protéger leur savoir-faire.' , + 'Ne confondez pas <strong>show</strong>_exif et <strong>use</strong>_exif (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ +'Les documentalistes et photographes professionnels préfèreront la valeur true, mais les débutants laisseront la valeur par défaut.', + 'Take care of mentionned fields in metadata synchronization.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs EXIF quand bien même ces champs ne seraient pas vides.', + 'Ne confondez pas <strong>show</strong>_exif et <strong>use</strong>_exif (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'Vous pouvez utiliser les flèches du clavier pour naviguer entre les images.', ); +?>
\ No newline at end of file diff --git a/plugins/admin_advices/language/index.php b/plugins/admin_advices/language/index.php new file mode 100644 index 000000000..c15b15795 --- /dev/null +++ b/plugins/admin_advices/language/index.php @@ -0,0 +1,30 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// Recursive call +$url = '../'; +header( 'Request-URI: '.$url ); +header( 'Content-Location: '.$url ); +header( 'Location: '.$url ); +exit(); +?> diff --git a/plugins/admin_advices/language/it_IT/index.php b/plugins/admin_advices/language/it_IT/index.php new file mode 100644 index 000000000..c15b15795 --- /dev/null +++ b/plugins/admin_advices/language/it_IT/index.php @@ -0,0 +1,30 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// Recursive call +$url = '../'; +header( 'Request-URI: '.$url ); +header( 'Content-Location: '.$url ); +header( 'Location: '.$url ); +exit(); +?> diff --git a/plugins/admin_advices/language/it_IT/plugin.lang.php b/plugins/admin_advices/language/it_IT/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/it_IT/plugin.lang.php @@ -0,0 +1,157 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based picture gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software, you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY, without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program, if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +// --------- Starting below: New or revised $lang ---- from Butterfly (1.8) +$lang['An_advice_about'] = 'A new advice about'; +$lang['contribute'] = 'how you can contribute'; +$lang['navigation'] = 'navigation'; +$lang['Metadata'] = 'Metadata'; +$lang['current'] = 'Current value: %s.'; +$lang['TN-height&width'] = 'Thumbnail height and width have to be equal.'; +$lang['Adv_case'][0] = array( /* **contribute */ + 'If you want to contribute with your own "tip", please publish it', + 'on Piwigo Forums (or mail it to the one of the developers),', + 'and we would be happy to add it within next release.', ); +$lang['Adv_case'][1] = array( /* newcat_default_status */ + 'Try $conf[\'newcat_default_status\'] = \'private\',', + 'You will have more time to describe and check your pictures.', + 'Time to decide between private and public status.', + 'If you choose private, time to distribute authorization.', + 'Your new category will be well prepared.', ); +$lang['Adv_case'][2] = array( /* slideshow_period */ + 'This value could be too small for low band connections.', + 'Think about higher value like 4.', ); +$lang['Adv_case'][3] = array( /* file_ext */ + 'Should never contains extensions which can be executed', + 'on the server side like *.php, *.PHP, *.asp, ...', ); +$lang['Adv_case'][4] = array( /* show_iptc_mapping */ + 'Show IPTC Data from your picture:', + ' 1 - Copy one of your jpg pictures (a public one) in ./tools/', + ' 2 - Rename it as sample.jpg.', + ' 3 - Run ./tools/metadata.php', + ' 4 - Analyse results to determine which IPTC fields could be useful for your visitors.', + 'Beginners would prefer to keep $conf[\'show_iptc\'] = false,', + 'Advanced users would take care of $lang values and impacts on templates.', ); +$lang['Adv_case'][5] = array( /* top_number */ + 'This value is maybe too high for low connections, think about 25-50 depending on your thumbnail sizes.', ); +$lang['Adv_case'][6] = array( /* top_number */ + 'One? It could be too low for random pictures, think about 5-10 depending on your thumbnail sizes.', ); +$lang['Adv_case'][7] = array( /* anti-flood_time */ + 'For normal flow processing, your value is probably too high. Reasonable value is 60 (default).' , ); +$lang['Adv_case'][8] = array( /* calendar_datefield */ + 'Authorized values are ' . "'date_creation' or 'date_available'" . ', otherwise you can get unpredictable results.' , ); +$lang['Adv_case'][9] = array( /* calendar_datefield */ + "'date_creation'" . ' is NOT filled by any activated use metadata mapping fields.', + 'So activate metadata usage <strong>or</strong> change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ <strong>local.inc.php</strong>', + 'See our wiki configuration page for more information about ./include/config_<strong>local.inc.php</strong>.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_iptc and <strong>use</strong>_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, <strong>show</strong>_iptc_mapping and <strong>use</strong>_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between <strong>show</strong>_exif and <strong>use</strong>_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?>
\ No newline at end of file diff --git a/plugins/admin_advices/main.inc.php b/plugins/admin_advices/main.inc.php index fe87cc723..b54f77751 100644 --- a/plugins/admin_advices/main.inc.php +++ b/plugins/admin_advices/main.inc.php @@ -29,99 +29,8 @@ Plugin URI: http://piwigo.org Author: Piwigo team Author URI: http://piwigo.org */ +if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); -add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' ); - -// Add a XHTML tag in HEAD section -function set_admin_advice_add_css() -{ - global $template, $page; - if ( isset($page['body_id']) and $page['body_id']=='theAdminPage' - and $page['page'] == 'intro' - ) - {// This Plugin works only on the Admin page - $template->append( - 'head_elements', - '<link rel="stylesheet" type="text/css" ' - . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">' - ); - add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); - } -} - -// Build an advice on the Admin Intro page -function set_admin_advice() -{ - global $page, $user, $template, $conf; - -// Setup Advice Language (Maybe there is already a variable) - $advlang = ( isset($user['language']) ) ? - $user['language'] : get_default_language(); // en_UK - $my_path = dirname(__FILE__).'/'; - $adv = array(); - if ( !@file_exists($my_path."$advlang/lang.adv.php") ) - { - $advlang = 'en_UK'; - } -// Include language advices - @include_once( $my_path."$advlang/lang.adv.php" ); - -// If there is an advice - if ( $cond ) - { - $template->set_filenames(array( - 'admin_advice' => $my_path.'admin_advices.tpl') - ); - -// Random Thumbnail - $query = ' -SELECT * -FROM '.IMAGES_TABLE.' -ORDER BY RAND(NOW()) -LIMIT 0, 1 -;'; - $result = pwg_query($query); - $row = mysql_fetch_assoc($result); - if ( is_array($row) ) - { - $url_modify = get_root_url().'admin.php?page=picture_modify' - .'&image_id='.$row['id']; - $query = ' -SELECT * FROM '.IMAGE_TAG_TABLE.' -WHERE image_id = ' . $row['id'] .' -;'; - $tag_count = mysql_num_rows(mysql_query($query)); - $template->assign('thumbnail', - array( - 'IMAGE' => get_thumbnail_url($row), - 'IMAGE_ALT' => $row['file'], - 'IMAGE_TITLE' => $row['name'], - 'METADATA' => (empty($row['date_metadata_update'])) ? - 'un' : '', - 'NAME' => (empty($row['name'])) ? - 'un' : '', - 'COMMENT' => (empty($row['comment'])) ? - 'un' : '', - 'AUTHOR' => (empty($row['author'])) ? - 'un' : '', - 'CREATE_DATE' => (empty($row['date_creation'])) ? - 'un' : '', - 'TAGS' => ($tag_count == 0) ? - 'un' : '', - 'NUM_TAGS' => $tag_count, - 'U_MODIFY' => $url_modify, - ) - ); - } - $advice_text = array_shift($adv); - $template->assign( - array( - 'ADVICE_ABOUT' => '$conf[' . "'$confk'] ", - 'ADVICE_TEXT' => $advice_text, - ) - ); - $template->assign('More', $adv ); - $template->pparse('admin_advice'); - } -} +if (script_basename() == 'admin' and defined('IN_ADMIN') and IN_ADMIN) + include_once(dirname(__FILE__).'/admin_advices.php'); ?> diff --git a/template/yoga/admin.tpl b/template/yoga/admin.tpl deleted file mode 100644 index 0fd142357..000000000 --- a/template/yoga/admin.tpl +++ /dev/null @@ -1,103 +0,0 @@ -{* $Id$ *} -<div id="post-header"></div> -<div id="menubar"> - <dl class="topmenu"> - <dt class="rdion">{'Links'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_RETURN}">{'home'|@translate}</a></li> - <li><a href="{$U_FAQ}">{'instructions'|@translate}</a></li> - <li><a href="{$U_ADMIN}" title="{'hint_admin'|@translate}">{'admin'|@translate}</a></li> - </ul> - </dd> - </dl> - <dl> - <dt class="rdion">{'config'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_CONFIG_GENERAL}">{'conf_general'|@translate}</a></li> - <li><a href="{$U_CONFIG_DISPLAY}">{'conf_display'|@translate}</a></li> - </ul> - </dd> - </dl> - <dl> - <dt class="rdion">{'Categories'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_SITE_MANAGER}">{'Site manager'|@translate}</a></li> - <li><a href="{$U_CAT_UPDATE}">{'update'|@translate}</a><br /> </li> - <li><a href="{$U_CATEGORIES}">{'manage'|@translate}</a></li> - <li><a href="{$U_MOVE}">{'Move'|@translate}</a></li> - <li><a href="{$U_CAT_OPTIONS}">{'cat_options_title'|@translate}</a></li> - <li><a href="{$U_PERMALINKS}">{'Permalinks'|@translate}</a></li> - </ul> - </dd> - </dl> - <dl> - <dt class="rdion">{'Pictures'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_WAITING}">{'waiting'|@translate}</a></li> - <li><a href="{$U_THUMBNAILS}">{'thumbnails'|@translate}</a></li> - <li><a href="{$U_RATING}">{'Rating'|@translate}</a></li> - <li><a href="{$U_TAGS}">{'Tags'|@translate}</a></li> - <li><a href="{$U_CADDIE}">{'Caddie'|@translate}</a></li> - </ul> - </dd> - </dl> - <dl> - <dt class="rdion">{'identification'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_USERS}">{'users'|@translate}</a></li> - <li><a href="{$U_GROUPS}">{'groups'|@translate}</a></li> - <li><a href="{$U_NOTIFICATION_BY_MAIL}">{'nbm_item_notification'|@translate}</a></li> - </ul> - </dd> - </dl> - <dl> - <dt class="rdion">{'special_admin_menu'|@translate}</dt> - <dd> - <ul> - <li><a href="{$U_HISTORY_STAT}">{'History'|@translate}</a></li> - <li><a href="{$U_MAINTENANCE}">{'Maintenance'|@translate}</a></li> - <li><a href="{$U_ADVANCED_FEATURE}">{'Advanced_features'|@translate}</a></li> - {if isset($U_WS_CHECKER) } - <li><a href="{$U_WS_CHECKER}">{'web_services'|@translate}</a></li> - {/if} - <li> - {'Plugins'|@translate} - <ul> -{foreach from=$plugin_menu_items item=menu_item} - <li><a href="{$menu_item.URL}">{$menu_item.NAME}</a></li> -{/foreach} - </ul> - </li> - </ul> - </dd> - </dl> -</div> <!-- menubar --> - -<div id="content" class="content"> - {if isset($errors)} - <div class="errors"> - <ul> - {foreach from=$errors item=error} - <li>{$error}</li> - {/foreach} - </ul> - </div> - {/if} - - {if isset($infos)} - <div class="infos"> - <ul> - {foreach from=$infos item=info} - <li>{$info}</li> - {/foreach} - </ul> - </div> - {/if} - - {$ADMIN_CONTENT} -</div> diff --git a/template/yoga/admin/advanced_feature.tpl b/template/yoga/admin/advanced_feature.tpl deleted file mode 100644 index 128428ba1..000000000 --- a/template/yoga/admin/advanced_feature.tpl +++ /dev/null @@ -1,13 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Advanced_features'|@translate}</h2> -</div> - -<ul> - {foreach from=$advanced_features item=feature} - <li><a href="{$feature.URL}" {$TAG_INPUT_ENABLED}>{$feature.CAPTION}</a></li> - {/foreach} -</ul> diff --git a/template/yoga/admin/cat_list.tpl b/template/yoga/admin/cat_list.tpl deleted file mode 100644 index b408a5a50..000000000 --- a/template/yoga/admin/cat_list.tpl +++ /dev/null @@ -1,65 +0,0 @@ -{* $Id$ *} -<h2>{'title_categories'|@translate}</h2> - -<h3>{$CATEGORIES_NAV}</h3> - -<form id="addVirtual" action="{$F_ACTION}" method="post"> - <p> - {'cat_add'|@translate} : <input type="text" name="virtual_name" /> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} /> - {if count($categories)>9 } - <a href="#EoP" class="button"><img src="{$themeconf.icon_dir}/page_end.png" class="button" alt="page_end" /></a> - {/if} - </p> -</form> - -{if count($categories) } -<form id="categoryOrdering" action="{$F_ACTION}" method="post"> - <p> - <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} /> - <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} /> - </p> - <ul class="categoryUl"> - - {foreach from=$categories item=category} - <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}"> - <!-- category {$category.ID} --> - <ul class="categoryActions"> - <li><a href="{$category.U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li> - <li><a href="{$category.U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li> - {if isset($category.U_MANAGE_ELEMENTS) } - <li><a href="{$category.U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li> - {/if} - <li><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li> - {if isset($category.U_MANAGE_PERMISSIONS) } - <li><a href="{$category.U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li> - {/if} - {if isset($category.U_DELETE) } - <li><a href="{$category.U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li> - {/if} - </ul> - - <p> - <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}">{$category.NAME}</a></strong> - {if $category.IS_VIRTUAL} - <img src="{$themeconf.icon_dir}/virt_category.png" class="button" alt="{'virtual_category'|@translate}" /> - {/if} - </p> - - <p> - <label> - {'Position'|@translate} : - <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}" /> - </label> - </p> - - </li> - {/foreach} - </ul> - <p> - <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} /> - <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} /> - </p> - -</form> -{/if} diff --git a/template/yoga/admin/cat_modify.tpl b/template/yoga/admin/cat_modify.tpl deleted file mode 100644 index 88e07e329..000000000 --- a/template/yoga/admin/cat_modify.tpl +++ /dev/null @@ -1,229 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_edit_cat'|@translate}</h2> -</div> - -<h3>{$CATEGORIES_NAV}</h3> - -<ul class="categoryActions"> - <li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li> - {if isset($U_MANAGE_ELEMENTS) } - <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li> - {/if} - <li><a href="{$U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li> - {if isset($U_MANAGE_PERMISSIONS) } - <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li> - {/if} - {if isset($U_DELETE) } - <li><a href="{$U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li> - {/if} -</ul> - -<form action="{$F_ACTION}" method="POST" id="catModify"> - -<fieldset> - <legend>{'Informations'|@translate}</legend> - <table> - - {if isset($CAT_FULL_DIR) } - <tr> - <td><strong>{'storage'|@translate}</strong></td> - <td class="row1">{$CAT_FULL_DIR}</td> - </tr> - {/if} - - <tr> - <td><strong>{'name'|@translate}</strong></td> - <td> - <input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/> - </td> - </tr> - <tr> - <td><strong>{'description'|@translate}</strong></td> - <td> - <textarea cols="50" rows="5" name="comment" class="description">{$CAT_COMMENT}</textarea> - </td> - </tr> - </table> -</fieldset> - -{if isset($move_cat_options) } -<fieldset id="move"> - <legend>{'Move'|@translate}</legend> - {'Parent category'|@translate} - <select class="categoryDropDown" name="parent"> - <option value="0">------------</option> - {html_options options=$move_cat_options selected=$move_cat_options_selected } - </select> -</fieldset> -{/if} - -<fieldset id="options"> - <legend>{'Options'|@translate}</legend> - <table> - <tr> - <td><strong>{'conf_access'|@translate}</strong> - <td> - {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS} - </td> - </tr> - <tr> - <td><strong>{'lock'|@translate}</strong> - <td> - {html_radios name='visible' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE} - </td> - </tr> - <tr> - <td><strong>{'comments'|@translate}</strong> - <td> - {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE} - </td> - </tr> - {if isset($SHOW_UPLOADABLE) } - <tr> - <td><strong>{'editcat_uploadable'|@translate}</strong> - <td> - {html_radios name='uploadable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_UPLOADABLE} - </td> - </tr> - {/if} - </table> -</fieldset> - -<fieldset id="image_order"> - <legend>{'Sort order'|@translate}</legend> - <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} /> - <label for="image_order_default">{'Use default sort order'|@translate}</label> - <br/> - <input type="checkbox" name="image_order_subcats" id="image_order_subcats" /> - <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label> - <br/> - - {foreach from=$image_orders item=order} - <select name="order_field_{$order.ID}"> - {html_options options=$image_order_field_options selected=$order.FIELD }} - </select> - <select name="order_direction_{$order.ID}"> - {html_options options=$image_order_direction_options selected=$order.DIRECTION }} - </select><br/> - {/foreach} - -</fieldset> - -<p style="text-align:center;"> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> -</p> - -{if isset($representant) } -<fieldset id="representant"> - <legend>{'Representant'|@translate}</legend> - <table> - <tr> - <td align="center"> - {if isset($representant.picture) } - <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a> - {else} - <img src="{$ROOT_URL}{$themeconf.icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" /> - {/if} - </td> - <td> - {if $representant.ALLOW_SET_RANDOM } - <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p> - {/if} - - {if isset($representant.ALLOW_DELETE) } - <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p> - {/if} - </td> - </tr> - </table> -</fieldset> -{/if} - -</form> - -<form action="{$F_ACTION}" method="POST" id="links"> - -<fieldset id="linkAllNew"> - <legend>{'Link all category elements to a new category'|@translate}</legend> - - <table> - <tr> - <td>{'Virtual category name'|@translate}</td> - <td><input type="text" name="virtual_name"></td> - </tr> - - <tr> - <td>{'Parent category'|@translate}</td> - <td> - <select class="categoryDropDown" name="parent"> - <option value="0">------------</option> - {html_options options=$create_new_parent_options } - </select> - </td> - </tr> - </table> - - <p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> - </p> - -</fieldset> - -<fieldset id="linkAllExist"> - <legend>{'Link all category elements to some existing categories'|@translate}</legend> - - <table> - <tr> - <td>{'Categories'|@translate}</td> - <td> - <select class="categoryList" name="destinations[]" multiple="multiple" size="5"> - {html_options options=$category_destination_options } - </select> - </td> - </tr> - </table> - - <p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> - </p> - -</fieldset> - -{if isset($group_mail_options)} -<fieldset id="emailCatInfo"> - <legend>{'Send an information email to group members'|@translate}</legend> - - <table> - <tr> - <td><strong>{'Group'|@translate}</strong></td> - <td> - <select name="group"> - {html_options options=$group_mail_options} - </select> - </td> - </tr> - <tr> - <td><strong>{'mail_content'|@translate}</strong></td> - <td> - <textarea cols="50" rows="5" name="mail_content" class="description">{$MAIL_CONTENT}</textarea> - </td> - </tr> - - </table> - - <p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> - </p> - -</fieldset> -{/if} - -</form> diff --git a/template/yoga/admin/cat_move.tpl b/template/yoga/admin/cat_move.tpl deleted file mode 100644 index 318a025ab..000000000 --- a/template/yoga/admin/cat_move.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{* $Id$ *} - -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Move categories'|@translate}</h2> -</div> - -<form method="post" action="{$F_ACTION}" class="filter" id="catMove"> - <fieldset> - <legend>{'Virtual categories movement'|@translate}</legend> - - <label> - {'Virtual categories to move'|@translate} - - <select class="categoryList" name="selection[]" multiple="multiple"> - {html_options options=$category_to_move_options} - </select> - </label> - - <label> - {'New parent category'|@translate} - - <select class="categoryDropDown" name="parent"> - <option value="0">------------</option> - {html_options options=$category_parent_options} - </select> - </label> - - </fieldset> - - <p> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> - <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> - </p> - -</form> diff --git a/template/yoga/admin/cat_options.tpl b/template/yoga/admin/cat_options.tpl deleted file mode 100644 index e6186d551..000000000 --- a/template/yoga/admin/cat_options.tpl +++ /dev/null @@ -1,16 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - {$TABSHEET} - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'cat_options_title'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<form method="post" action="{$F_ACTION}" id="cat_options"> - <fieldset> - <legend>{$L_SECTION}</legend> - {$DOUBLE_SELECT} - </fieldset> -</form> - diff --git a/template/yoga/admin/cat_perm.tpl b/template/yoga/admin/cat_perm.tpl deleted file mode 100644 index 857448112..000000000 --- a/template/yoga/admin/cat_perm.tpl +++ /dev/null @@ -1,68 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Manage permissions for a category'|@translate}</h2> -</div> - -<h3>{$CATEGORIES_NAV}</h3> - -<form action="{$F_ACTION}" method="post" id="categoryPermissions"> - - <h4>{'Groups'|@translate}</h4> - - <fieldset> - <legend>{'Permission granted'|@translate}</legend> - <ul> - {foreach from=$group_granted_ids item=id} - <li><label><input type="checkbox" name="deny_groups[]" value="{$id}" /> {$all_groups[$id]}</label></li> - {/foreach} - </ul> - <input class="submit" type="submit" name="deny_groups_submit" value="{'Deny selected groups'|@translate}" {$TAG_INPUT_ENABLED}/> - </fieldset> - - <fieldset> - <legend>{'Permission denied'|@translate}</legend> - <ul> - {foreach from=$group_denied_ids item=id} - <li><label><input type="checkbox" name="grant_groups[]" value="{$id}"> {$all_groups[$id]}</label></li> - {/foreach} - </ul> - <input class="submit" type="submit" name="grant_groups_submit" value="{'Grant selected groups'|@translate}" {$TAG_INPUT_ENABLED}/> - </fieldset> - - <h4>{'Users'|@translate}</h4> - - <fieldset> - <legend>{'Permission granted'|@translate}</legend> - <ul> - {foreach from=$user_granted_direct_ids item=id} - <li><label><input type="checkbox" name="deny_users[]" value="{$id}" /> {$all_users[$id]}</label></li> - {/foreach} - </ul> - <input class="submit" type="submit" name="deny_users_submit" value="{'Deny selected users'|@translate}" {$TAG_INPUT_ENABLED}/> - </fieldset> - - <fieldset> - <legend>{'Permission granted thanks to a group'|@translate}</legend> - {if isset($user_granted_indirects) } - <ul> - {foreach from=$user_granted_indirects item=user_group} - <li>{$user_group.USER} ({$user_group.GROUP})</li> - {/foreach} - </ul> - {/if} - </fieldset> - - <fieldset> - <legend>{'Permission denied'|@translate}</legend> - <ul> - {foreach from=$user_denied_ids item=id} - <li><label><input type="checkbox" name="grant_users[]" value="{$id}"> {$all_users[$id]}</label></li> - {/foreach} - </ul> - <input class="submit" type="submit" name="grant_users_submit" value="{'Grant selected users'|@translate}" {$TAG_INPUT_ENABLED}/> - </fieldset> - -</form> diff --git a/template/yoga/admin/check_integrity.tpl b/template/yoga/admin/check_integrity.tpl deleted file mode 100644 index 1783e69e2..000000000 --- a/template/yoga/admin/check_integrity.tpl +++ /dev/null @@ -1,84 +0,0 @@ -{* $Id$ *} -<dl> - <dt>{'c13y_title'|@translate}</dt> - <dd> - <ul> - <form method="post" name="c13y" id="c13y" action="{$F_C13Y_ACTION}"> - <fieldset> - <table class="table2"> - <tr class="throw"> - <th></th> - <th>{'c13y_Anomaly'|@translate}</th> - <th>{'c13y_Correction'|@translate}</th> - </tr> - {if isset($c13y_list)} - {foreach from=$c13y_list item=c13y name=c13y_loop} - <tr class="{if $smarty.foreach.c13y_loop.index is odd}row1{else}row2{/if}"> - <td> - {if $c13y.can_select} - <input type="checkbox" name="c13y_selection[]" value="{$c13y.id}" id="c13y_selection-{$c13y.id}" /><label for="c13y_selection-{$c13y.id}"></label> - {/if} - </td> - <td><label for="c13y_selection-{$c13y.id}">{$c13y.anomaly}</label></td> - <td> - <label for="c13y_selection-{$c13y.id}"> - {if $c13y.show_ignore_msg} - {'c13y_ignore_msg1'|@translate} - <br /> - {'c13y_ignore_msg2'|@translate} - {/if} - {if $c13y.show_correction_fct} - {'c13y_Automatic_correction'|@translate} - {/if} - {if $c13y.show_correction_bad_fct} - {'c13y_Impossible_automatic_correction'|@translate} - {/if} - {if $c13y.show_correction_success_fct} - {'c13y_Correction_applied_success'|@translate} - {/if} - {if !empty($c13y.correction_error_fct)} - {'c13y_Correction_applied_error'|@translate} - <br /> - {$c13y.c13y.correction_error_fct} - {/if} - {if !empty($c13y.correction_msg)} - {if $c13y.show_correction_success_fct or !empty($c13y.correction_error_fct) or $c13y.show_correction_fct or $c13y.show_correction_bad_fct } - <br /> - {/if} - {$c13y.correction_msg|@nl2br} - {/if} - </label> - </td> - </tr> - {/foreach} - {/if} - </table> - - <p> - {if $c13y_show_submit_ignore} - <a href="#" onclick="SelectAll(document.getElementById('c13y')); return false;">{'Check all'|@translate}</a> - / <a href="#" onclick="DeselectAll(document.getElementById('c13y')); return false;">{'Uncheck all'|@translate}</a> - {/if} - {if isset($c13y_do_check)} - / <a href="#" onclick="DeselectAll(document.getElementById('c13y')); - {foreach from=$c13y_do_check item=ID} - document.getElementById('c13y_selection-{$ID}').checked = true; - {/foreach} - return false;">{'c13y_check_auto'|@translate}</a> - {/if} - </p> - - <p> - {if $c13y_show_submit_automatic_correction} - <input class="submit" type="submit" value="{'c13y_submit_correction'|@translate}" name="c13y_submit_correction" {$TAG_INPUT_ENABLED} /> - {/if} - {if $c13y_show_submit_ignore} - <input class="submit" type="submit" value="{'c13y_submit_ignore'|@translate}" name="c13y_submit_ignore" {$TAG_INPUT_ENABLED} /> - {/if} - <input class="submit" type="submit" value="{'c13y_submit_refresh'|@translate}" name="c13y_submit_refresh" /> - </p> - - </fieldset> - </form> - </ul> - </dd> diff --git a/template/yoga/admin/comments.tpl b/template/yoga/admin/comments.tpl deleted file mode 100644 index 1c7df910e..000000000 --- a/template/yoga/admin/comments.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - {$TABSHEET} - <h2>{'waiting'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<h3>{'User comments validation'|@translate}</h3> - -{if !empty($comments) } -<form method="post" action="{$F_ACTION}"> - - {foreach from=$comments item=comment} - <div class="comment"> - <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" /></a> - <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p> - <blockquote>{$comment.CONTENT}</blockquote> - <ul class="actions"> - <li><label><input type="radio" name="action-{$comment.ID}" value="reject" />{'Reject'|@translate}</label></li> - <li><label><input type="radio" name="action-{$comment.ID}" value="validate" />{'Validate'|@translate}</label></li> - </ul> - </div> - {/foreach} - - <p class="bottomButtons"> - <input type="hidden" name="list" value="{$LIST}" /> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="submit" name="validate-all" value="{'Validate All'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="submit" name="reject-all" value="{'Reject All'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" /> - </p> - -</form> -{/if}
\ No newline at end of file diff --git a/template/yoga/admin/configuration.tpl b/template/yoga/admin/configuration.tpl deleted file mode 100644 index ec5695f5a..000000000 --- a/template/yoga/admin/configuration.tpl +++ /dev/null @@ -1,179 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - {$TABSHEET} - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<form method="post" action="{$F_ACTION}" class="properties"> - -{if isset($main)} -<fieldset id="mainConf"> - <ul> - <li> - <span class="property"> - <label for="gallery_title">{'Gallery title'|@translate}</label> - </span> - <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}" /> - </li> - - <li> - <span class="property"> - <label for="page_banner">{'Page banner'|@translate}</label> - </span> - <textarea class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> - </li> - - <li> - <span class="property"> - <label for="gallery_url">{'Gallery URL'|@translate}</label> - </span> - <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}" /> - </li> - </ul> -</fieldset> - -<fieldset id="mainConfCheck"> - <ul> - - <li> - <label> - <span class="property">{'Lock gallery'|@translate}</span> - <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'Rating'|@translate}</span> - <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'Rating by guests'|@translate}</span> - <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'Allow user registration'|@translate}</span> - <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'obligatory_user_mail_address'|@translate}</span> - <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'Email administrators when a new user registers'|@translate}</span> - <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if} /> - </label> - </li> - </ul> -</fieldset> -{/if} - -{if isset($history)} -<fieldset id="historyConf"> - <ul> - <li> - <label><span class="property">{'conf_history_guest'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if} /></label> - </li> - - <li> - <label><span class="property">{'conf_history_user'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if} /></label> - </li> - - <li> - <label><span class="property">{'conf_history_admin'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if} /></label> - </li> - </ul> -</fieldset> -{/if} - - -{if isset($comments)} -<fieldset id="commentsConf"> - <ul> - <li> - <label> - <span class="property">{'Comments for all'|@translate}</span> - <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if} /> - </label> - </li> - - <li> - <span class="property"> - <label for="nb_comment_page">{'Number of comments per page'|@translate}</label> - </span> - <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}" /> - </li> - - <li> - <label> - <span class="property">{'Validation'|@translate}</span> - <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if} /> - </label> - </li> - - - <li> - <label> - <span class="property">{'Email administrators when a valid comment is entered'|@translate}</span> - <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if} /> - </label> - </li> - - <li> - <label> - <span class="property">{'Email administrators when a comment requires validation'|@translate}</span> - <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if} /> - </label> - </li> - - </ul> -</fieldset> -{/if} - -{if isset($upload)} -<fieldset id="uploadConf"> - <ul> - <li> - <label><span class="property">{'Show upload link every time'|@translate}</span> - <input type="checkbox" name="upload_link_everytime" {if ($upload.upload_link_everytime)}checked="checked"{/if} /></label> - </li> - <li> - <label><span class="property">{'User access level to upload'|@translate}</span> - {html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected} - </li> - <li> - <label> - <span class="property">{'Email administrators when a picture is uploaded'|@translate}</span> - <input type="checkbox" name="email_admin_on_picture_uploaded" {if ($upload.email_admin_on_picture_uploaded)}checked="checked"{/if} /> - </label> - </li> - </ul> -</fieldset> -{/if} - -{if isset($default)} -{$PROFILE_CONTENT} -{/if} - -{if !isset($default)} - <p> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> - <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> - </p> -{/if} -</form> diff --git a/template/yoga/admin/default-layout.css b/template/yoga/admin/default-layout.css deleted file mode 100644 index b1d976f2d..000000000 --- a/template/yoga/admin/default-layout.css +++ /dev/null @@ -1,241 +0,0 @@ -/* $Id: */ -/* History tables */ -TABLE.table2 { - border: 1px solid black; - margin: 1em auto; - padding: 0; -} - -TABLE.table2 TD, TABLE.table2 TH { - padding: 0 0.8em; -} - -TABLE.table2 TR { - text-align: left; -} - -TABLE.table2 TR.throw { - text-align: center; -} - -.hour { - white-space: pre; -} - -.number { - text-align: right; -} - -TABLE#dailyStats { - width: 60%; -} - -TABLE#detailedStats { - width: 99%; -} - -/* categoryOrdering */ -SELECT.categoryList { - width: 100%; -} - -FORM#categoryOrdering { - padding-left: 1em; /* same as FIELDSET margin (there is no fieldset in this form) */ - padding-right: 1em; /* same as FIELDSET margin (there is no fieldset in this form) */ -} -FORM#categoryOrdering p { - text-align: left; - margin-top: 1em; - margin-bottom: 1em; -} -UL.categoryUl { - list-style: none; - padding: 0; - margin: 0; -} - -LI.categoryLi { - border: 1px solid gray; - padding: 0px 5px; - margin-bottom: 5px; -} - -FORM#categoryOrdering UL.categoryActions { - float: right; - margin-top: 5px; -} -/* */ - -FORM#catModify TABLE { width: auto; } - -FIELDSET.elementEdit A { - display: block; - float: right; -} - -TABLE.doubleSelect { - text-align: center; - margin: 0 auto; - width: 100%; -} - -TABLE.doubleSelect TD { - padding: 0 5px; - width: 50%; -} - -TABLE.doubleSelect SELECT.categoryList { - width: 100%; -} - -FORM#categoryPermissions LI { - display:inline; - white-space: nowrap; -} - -FIELDSET#mainConfCheck SPAN.property, -FIELDSET#historyConf SPAN.property, -FIELDSET#commentsConf SPAN.property, -FIELDSET#uploadConf SPAN.property { - float: right; - text-align: left; -} -FIELDSET#mainConfCheck INPUT, -FIELDSET#historyConf INPUT, -FIELDSET#commentsConf INPUT, -FIELDSET#uploadConf INPUT { - float: none; -} - -FIELDSET#mainConf SPAN.property { - width: 25%; -} -FIELDSET#mainConf TEXTAREA.description { - width: 70%; -} - -FIELDSET#mainConfCheck SPAN.property, -FIELDSET#historyConf SPAN.property { - width: 90%; -} -FIELDSET#mainConfCheck INPUT, -FIELDSET#historyConf INPUT, -FIELDSET#commentsConf INPUT, -FIELDSET#uploadConf SELECT, -FIELDSET#uploadConf INPUT { - margin-left: 5%; -} - -FIELDSET#commentsConf SPAN.property { - width: 85%; -} - -FIELDSET#uploadConf SPAN.property { - width: 75%; -} - -/* PWG Links Menu is fixed Graphic charts */ -.pwgmenu { - display: table; - list-style-type: none; - list-style-image: none; /* for firefox */ - white-space: nowrap; - position: relative; - text-decoration : none; - font-family: verdana, arial, helvetica, sans-serif; - font-size: 70%; - line-height: 1.1em; - width: 66em; - margin: 1px 8px 1px auto; - padding: 3px; - background: transparent; -} -.pwgmenu li { - float: left; - width: 10em !important; - text-align: center; - margin: 0 6px; - padding: 0; - -} -.pwgmenu a { - width: 9em !important; - display: block; - padding: 4px 8px; - background: #69c; /* PWG Graphic charts */ - color: white; - text-align: center; - text-decoration: none; - font-weight: bold; - border: 1px solid #fff; /* Why bordered? in case of #69c background */ -} -.pwgmenu a:hover { - background: #f92; - color: white; -} /* PWG Graphic charts */ - - -.statBar { - height: 10px; - background-color: #66f; - border: 1px solid black; -} - -/* Tabsheet */ -UL.tabsheet { - list-style: none; - white-space: nowrap; - text-decoration: none; - border-bottom: 1px solid #fff; - margin-left: 5px; margin-right: 5px; - padding: 3px 5px; -} - -UL.tabsheet LI { - display: inline; - margin: 0px 6px; - font-size: 120%; - font-weight: normal; - border: 1px solid #fff; - border-bottom: none; - padding: 3px 2em; -} - -UL.tabsheet LI.selected_tab { - font-weight: bold; - position: relative; - top: 1px; - padding-top: 4px; -} - -.over{ -position: relative; -z-index: 0; -} - -.over:hover{ -background-color: transparent; -z-index: 50; -} - -.over span{ /*CSS for enlarged image*/ -position: absolute; -background-color: #eee; -padding: 5px; -left: -1000px; -border: 1px solid #69c; -visibility: hidden; -color: black; -text-decoration: none; -} - -.over span img{ /*CSS for enlarged image*/ -border-width: 0; -padding: 2px; -} - -.over:hover span{ /*CSS for enlarged image on hover*/ -visibility: visible; -top: 0; -left: 60px; /*position where enlarged image should offset horizontally */ -} diff --git a/template/yoga/admin/double_select.tpl b/template/yoga/admin/double_select.tpl deleted file mode 100644 index aeed8500a..000000000 --- a/template/yoga/admin/double_select.tpl +++ /dev/null @@ -1,20 +0,0 @@ -{* $Id$ *} -<table class="doubleSelect"> - <tr> - <td> - <h3>{$L_CAT_OPTIONS_TRUE}</h3> - <select class="categoryList" name="cat_true[]" multiple="multiple" size="30"> - {html_options options=$category_option_true selected=$category_option_true_selected} - </select> - <p><input class="submit" type="submit" value="»" name="falsify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - - <td> - <h3>{$L_CAT_OPTIONS_FALSE}</h3> - <select class="categoryList" name="cat_false[]" multiple="multiple" size="30"> - {html_options options=$category_option_false selected=$category_option_false_selected} - </select> - <p><input class="submit" type="submit" value="«" name="trueify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - </tr> -</table> diff --git a/template/yoga/admin/element_set_global.tpl b/template/yoga/admin/element_set_global.tpl deleted file mode 100644 index fc5a92e70..000000000 --- a/template/yoga/admin/element_set_global.tpl +++ /dev/null @@ -1,190 +0,0 @@ -{* $Id$ *} - -<h2>{'Batch management'|@translate}</h2> - -<h3>{$CATEGORIES_NAV}</h3> - -{if !empty($thumbnails)} - <p style="text-align:center;"> - {'global mode'|@translate} - | <a href="{$U_UNIT_MODE}">{'unit mode'|@translate}</a> - </p> - - <fieldset> - - <legend>{'Display options'|@translate}</legend> - - <p>{'elements per page'|@translate}: - <a href="{$U_DISPLAY}&display=20">20</a> - | <a href="{$U_DISPLAY}&display=50">50</a> - | <a href="{$U_DISPLAY}&display=100">100</a> - | <a href="{$U_DISPLAY}&display=all">{'all'|@translate}</a> - </p> - - </fieldset> - - <form action="{$F_ACTION}" method="post"> - - <fieldset> - - <legend>{'Elements'|@translate}</legend> - - {if !empty($NAV_BAR)}<div class="navigationBar">{$NAV_BAR}</div>{/if} - - {if !empty($thumbnails)} - <ul class="thumbnails"> - {foreach from=$thumbnails item=thumbnail} - <li><span class="wrap1"> - <label> - <span class="wrap2"> - {if $thumbnail.LEVEL > 0} - <em class="levelIndicatorB">{$thumbnail.LEVEL}</em> - <em class="levelIndicatorF" title="{$pwg->l10n($pwg->sprintf('Level %d',$thumbnail.LEVEL))}">{$thumbnail.LEVEL}</em> - {/if} - <span> - <img src="{$thumbnail.TN_SRC}" - alt="{$thumbnail.FILE}" - title="{$thumbnail.TITLE}" - class="thumbnail" /> - </span></span> - <input type="checkbox" name="selection[]" value="{$thumbnail.ID}" /> - </label> - </span> - </li> - {/foreach} - </ul> - {/if} - - </fieldset> - - <fieldset> - - <legend>{'Form'|@translate}</legend> - - <table> - - <tr> - <td>{'associate to category'|@translate}</td> - <td> - <select style="width:400px" name="associate" size="1"> - <option value="0">------------</option> - {html_options options=$associate_options } - </select> - </td> - </tr> - - <tr> - <td>{'dissociate from category'|@translate}</td> - <td> - <select style="width:400px" name="dissociate" size="1"> - <option value="0">------------</option> - {if !empty($dissociate_options)}{html_options options=$dissociate_options }{/if} - </select> - </td> - </tr> - - <tr> - <td>{'add tags'|@translate}</td> - <td>{if !empty($ADD_TAG_SELECTION)}{$ADD_TAG_SELECTION}{else}<p>{'No tag defined. Use Administration>Pictures>Tags'|@translate}</p>{/if}</td> - </tr> - - {if !empty($DEL_TAG_SELECTION)} - <tr> - <td>{'remove tags'|@translate}</td> - <td>{$DEL_TAG_SELECTION}</td> - </tr> - {/if} - - <tr> - <td>{'Author'|@translate}</td> - <td> - <label><input type="radio" name="author_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="author_action" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="author_action" value="set" id="author_action_set" /> {'set to'|@translate}</label> - <input onchange="document.getElementById('author_action_set').checked = true;" type="text" name="author" value="" /> - </td> - </tr> - - <tr> - <td>{'title'|@translate}</td> - <td> - <label><input type="radio" name="name_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="name_action" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="name_action" value="set" id="name_action_set" /> {'set to'|@translate}</label> - <input onchange="document.getElementById('name_action_set').checked = true;" type="text" name="name" value="" /> - </td> - </tr> - - <tr> - <td>{'Creation date'|@translate}</td> - <td> - <label><input type="radio" name="date_creation_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="date_creation_action" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="date_creation_action" value="set" id="date_creation_action_set" /> {'set to'|@translate}</label> - <select onchange="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day"> - <option value="0">--</option> - {section name=day start=1 loop=32} - <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> - {/section} - </select> - <select onchange="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_month"> - {html_options options=$month_list selected=$DATE_CREATION_MONTH} - </select> - <input onchange="document.getElementById('date_creation_action_set').checked = true;" - name="date_creation_year" - type="text" - size="4" - maxlength="4" - value="{$DATE_CREATION_YEAR}" /> - </td> - </tr> - - <tr> - <td>{'Minimum privacy level'|@translate}</td> - <td> - <label><input type="radio" name="level_action" value="leave" checked="checked" />{'leave'|@translate}</label> - <label><input type="radio" name="level_action" value="set" id="level_action_set" />{'set to'|@translate}</label> - <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1"> - {html_options options=$level_options} - </select> - </td> - </tr> - - </table> - - <p> - {'target'|@translate} - <label><input type="radio" name="target" value="all" /> {'all'|@translate}</label> - <label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label> - </p> - - - <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/></p> - - </fieldset> - - <fieldset> - - <legend>{'Caddie management'|@translate}</legend> - - <ul style="list-style-type:none;"> - {if ($IN_CADDIE)} - <li><label><input type="radio" name="caddie_action" value="empty_all" /> {'Empty caddie'|@translate}</label></li> - <li><label><input type="radio" name="caddie_action" value="empty_selected" /> {'Take selected elements out of caddie'|@translate}</label></li> - {else} - <li><label><input type="radio" name="caddie_action" value="add_selected" /> {'Add selected elements to caddie'|@translate}</label></li> - {/if} - - <li><label><input type="radio" name="caddie_action" value="export" /> {'Export data'|@translate}</label></li> - - </ul> - - <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit_caddie" /></p> - - </fieldset> - - </form> - -{else} - <div class="infos"><p>{'Caddie is currently empty'|@translate}</p></div> -{/if} diff --git a/template/yoga/admin/element_set_unit.tpl b/template/yoga/admin/element_set_unit.tpl deleted file mode 100644 index 34366fada..000000000 --- a/template/yoga/admin/element_set_unit.tpl +++ /dev/null @@ -1,93 +0,0 @@ -{* $Id$ *} - -<h2>{'Batch management'|@translate}</h2> - -<h3>{$CATEGORIES_NAV}</h3> - -<p style="text-align:center;"> - <a href="{$U_GLOBAL_MODE}">{'global mode'|@translate}</a> - | {'unit mode'|@translate} -</p> - -<form action="{$F_ACTION}" method="POST"> -<fieldset> - <legend>{'Display options'|@translate}</legend> - <p>{'elements per page'|@translate} : - <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> - | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> - | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> - | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> - </p> - -</fieldset> - -{if !empty($NAV_BAR) } -<div class="navigationBar">{$NAV_BAR}</div> -{/if} - -{if !empty($elements) } -<input type="hidden" name="element_ids" value="{$ELEMENT_IDS}" /> -{foreach from=$elements item=element} -<fieldset class="elementEdit"> - <legend>{$element.LEGEND}</legend> - - <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit all picture informations'|@translate}" /></a> - - <table> - - <tr> - <td><strong>{'Name'|@translate}</strong></td> - <td><input type="text" name="name-{$element.ID}" value="{$element.NAME}" /></td> - </tr> - - <tr> - <td><strong>{'Author'|@translate}</strong></td> - <td><input type="text" name="author-{$element.ID}" value="{$element.AUTHOR}" /></td> - </tr> - - <tr> - <td><strong>{'Creation date'|@translate}</strong></td> - <td> - <label><input type="radio" name="date_creation_action-{$element.ID}" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="date_creation_action-{$element.ID}" value="set" id="date_creation_action_set-{$element.ID}" /> {'set to'|@translate}</label> - - <select onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" name="date_creation_day-{$element.ID}"> - <option value="0">--</option> - {section name=day start=1 loop=32} - <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> - {/section} - </select> - <select onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" name="date_creation_month-{$element.ID}"> - {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} - </select> - <input onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" - name="date_creation_year-{$element.ID}" - type="text" - size="4" - maxlength="4" - value="{$element.DATE_CREATION_YEAR}" /> - </td> - </tr> - - <tr> - <td><strong>{'Tags'|@translate}</strong></td> - <td>{$element.TAG_SELECTION}</td> - </tr> - - <tr> - <td><strong>{'Description'|@translate}</strong></td> - <td><textarea name="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td> - </tr> - - </table> - -</fieldset> -{/foreach} - -<p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" /> -</p> -{/if} - -</form> diff --git a/template/yoga/admin/group_list.tpl b/template/yoga/admin/group_list.tpl deleted file mode 100644 index 274445f4b..000000000 --- a/template/yoga/admin/group_list.tpl +++ /dev/null @@ -1,46 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_groups'|@translate}</h2> -</div> - -<form method="post" name="add_user" action="{$F_ADD_ACTION}" class="properties"> - <fieldset> - <legend>{'Add group'|@translate}</legend> - - <span class="property"> - <label for="groupname">{'Group name'|@translate}</label> - </span> - <input type="text" id="groupname" name="groupname" maxlength="50" size="20" /> - - <p> - <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}" {$TAG_INPUT_ENABLED}/> - </p> - </fieldset> -</form> - -<table class="table2"> - <tr class="throw"> - <th>{'Group name'|@translate}</th> - <th>{'Members'|@translate}</th> - <th>{'Actions'|@translate}</th> - </tr> - {if not empty($groups)} - {foreach from=$groups item=group name=group_loop} - <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}"> - <td>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i></td> - <td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td> - <td style="text-align:center;"> - <a href="{$group.U_PERM}"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/permissions.png" class="button" style="border:none" id="btn_permissions" alt="{'permissions'|@translate}" title="{'permissions'|@translate}" /></a> - <a href="{$group.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{'delete'|@translate}" title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}/></a> - <a href="{$group.U_ISDEFAULT}" onclick="return confirm( document.getElementById('btn_toggle_is_default_group').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> - <img src="{$ROOT_URL}{$themeconf.icon_dir}/toggle_is_default_group.png" class="button" style="border:none" id="btn_toggle_is_default_group" alt="{'toggle_is_default_group'|@translate}" title="{'toggle_is_default_group'|@translate}" {$TAG_INPUT_ENABLED}/></a> - </td> - </tr> - {/foreach} - {/if} -</table> diff --git a/template/yoga/admin/group_perm.tpl b/template/yoga/admin/group_perm.tpl deleted file mode 100644 index 1dded1291..000000000 --- a/template/yoga/admin/group_perm.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{* $Id *} -<h2>{$TITLE}</h2> - -<form method="post" action="{$F_ACTION}"> - {$DOUBLE_SELECT} -</form> - -<p>{'Only private categories are listed'|@translate}</p> diff --git a/template/yoga/admin/history.tpl b/template/yoga/admin/history.tpl deleted file mode 100644 index fece092f0..000000000 --- a/template/yoga/admin/history.tpl +++ /dev/null @@ -1,151 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - {$TABSHEET}
- <ul class="categoryActions"> - <li> - <a - href="{$U_HELP}" - onclick="popuphelp(this.href); return false;" - title="{'Help'|@translate}" - > - <img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"> - </a> - </li> - </ul> - <h2>{'History'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<form class="filter" method="post" name="filter" action="{$F_ACTION}"> -<fieldset> - <legend>{'Filter'|@translate}</legend> - <ul> - <li><label>{'search_date_from'|@translate}</label></li> - <li> - <select name="start_day"> - <option value="0">--</option>
- {section name=day start=1 loop=32}
- <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
- {/section}
- </select> - <select name="start_month"> - {html_options options=$month_list selected=$START_MONTH_SELECTED}
- </select> - <input name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" > - </li> - </ul> - <ul> - <li><label>{'search_date_to'|@translate}</label></li> - <li> - <select name="end_day"> - <option value="0">--</option>
- {section name=day start=1 loop=32}
- <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
- {/section}
- </select> - <select name="end_month"> - {html_options options=$month_list selected=$END_MONTH_SELECTED}
- </select> - <input name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" > - </li> - </ul> - - <label> - {'Element type'|@translate} - <select name="types[]" multiple="multiple" size="4"> - {html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected}
- </select> - </label> - - <label> - {'User'|@translate} - <select name="user"> - <option value="-1">------------</option>
- {html_options options=$user_options selected=$user_options_selected}
- </select> - </label> - - <label> - {'Image id'|@translate} - <input name="image_id" value="{$IMAGE_ID}" type="text" size="5"> - </label> - - <label> - {'File name'|@translate} - <input name="filename" value="{$FILENAME}" type="text"> - </label> - - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> -</fieldset> -<fieldset>
- <legend>{'Display'|@translate}</legend>
- <ul>
- <li>
- {'Thumbnails'|@translate}
- <select name="display_thumbnail">
- {html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected}
- </select>
- </li>
- </ul>
-</fieldset>
-</form> -
-{if isset($search_summary)} -<fieldset> - <legend>{'Summary'|@translate}</legend> - - <ul> - <li>{$search_summary.NB_LINES}, {$search_summary.FILESIZE}</li> - <li> - {$search_summary.USERS} - <ul> - <li>{$search_summary.MEMBERS}</li> - <li>{$search_summary.GUESTS}</li> - </ul> - </li> - </ul> -</fieldset> -{/if} - -
-{if !empty($NAV_BAR)}
-<div class="navigationBar">
- {$NAV_BAR}
-</div>
-{/if}
-
- -<table class="table2" id="detailedStats"> -<tr class="throw"> - <th>{'Date'|@translate}</th> - <th>{'time'|@translate}</th> - <th>{'user'|@translate}</th> - <th>{'IP'|@translate}</th> - <th>{'image'|@translate}</th> - <th>{'Element type'|@translate}</th> - <th>{'section'|@translate}</th> - <th>{'category'|@translate}</th> - <th>{'tags'|@translate}</th> -</tr> -{if !empty($search_results) } -{foreach from=$search_results item=detail name=res_loop}
-<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}"> - <td class="hour">{$detail.DATE}</td> - <td class="hour">{$detail.TIME}</td> - <td>{$detail.USER}</td> - <td>{$detail.IP}</td> - <td>{$detail.IMAGE}</td> - <td>{$detail.TYPE}</td> - <td>{$detail.SECTION}</td> - <td>{$detail.CATEGORY}</td> - <td>{$detail.TAGS}</td> -</tr> -{/foreach}
-{/if} -</table> -
-
-{if !empty($NAV_BAR)}
-<div class="navigationBar">
- {$NAV_BAR}
-</div>
-{/if}
diff --git a/template/yoga/admin/intro.tpl b/template/yoga/admin/intro.tpl deleted file mode 100644 index 069940ecf..000000000 --- a/template/yoga/admin/intro.tpl +++ /dev/null @@ -1,46 +0,0 @@ -{* $Id$ *} -<h2>{'title_default'|@translate}</h2> -<dl> - <dt>{'Piwigo version'|@translate}</dt> - <dd> - <ul> - <li>Piwigo {$PWG_VERSION}</li> - <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li> - </ul> - </dd> - - <dt>{'Environment'|@translate}</dt> - <dd> - <ul> - <li>{'Operating system'|@translate}: {$OS}</li> - <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}">{'Show info'|@translate}</a>) [{$PHP_DATATIME}]</li> - <li>MySQL: {$MYSQL_VERSION} [{$DB_DATATIME}]</li> - </ul> - </dd> - - <dt>{'Database'|@translate}</dt> - <dd> - <ul> - <li> - {$DB_ELEMENTS} - {if isset($waiting)} - (<a href="{$waiting.URL}">{$waiting.INFO}</a>) - {/if} - - {if isset($first_added)} - ({$first_added.DB_DATE}) - {/if} - </li> - <li>{$DB_CATEGORIES} ({$DB_IMAGE_CATEGORY})</li> - <li>{$DB_TAGS} ({$DB_IMAGE_TAG})</li> - <li>{$DB_USERS}</li> - <li>{$DB_GROUPS}</li> - <li> - {$DB_COMMENTS} - {if isset($unvalidated)} - (<a href="{$unvalidated.URL}">{$unvalidated.INFO}</a>) - {/if} - </li> - </ul> - </dd> -</dl> diff --git a/template/yoga/admin/maintenance.tpl b/template/yoga/admin/maintenance.tpl deleted file mode 100644 index 59cf4ff82..000000000 --- a/template/yoga/admin/maintenance.tpl +++ /dev/null @@ -1,25 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Maintenance'|@translate}</h2> -</div> - -<ul> - <li><a href="{$U_MAINT_CATEGORIES}" {$TAG_INPUT_ENABLED}>{'update categories informations'|@translate}</a></li> - <li><a href="{$U_MAINT_IMAGES}" {$TAG_INPUT_ENABLED}>{'update images informations'|@translate}</a></li> - <li><a href="{$U_MAINT_DATABASE}" {$TAG_INPUT_ENABLED}>{'repair and optimize database'|@translate}</a></li> -</ul> - -<ul> - <li><a href="{$U_MAINT_HISTORY_DETAIL}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'purge history detail'|@translate}</a></li> - <li><a href="{$U_MAINT_HISTORY_SUMMARY}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'purge history summary'|@translate}</a></li> - <li><a href="{$U_MAINT_SESSIONS}" {$TAG_INPUT_ENABLED}>{'purge sessions'|@translate}</a></li> - <li><a href="{$U_MAINT_FEEDS}" {$TAG_INPUT_ENABLED}>{'purge never used notification feeds'|@translate}</a></li> - <li><a href="{$U_MAINT_COMPILED_TEMPLATES}" {$TAG_INPUT_ENABLED}>{'Purge compiled templates'|@translate}</a></li> -</ul> - -<ul> - <li><a href="{$U_MAINT_C13Y}" {$TAG_INPUT_ENABLED}>{'c13y_maintenance'|@translate}</a></li> -</ul> diff --git a/template/yoga/admin/notification_by_mail.tpl b/template/yoga/admin/notification_by_mail.tpl deleted file mode 100644 index a8e3f8108..000000000 --- a/template/yoga/admin/notification_by_mail.tpl +++ /dev/null @@ -1,124 +0,0 @@ -{* $Id$ *} - -<div class="titrePage"> - {$TABSHEET} - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<form method="post" name="notification_by_mail" id="notification_by_mail" action="{$F_ACTION}"> - {if isset($REPOST_SUBMIT_NAME)} - <fieldset> - <div class="infos"> - <input class="submit" type="submit" value="{'nbm_repost_submit'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}/> - </div> - </fieldset> - {/if} - - {if isset($param)} - <fieldset> - <legend>{'nbm_title_param'|@translate}</legend> - <table> - <tr> - <td><label>{'nbm_send_html_mail'|@translate}</label></td> - <td> - <label><input type="radio" name="nbm_send_html_mail" value="true" {if $param.SEND_HTML_MAIL}checked="checked"{/if}/>{'Yes'|@translate}</label> - <label><input type="radio" name="nbm_send_html_mail" value="false" {if not $param.SEND_HTML_MAIL}checked="checked"{/if}/>{'No'|@translate}</label> - </td> - </tr> - <tr> - <td> - <label for="send_mail_as">{'nbm_send_mail_as'|@translate}</label> - <br/><i><small>{'nbm_info_send_mail_as'|@translate}</small></i> - </td> - <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"/></td> - </tr> - <tr> - <td><label>{'nbm_send_detailed_content'|@translate}</label></td> - <td> - <label><input type="radio" name="nbm_send_detailed_content" value="true" {if $param.SEND_DETAILED_CONTENT}checked="checked"{/if}/>{'Yes'|@translate}</label> - <label><input type="radio" name="nbm_send_detailed_content" value="false" {if not $param.SEND_DETAILED_CONTENT}checked="checked"{/if}/>{'No'|@translate}</label> - </td> - </tr> - <tr> - <td><label for="complementary_mail_content">{'nbm_complementary_mail_content'|@translate}</label></td> - <td><textarea cols="50" rows="5" name="nbm_complementary_mail_content" id="complementary_mail_content">{$param.COMPLEMENTARY_MAIL_CONTENT}</textarea></td> - </tr> - <tr> - <td> - <label>{'nbm_send_recent_post_dates'|@translate}</label> - <br/><i><small>{'nbm_info_send_recent_post_dates'|@translate}</small></i> - </td> - <td> - <label><input type="radio" name="nbm_send_recent_post_dates" value="true" {if $param.SEND_RECENT_POST_DATES}checked="checked"{/if}/>{'Yes'|@translate}</label> - <label><input type="radio" name="nbm_send_recent_post_dates" value="false" {if not $param.SEND_RECENT_POST_DATES}checked="checked"{/if}/>{'No'|@translate}</label> - </td> - </tr> - </table> - </fieldset> - - <p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="param_submit" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="param_reset"/> - </p> - {/if}{* isset $param*} - - {if isset($subscribe)} - <fieldset> - <legend>{'nbm_title_subscribe'|@translate}</legend> - <p><i>{'nbm_warning_subscribe_unsubscribe'|@translate}</i></p> - {$DOUBLE_SELECT} - </fieldset> - {/if}{* isset $subscribe*} - - {if isset($send)} - {if empty($send.users)} - <p>{'nbm_no_user_available_to_send_L1'|@translate}</p> - <p> - {'nbm_no_user_available_to_send_L2'|@translate}<br> - {'nbm_no_user_available_to_send_L3'|@translate} - </p> - {else} - <fieldset> - <legend>{'nbm_title_send'|@translate}</legend> - <table class="table2"> - <tr class="throw"> - <th>{'nbm_col_user'|@translate}</th> - <th>{'nbm_col_mail'|@translate}</th> - <th>{'nbm_col_last_send'|@translate}</th> - <th>{'nbm_col_check_user_send_mail'|@translate}</th> - </tr> - {foreach from=$send.users item=u name=user_loop} - <tr class="{if $smarty.foreach.user_loop.index is odd}row1{else}row2{/if}"> - <td><label for="send_selection-{$u.ID}">{$u.USERNAME}</label></td> - <td><label for="send_selection-{$u.ID}">{$u.EMAIL}</label></td> - <td><label for="send_selection-{$u.ID}">{$u.LAST_SEND}</label></td> - <td><input type="checkbox" name="send_selection[]" value="{$u.ID}" {$u.CHECKED} id="send_selection-{$u.ID}"/></td> - </tr> - {/foreach} - </table> - <p> - <a href="#" onclick="SelectAll(document.getElementById('notification_by_mail')); return false;">{'Check all'|@translate}</a> - / <a href="#" onclick="DeselectAll(document.getElementById('notification_by_mail')); return false;">{'Uncheck all'|@translate}</a> - </p> - </fieldset> - - <fieldset> - <legend>{'nbm_send_options'|@translate}</legend> - <table> - <tr> - <td><label for="send_customize_mail_content">{'nbm_send_complementary_mail_content'|@translate}</label></td> - <td><textarea cols="50" rows="5" name="send_customize_mail_content" id="send_customize_mail_content">{$send.CUSTOMIZE_MAIL_CONTENT}</textarea></td> - </tr> - </table> - </fieldset> - - <p> - <input class="submit" type="submit" value="{'nbm_send_submit'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}/> - </p> - {/if} - {/if}{* isset $send*} - -</form> diff --git a/template/yoga/admin/permalinks.tpl b/template/yoga/admin/permalinks.tpl deleted file mode 100644 index 958579e87..000000000 --- a/template/yoga/admin/permalinks.tpl +++ /dev/null @@ -1,70 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Permalinks'|@translate}</h2> -</div> - -<form method="post" action="{$F_ACTION}"> -<fieldset><legend>{'Add/delete a permalink'|@translate}</legend> - <label>{'Category'|@translate}: - <select name="cat_id"> - <option value="0">------</option> - {html_options options=$categories selected=$categories_selected} - </select> - </label> - - <label>{'Permalink'|@translate}: - <input name="permalink" /> - </label> - - <label>{'Save to permalink history'|@translate}: - <input type="checkbox" name="save" checked="checked" /> - </label> - - <p> - <input type="submit" class="submit" name="set_permalink" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/> - </p> - </fieldset> -</form> - -<h3>{'Permalinks'|@translate}</h3> -<table class="table2"> - <tr class="throw"> - <td>Id {$SORT_ID}</td> - <td>{'Category'|@translate} {$SORT_NAME}</td> - <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td> - </tr> -{foreach from=$permalinks item=permalink name="permalink_loop"} - <tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}"> - <td>{$permalink.id}</td> - <td>{$permalink.name}</td> - <td>{$permalink.permalink}</td> - </tr> -{/foreach} -</table> - -<h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3> -<table class="table2"> - <tr class="throw"> - <td>Id {$SORT_OLD_CAT_ID}</td> - <td>{'Category'|@translate}</td> - <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td> - <td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td> - <td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td> - <td>{'Hit'|@translate} {$SORT_OLD_HIT}</td> - <td></td> - </tr> -{foreach from=$deleted_permalinks item=permalink} - <tr> - <td>{$permalink.cat_id}</td> - <td>{$permalink.name}</td> - <td>{$permalink.permalink}</td> - <td>{$permalink.date_deleted}</td> - <td>{$permalink.last_hit}</td> - <td>{$permalink.hit}</td> - <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" alt="[{'delete'|@translate}]" class="button"></a></td> - </tr> -{/foreach} -</table> diff --git a/template/yoga/admin/picture_modify.tpl b/template/yoga/admin/picture_modify.tpl deleted file mode 100644 index f6243acb9..000000000 --- a/template/yoga/admin/picture_modify.tpl +++ /dev/null @@ -1,190 +0,0 @@ -{* $Id$ *} -<h2>{'title_picmod'|@translate}</h2> - -<img src="{$TN_SRC}" alt="{'thumbnail'|@translate}" class="thumbnail" /> - -<ul class="categoryActions"> - {if isset($U_JUMPTO) } - <li><a href="{$U_JUMPTO}" title="{'jump to image'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to image'|@translate}" /></a></li> - {/if} - <li><a href="{$U_SYNC}" title="{'synchronize metadata'|@translate}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.icon_dir}/sync_metadata.png" class="button" alt="{'synchronize'|@translate}" /></a></li> -</ul> - -<form action="{$F_ACTION}" method="post" id="properties"> - - <fieldset> - <legend>{'Informations'|@translate}</legend> - - <table> - - <tr> - <td><strong>{'Path'|@translate}</strong></td> - <td>{$PATH}</td> - </tr> - - <tr> - <td><strong>{'Post date'|@translate}</strong></td> - <td>{$REGISTRATION_DATE}</td> - </tr> - - <tr> - <td><strong>{'Dimensions'|@translate}</strong></td> - <td>{$DIMENSIONS}</td> - </tr> - - <tr> - <td><strong>{'Filesize'|@translate}</strong></td> - <td>{$FILESIZE}</td> - </tr> - -{if isset($HIGH_FILESIZE) } - <tr> - <td><strong>{'High filesize'|@translate}</strong></td> - <td>{$HIGH_FILESIZE}</td> - </tr> -{/if} - - <tr> - <td><strong>{'Storage category'|@translate}</strong></td> - <td>{$STORAGE_CATEGORY}</td> - </tr> - - {if isset($related_categories) } - <tr> - <td><strong>{'Linked categories'|@translate}</strong></td> - <td> - <ul> - {foreach from=$related_categories item=name} - <li>{$name}</li> - {/foreach} - </ul> - </td> - </tr> - {/if} - - </table> - - </fieldset> - - <fieldset> - <legend>{'Properties'|@translate}</legend> - - <table> - - <tr> - <td><strong>{'Name'|@translate}</strong></td> - <td><input type="text" name="name" value="{$NAME}" /></td> - </tr> - - <tr> - <td><strong>{'Author'|@translate}</strong></td> - <td><input type="text" name="author" value="{$AUTHOR}" /></td> - </tr> - - <tr> - <td><strong>{'Creation date'|@translate}</strong></td> - <td> - <label><input type="radio" name="date_creation_action" value="unset" /> {'unset'|@translate}</label> - <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set" /> {'set to'|@translate} - <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day"> - <option value="0">--</option> - {section name=day start=1 loop=32} - <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option> - {/section} - </select> - <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_month"> - {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE} - </select> - <input onmousedown="document.getElementById('date_creation_action_set').checked = true;" - name="date_creation_year" - type="text" - size="4" - maxlength="4" - value="{$DATE_CREATION_YEAR_VALUE}" /> - </td> - </tr> - - <tr> - <td><strong>{'Tags'|@translate}</strong></td> - <td>{$TAG_SELECTION}</td> - </tr> - - - <tr> - <td><strong>{'Description'|@translate}</strong></td> - <td><textarea name="description" class="description">{$DESCRIPTION}</textarea></td> - </tr> - - <tr> - <td><strong>{'Minimum privacy level'|@translate}</strong></td> - <td> - <select name="level" size="1"> - {html_options options=$level_options selected=$level_options_selected} - </select> - </td> - </tr> - - </table> - - <p style="text-align:center;"> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> - </p> - - </fieldset> - -</form> - -<form id="associations" method="post" action="{$F_ACTION}#associations"> - <fieldset> - <legend>{'Association to categories'|@translate}</legend> - - <table class="doubleSelect"> - <tr> - <td> - <h3>{'Associated'|@translate}</h3> - <select class="categoryList" name="cat_associated[]" multiple="multiple" size="30"> - {html_options options=$associated_options} - </select> - <p><input class="submit" type="submit" value="»" name="dissociate" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - - <td> - <h3>{'Dissociated'|@translate}</h3> - <select class="categoryList" name="cat_dissociated[]" multiple="multiple" size="30"> - {html_options options=$dissociated_options} - </select> - <p><input class="submit" type="submit" value="«" name="associate" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - </tr> - </table> - - </fieldset> -</form> - -<form id="representation" method="post" action="{$F_ACTION}#representation"> - <fieldset> - <legend>{'Representation of categories'|@translate}</legend> - - <table class="doubleSelect"> - <tr> - <td> - <h3>{'Represents'|@translate}</h3> - <select class="categoryList" name="cat_elected[]" multiple="multiple" size="30"> - {html_options options=$elected_options} - </select> - <p><input class="submit" type="submit" value="»" name="dismiss" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - - <td> - <h3>{'Does not represent'|@translate}</h3> - <select class="categoryList" name="cat_dismissed[]" multiple="multiple" size="30"> - {html_options options=$dismissed_options} - </select> - <p><input class="submit" type="submit" value="«" name="elect" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p> - </td> - </tr> - </table> - - </fieldset> -</form> diff --git a/template/yoga/admin/plugins_list.tpl b/template/yoga/admin/plugins_list.tpl deleted file mode 100644 index d5b045141..000000000 --- a/template/yoga/admin/plugins_list.tpl +++ /dev/null @@ -1,51 +0,0 @@ -<div class="titrePage"> -{$TABSHEET} - <h2>{'Plugins'|@translate}</h2> -</div> - -{'Sort order'|@translate} : - <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:100px"> - {html_options options=$order_options selected=$order_selected} - </select> - -{if isset($plugins)} -<table class="table2"> -<thead> - <tr class="throw"> - <td>{'Name'|@translate}</td> - <td>{'Version'|@translate}</td> - <td>{'Description'|@translate}</td> - <td>{'Actions'|@translate}</td> - </tr> -</thead> -{html_head} {*add the style to html head for strict standard compliance*} -<style type="text/css"> -TABLE.table2 TR TD.pluginState {ldelim} - padding-left:16px; -} -TABLE.table2 TR TD.active {ldelim} - background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_active.gif) no-repeat center left -} -TABLE.table2 TR TD.inactive {ldelim} - background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_inactive.gif) no-repeat center left -} -</style> -{/html_head} -{foreach from=$plugins item=plugin name=plugins_loop} - <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> - <td class="pluginState{if not empty($plugin.STATE)} {$plugin.STATE}{/if}"> - {$plugin.NAME} - </td> - <td>{$plugin.VERSION}</td> - <td>{$plugin.DESCRIPTION}</td> - <td> - {foreach from=$plugin.actions item=action} - <a href="{$action.U_ACTION}" - {if isset($action.CONFIRM)} onclick="return confirm('{$action.CONFIRM|@escape:'javascript'}');"{/if} - {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a> - {/foreach} - </td> - </tr> -{/foreach} -</table> -{/if} diff --git a/template/yoga/admin/plugins_new.tpl b/template/yoga/admin/plugins_new.tpl deleted file mode 100644 index f778c6aa2..000000000 --- a/template/yoga/admin/plugins_new.tpl +++ /dev/null @@ -1,37 +0,0 @@ -<div class="titrePage"> -{$TABSHEET} - <h2>{'Plugins'|@translate}</h2> -</div> - -{'Sort order'|@translate} : - <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:150px"> - {html_options options=$order_options selected=$order_selected} - </select> - -{if isset($plugins)} -<br> -<table class="table2"> -<thead> - <tr class="throw"> - <td>{'Name'|@translate}</td> - <td>{'Version'|@translate}</td> - <td>{'Date'|@translate}</td> - <td>{'Author'|@translate}</td> - <td>{'Actions'|@translate}</td> - </tr> -</thead> -{foreach from=$plugins item=plugin name=plugins_loop} - <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> - <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME} - <span>{$plugin.EXT_DESC}</span></a></td> - <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.VERSION} - <span>{$plugin.VER_DESC}</span></a></td> - <td>{$plugin.DATE}</td> - <td>{$plugin.AUTHOR}</td> - <td style="text-align:center;"><a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'plugins_confirm_install'|@translate|@escape:javascript}');">{'plugins_auto_install'|@translate}</a> - / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a> - </td> - </tr> -{/foreach} -</table> -{/if} diff --git a/template/yoga/admin/plugins_update.tpl b/template/yoga/admin/plugins_update.tpl deleted file mode 100644 index fb2f38f67..000000000 --- a/template/yoga/admin/plugins_update.tpl +++ /dev/null @@ -1,71 +0,0 @@ -<div class="titrePage"> -{$TABSHEET} - <h2>{'Plugins'|@translate}</h2> -</div> - -{if isset($plugins_not_uptodate)} -<br> -<b>{'plugins_need_update'|@translate}</b> -<table class="table2"> -<thead> - <tr class="throw"> - <td>{'Name'|@translate}</td> - <td>{'plugins_actual_version'|@translate}</td> - <td>{'plugins_new_version'|@translate}</td> - <td>{'Actions'|@translate}</td> - </tr> -</thead> -{foreach from=$plugins_not_uptodate item=plugin name=plugins_loop} - <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> - <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME} - <span>{$plugin.EXT_DESC}</span></a></td> - <td style="text-align:center;">{$plugin.VERSION}</td> - <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NEW_VERSION} - <span>{$plugin.NEW_VER_DESC}</span></a></td> - <td style="text-align:center;"><a href="{$plugin.URL_UPDATE}" onclick="return confirm('{'plugins_confirm_upgrade'|@translate|@escape:javascript}');">{'plugins_auto_update'|@translate}</a> - / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a></td> - </tr> -{/foreach} -</table> -{/if} - - -{if isset($plugins_uptodate)} -<br> -<b>{'plugins_dontneed_update'|@translate}</b> -<table class="table2"> -<thead> - <tr class="throw"> - <td>{'Name'|@translate}</td> - <td>{'Version'|@translate}</td> - </tr> -</thead> -{foreach from=$plugins_uptodate item=plugin name=plugins_loop} - <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> - <td><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NAME} - <span>{$plugin.EXT_DESC}</span></a></td> - <td style="text-align:center;">{$plugin.VERSION}</td> - </tr> -{/foreach} -</table> -{/if} - - -{if isset($plugins_cant_check)} -<br> -<b>{'plugins_cant_check'|@translate}</b> -<table class="table2"> -<thead> - <tr class="throw"> - <td>{'Name'|@translate}</td> - <td>{'Version'|@translate}</td> - </tr> -</thead> -{foreach from=$plugins_cant_check item=plugin name=plugins_loop} - <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> - <td>{$plugin.NAME}</td> - <td style="text-align:center;">{$plugin.VERSION}</td> - </tr> -{/foreach} -</table> -{/if} diff --git a/template/yoga/admin/profile.tpl b/template/yoga/admin/profile.tpl deleted file mode 100644 index f6326319c..000000000 --- a/template/yoga/admin/profile.tpl +++ /dev/null @@ -1,6 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <h2>{'Profile'|@translate}</h2> -</div> - -{$PROFILE_CONTENT} diff --git a/template/yoga/admin/rating.tpl b/template/yoga/admin/rating.tpl deleted file mode 100755 index aa91892dc..000000000 --- a/template/yoga/admin/rating.tpl +++ /dev/null @@ -1,64 +0,0 @@ -{* $Id$ *} -<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2> - -<form action="{$F_ACTION}" method="GET" id="update" class="filter"> - <fieldset> - <legend>{'Filter'|@translate}</legend> - - <label> - {'Sort by'|@translate} - <select name="order_by"> - {html_options options=$order_by_options selected=$order_by_options_selected} - </select> - </label> - - <label> - {'Users'|@translate} - <select name="users"> - {html_options options=$user_options selected=$user_options_selected} - </select> - </label> - - <label> - {'Number of items'|@translate} - <input type="text" name="display" size="2" value="{$DISPLAY}"> - </label> - - <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}" /> - <input type="hidden" name="page" value="rating" /> - </fieldset> -</form> - -<div class="navigationBar">{$NAVBAR}</div> -<table width="99%"> -<tr class="throw"> - <td>{'File'|@translate}</td> - <td>{'Number of rates'|@translate}</td> - <td>{'Average rate'|@translate}</td> - <td>{'Controversy'|@translate}</td> - <td>{'Sum of rates'|@translate}</td> - <td>{'Rate'|@translate}</td> - <td>{'Username'|@translate}</td> - <td>{'Rate date'|@translate}</td> - <td></td> -</tr> -{foreach from=$images item=image} -<tr valign="bottom"> - <td rowspan="{$image.NB_RATES_TOTAL+1}"><a href="{$image.U_URL}"><img src="{$image.U_THUMB}" alt="{$image.FILE}" title="{$image.FILE}"></a></td> - <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td> - <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td> - <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td> - <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td> -</tr> -{foreach from=$image.rates item=rate} -<tr> - <td>{$rate.RATE}</td> - <td><b>{$rate.USER}</b></td> - <td><span class="date">{$rate.DATE}</span></td> - <td><a href="{$rate.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/></a></td> -</tr> -{/foreach} {*rates*} -{/foreach} {*images*} -</table> - -<div class="navigationBar">{$NAVBAR}</div> diff --git a/template/yoga/admin/site_manager.tpl b/template/yoga/admin/site_manager.tpl deleted file mode 100644 index 627181c5a..000000000 --- a/template/yoga/admin/site_manager.tpl +++ /dev/null @@ -1,73 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'Site manager'|@translate}</h2> -</div> - -{if not empty($remote_output)} -<div class="remoteOutput"> - <ul> - {foreach from=$remote_output item=remote_line} - <li class="{$remote_line.CLASS}">{$remote_line.CONTENT}</li> - {/foreach} - </ul> -</div> -{/if} - -{if isset($local_listing)} -{'remote_site_local_found'|@translate} {$local_listing.URL} -{if isset($local_listing.CREATE)} -<form action="{$F_ACTION}" method="post"> - <p> - {'remote_site_local_create'|@translate}: - <input type="hidden" name="no_check" value="1"/> - <input type="hidden" name="galleries_url" value="{$local_listing.URL}" /> - <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} /> - </p> -</form> -{/if} -{if isset($local_listing.U_SYNCHRONIZE)} - <a href="{$local_listing.U_SYNCHRONIZE}" title="{'remote_site_local_update'|@translate}">{'site_synchronize'|@translate}</a> -<br/><br/> -{/if} -{/if} - -{if not empty($sites)} -<table border="1" cellpadding="0" cellspacing="0"> - {foreach from=$sites item=site} - <tr style="text-align:left"><td> - <a href="{$site.NAME}">{$site.NAME}</a><br/>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d element','%d elements',$site.IMAGES)}) - </td><td> - [<a href="{$site.U_SYNCHRONIZE}" title="{'site_synchronize_hint'|@translate}">{'site_synchronize'|@translate}</a>] - {if isset($site.U_DELETE)} - [<a href="{$site.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|escape:'javascript'}');" - title="{'site_delete_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'site_delete'|@translate}</a>] - {/if} - {if isset($site.remote)} - <br/> - [<a href="{$site.remote.U_TEST}" title="{'remote_site_test_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_test'|@translate}</a>] - [<a href="{$site.remote.U_GENERATE}" title="{'remote_site_generate_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_generate'|@translate}</a>] - [<a href="{$site.remote.U_CLEAN}" title="{'remote_site_clean_hint'|@translate}" {$TAG_INPUT_ENABLED}>{'remote_site_clean'|@translate}</a>] - {/if} - {if not empty($site.plugin_links)} - <br> - {foreach from=$site.plugin_links item=plugin_link} - [<a href="{$plugin_link.U_HREF}" title='{$plugin_link.U_HINT}' {$TAG_INPUT_ENABLED}>{$plugin_link.U_CAPTION}</a>] - {/foreach} - {/if} - </td></tr> - {/foreach} -</table> -{/if} - -<form action="{$F_ACTION}" method="post"> - <p> - <label for="galleries_url" >{'site_create'|@translate}</label> - <input type="text" name="galleries_url" id="galleries_url" /> - </p> - <p> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} /> - </p> -</form> diff --git a/template/yoga/admin/site_update.tpl b/template/yoga/admin/site_update.tpl deleted file mode 100644 index fc0899a90..000000000 --- a/template/yoga/admin/site_update.tpl +++ /dev/null @@ -1,109 +0,0 @@ -{* $Id$ *} - -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_update'|@translate}: <a href="{$SITE_URL}">{$SITE_URL}</a></h2> -</div> - -{if isset($update_result)} -<h3>{$L_RESULT_UPDATE}</h3> -<ul> - <li class="update_summary_new">{$update_result.NB_NEW_CATEGORIES} {'update_nb_new_categories'|@translate}</li> - <li class="update_summary_new">{$update_result.NB_NEW_ELEMENTS} {'update_nb_new_elements'|@translate}</li> - <li class="update_summary_del">{$update_result.NB_DEL_CATEGORIES} {'update_nb_del_categories'|@translate}</li> - <li class="update_summary_del">{$update_result.NB_DEL_ELEMENTS} {'update_nb_del_elements'|@translate}</li> - <li>{$update_result.NB_UPD_ELEMENTS} {'update_nb_upd_elements'|@translate}</li> - <li class="update_summary_err">{$update_result.NB_ERRORS} {'update_nb_errors'|@translate}</li> -</ul> -{/if} - -{if isset($metadata_result)} -<h3>{$L_RESULT_METADATA}</h3> -<ul> - <li>{$metadata_result.NB_ELEMENTS_DONE} {'update_nb_elements_metadata_sync'|@translate}</li> - <li>{$metadata_result.NB_ELEMENTS_CANDIDATES} {'update_nb_elements_metadata_available'|@translate}</li> - <li>{'update_used_metadata'|@translate} : {$METADATA_LIST}</li> -</ul> -{/if} - - -{if not empty($sync_errors)} -<h3>{'update_error_list_title'|@translate}</h3> -<div class="errors"> -<ul> - {foreach from=$sync_errors item=error} - <li>[{$error.ELEMENT}] {$error.LABEL}</li> - {/foreach} -</ul> -</div> -<h3>{'update_errors_caption'|@translate}</h3> -<ul> - {foreach from=$sync_error_captions item=caption} - <li><strong>{$caption.TYPE}</strong>: {$caption.LABEL}</li> - {/foreach} -</ul> -{/if} - -{if not empty($sync_infos)} -<h3>{'update_infos_title'|@translate}</h3> -<div class="infos"> -<ul> - {foreach from=$sync_infos item=info} - <li>[{$info.ELEMENT}] {$info.LABEL}</li> - {/foreach} -</ul> -</div> -{/if} - -{if isset($introduction)} -<h3>{'update_default_title'|@translate}</h3> -<form action="" method="post" id="update"> - - <fieldset id="syncFiles"> - <legend>{'update_sync_files'|@translate}</legend> - <ul> - <li><label><input type="radio" name="sync" value="dirs" {if 'dirs'==$introduction.sync}checked="checked"{/if}/> {'update_sync_dirs'|@translate}</label></li> - <li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}/> {'update_sync_all'|@translate}</label></li> - <li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}/> {'update_display_info'|@translate}</label></li> - <li><label><input type="checkbox" name="add_to_caddie" value="1" {if $introduction.add_to_caddie}checked="checked"{/if}/> {'add new elements to caddie'|@translate}</label></li> - <li><label>{'Minimum privacy level'|@translate} <select name="privacy_level">{html_options options=$introduction.privacy_level_options selected=$introduction.privacy_level_selected}</select></label></li> - </ul> - </fieldset> - - <fieldset id="syncMetadata"> - <legend>{'update_sync_metadata'|@translate}</legend> - {'update_used_metadata'|@translate} : {$METADATA_LIST}.<br/> - <ul> - <li><label><input type="radio" name="sync" value="metadata_new" {if 'metadata_new'==$introduction.sync}checked="checked"{/if}/> {'update_sync_metadata_new'|@translate}</label></li> - <li><label><input type="radio" name="sync" value="metadata_all" {if 'metadata_all'==$introduction.sync}checked="checked"{/if}/> {'update_sync_metadata_all'|@translate}</label></li> - </ul> - </fieldset> - - <fieldset id="syncSimulate"> - <legend></legend> - <ul><li><label><input type="checkbox" name="simulate" value="1" checked="checked" {$TAG_INPUT_ENABLED} /> {'update_simulate'|@translate}</label></li></ul> - </fieldset> - - <fieldset id="catSubset"> - <legend>{'update_cats_subset'|@translate}</legend> - <ul> - <li> - <select class="categoryList" name="cat" size="10"> - {html_options options=$category_options selected=$category_options_selected} - </select> - </li> - - <li><label><input type="checkbox" name="subcats-included" value="1" {if $introduction.subcats_included}checked="checked"{/if}/> {'search_subcats_included'|@translate}</label></li> - </ul> - </fieldset> - - <p class="bottomButtons"> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" /> - </p> -</form> -{/if}{*isset $introduction*} - -<p><a href="{$U_SITE_MANAGER}">{'Site manager'|@translate}</a></p> diff --git a/template/yoga/admin/stats.tpl b/template/yoga/admin/stats.tpl deleted file mode 100644 index cb20be916..000000000 --- a/template/yoga/admin/stats.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{* $Id$ *} - -<div class="titrePage"> - {$TABSHEET} - <ul class="categoryActions"> - <li> - <a - href="{$U_HELP}" - onclick="popuphelp(this.href); return false;" - title="{'Help'|@translate}" - > - <img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"> - </a> - </li> - </ul> - <h2>{'History'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<h3>{$L_STAT_TITLE}</h3> - -<table class="table2" id="dailyStats"> - <tr class="throw"> - <th>{$PERIOD_LABEL}</th> - <th>{'Pages seen'|@translate}</th> - <th></th> - </tr> - -{if not empty($statrows)} -{foreach from=$statrows item=row} - <tr> - <td style="white-space: nowrap">{$row.VALUE}</td> - <td class="number">{$row.PAGES}</td> - <td><div class="statBar" style="width:{$row.WIDTH}px"></div></td> - </tr> -{/foreach} -{/if} - -</table> diff --git a/template/yoga/admin/tabsheet.tpl b/template/yoga/admin/tabsheet.tpl deleted file mode 100644 index a89adfd8d..000000000 --- a/template/yoga/admin/tabsheet.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{* $Id$ *} -{if isset($tabsheet) and count($tabsheet)} -<ul class="tabsheet"> -{foreach from=$tabsheet key=name item=sheet} - <li class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}"><a href="{$sheet.url}">{$sheet.caption}</a></li> -{/foreach} -</ul> -{/if}
\ No newline at end of file diff --git a/template/yoga/admin/tags.tpl b/template/yoga/admin/tags.tpl deleted file mode 100644 index b2ce57341..000000000 --- a/template/yoga/admin/tags.tpl +++ /dev/null @@ -1,54 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <h2>{'Manage tags'|@translate}</h2> -</div> - -<form action="{$F_ACTION}" method="post"> - - {if isset($EDIT_TAGS_LIST)} - <fieldset> - <legend>{'Edit tags'|@translate}</legend> - <input type="hidden" name="edit_list" value="{$EDIT_TAGS_LIST}" /> - <table class="table2"> - <tr class="throw"> - <th>{'Current name'|@translate}</th> - <th>{'New name'|@translate}</th> - </tr> - {foreach from=$tags item=tag} - <tr> - <td>{$tag.NAME}</td> - <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" /></td> - </tr> - {/foreach} - </table> - - <p> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} /> - <input class="submit" type="reset" value="{'Reset'|@translate}" /> - </p> - </fieldset> - {/if} - - <fieldset> - <legend>{'Add a tag'|@translate}</legend> - - <label> - {'New tag'|@translate} - <input type="text" name="add_tag" /> - </label> - - <p><input class="submit" type="submit" name="add" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/></p> - </fieldset> - - <fieldset> - <legend>{'Tag selection'|@translate}</legend> - - {$TAG_SELECTION} - - <p> - <input class="submit" type="submit" name="edit" value="{'Edit selected tags'|@translate}"/> - <input class="submit" type="submit" name="delete" value="{'Delete selected tags'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}/> - </p> - </fieldset> - -</form> diff --git a/template/yoga/admin/thumbnail.tpl b/template/yoga/admin/thumbnail.tpl deleted file mode 100644 index 6bb652caa..000000000 --- a/template/yoga/admin/thumbnail.tpl +++ /dev/null @@ -1,123 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_thumbnails'|@translate}</h2> -</div> - -{if isset($results) } -<div class="admin">{'tn_results_title'|@translate}</div> -<table style="width:100%;"> - <tr class="throw"> - <td>{'path'|@translate}</td> - <td>{'thumbnail'|@translate}</td> - <td>{'tn_results_gen_time'|@translate}</td> - <td>{'filesize'|@translate}</td> - <td>{'Dimensions'|@translate}</td> - </tr> - {foreach from=$results.elements item=elt} - <tr> - <td>{$elt.PATH}</td> - <td><img src="{$elt.TN_FILE_IMG}" /></td> - <td style="text-align:right;">{$elt.GEN_TIME}</td> - <td style="text-align:right;">{$elt.TN_FILESIZE_IMG}</td> - <td style="text-align:right;">{$elt.TN_WIDTH_IMG} x {$elt.TN_HEIGHT_IMG}</td> - </tr> - {/foreach} -</table> - -<table class="table2"> - <tr class="throw"> - <td colspan="2">{'tn_stats'|@translate}</td> - </tr> - <tr> - <td>{'tn_stats_nb'|@translate}</td> - <td style="text-align:center;">{$results.TN_NB}</td> - </tr> - <tr> - <td>{'tn_stats_total'|@translate}</td> - <td style="text-align:right;">{$results.TN_TOTAL}</td> - </tr> - <tr> - <td>{'tn_stats_max'|@translate}</td> - <td style="text-align:right;">{$results.TN_MAX}</td> - </tr> - <tr> - <td>{'tn_stats_min'|@translate}</td> - <td style="text-align:right;">{$results.TN_MIN}</td> - </tr> - <tr> - <td>{'tn_stats_mean'|@translate}</td> - <td style="text-align:right;">{$results.TN_AVERAGE}</td> - </tr> -</table> -<br /> -{/if} - -{if isset($params) } -<form method="post" action="{$params.F_ACTION}" class="properties"> - - <fieldset> - <legend>{'tn_params_title'|@translate}</legend> - - <ul> - <li> - <span class="property">{'tn_params_GD'|@translate}</span> - <label> - <input type="radio" name="gd" value="2" {if $params.GD_SELECTED==2}checked="checked"{/if} />2.x - </label> - <label> - <input type="radio" name="gd" value="1" {if $params.GD_SELECTED==1}checked="checked"{/if} />1.x - </label> - </li> - - <li> - <span class="property"> - <label for="width">{'maximum width'|@translate}</label> - </span> - <input type="text" id="width" name="width" value="{$params.WIDTH_TN}" /> - </li> - - <li> - <span class="property"> - <label for="height">{'maximum height'|@translate}</label> - </span> - <input type="text" id="height" name="height" value="{$params.HEIGHT_TN}" /> - </li> - - <li> - <span class="property">{'Number of thumbnails to create'|@translate}</span> - <label><input type="radio" name="n" value="5" {if $params.N_SELECTED==5}checked="checked"{/if} /> 5</label> - <label><input type="radio" name="n" value="10" {if $params.N_SELECTED==10}checked="checked"{/if} /> 10</label> - <label><input type="radio" name="n" value="20" {if $params.N_SELECTED==20}checked="checked"{/if} /> 20</label> - <label><input type="radio" name="n" value="all" {if $params.N_SELECTED=='all'}checked="checked"{/if} /> {'tn_all'|@translate}</label> - </li> - </ul> - </fieldset> - - <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/></p> -</form> -{/if} {*isset params*} - -{if !empty($remainings) } -<div class="admin">{$TOTAL_NB_REMAINING} {'tn_alone_title'|@translate}</div> -<table style="width:100%;"> - <tr class="throw"> - <td> </td> - <td style="width:60%;">{'path'|@translate}</td> - <td>{'filesize'|@translate}</td> - <td>{'Dimensions'|@translate}</td> - </tr> - {foreach from=$remainings item=elt name=remain_loop} - <tr class="{if $smarty.foreach.remain_loop.index is odd}row1{else}row2{/if}"> - <td>{$smarty.foreach.remain_loop.iteration}</td> - <td><div style="margin-left:10px;">{$elt.PATH}</div></td> - <td><div style="margin-left:10px;">{$elt.FILESIZE_IMG}</div></td> - <td><div style="margin-left:10px;">{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}</div></td> - </tr> - {/foreach} -</table> -{else} -<div style="text-align:center;font-weight:bold;margin:10px;"> [ {'tn_no_missing'|@translate} ]</div> -{/if} diff --git a/template/yoga/admin/upload.tpl b/template/yoga/admin/upload.tpl deleted file mode 100644 index b580f9d30..000000000 --- a/template/yoga/admin/upload.tpl +++ /dev/null @@ -1,53 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - {$TABSHEET} - <h2>{'waiting'|@translate} {$TABSHEET_TITLE}</h2> -</div> - -<h3>{'title_upload'|@translate}</h3> - -<form action="{$F_ACTION}" method="post" id="waiting"> - <table style="width:99%;" > - <tr class="throw"> - <th style="width:20%;">{'category'|@translate}</th> - <th style="width:20%;">{'Date'|@translate}</th> - <th style="width:20%;">{'file'|@translate}</th> - <th style="width:20%;">{'thumbnail'|@translate}</th> - <th style="width:20%;">{'Author'|@translate}</th> - <th style="width:1px;"> </th> - </tr> - - {if not empty($pictures) } - {foreach from=$pictures item=picture name=picture_loop} - <tr class="{if $smarty.foreach.picture_loop.index is odd}row1{else}row2{/if}"> - <td style="white-space:nowrap;">{$picture.CATEGORY_IMG}</td> - <td style="white-space:nowrap;">{$picture.DATE_IMG}</td> - <td style="white-space:nowrap;"> - <a href="{$picture.PREVIEW_URL_IMG}" title="{$picture.FILE_TITLE}">{$picture.FILE_IMG}</a> - </td> - <td style="white-space:nowrap;"> - {if not empty($picture.thumbnail) } - <a href="{$picture.thumbnail.PREVIEW_URL_TN_IMG}" title="{$picture.thumbnail.FILE_TN_TITLE}">{$picture.thumbnail.FILE_TN_IMG}</a> - {/if} - </td> - <td style="white-space:nowrap;"> - <a href="mailto:{$picture.UPLOAD_EMAIL}">{$picture.UPLOAD_USERNAME}</a> - </td> - <td style="white-space:nowrap;"> - <label><input type="radio" name="action-{$picture.ID_IMG}" value="validate" /> {'Validate'|@translate}</label> - <label><input type="radio" name="action-{$picture.ID_IMG}" value="reject" /> {'Reject'|@translate}</label> - </td> - </tr> - {/foreach} - {/if} - </table> - - <p class="bottomButtons"> - <input type="hidden" name="list" value="{$LIST}" /> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="submit" name="validate-all" value="{'Validate All'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="submit" name="reject-all" value="{'Reject All'|@translate}" {$TAG_INPUT_ENABLED}/> - <input class="submit" type="reset" value="{'Reset'|@translate}" /> - </p> - -</form> diff --git a/template/yoga/admin/user_list.tpl b/template/yoga/admin/user_list.tpl deleted file mode 100644 index db67093f6..000000000 --- a/template/yoga/admin/user_list.tpl +++ /dev/null @@ -1,312 +0,0 @@ -{* $Id$ *} -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_liste_users'|@translate}</h2> -</div> - -<form class="filter" method="post" name="add_user" action="{$F_ADD_ACTION}"> - <fieldset> - <legend>{'Add a user'|@translate}</legend> - <label>{'Username'|@translate} <input type="text" name="login" maxlength="50" size="20" /></label> - <label>{'Password'|@translate} <input type="text" name="password" /></label> - <label>{'Email address'|@translate} <input type="text" name="email" /></label> - <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} /> - </fieldset> -</form> - -<form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}"> -<fieldset> - <legend>{'Filter'|@translate}</legend> - <input type="hidden" name="page" value="user_list" /> - - <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}" /></label> - - <label> - {'status'|@translate} - {html_options name=status options=$status_options selected=$status_selected} - </label> - - <label> - {'group'|@translate} - {html_options name=group options=$group_options selected=$group_selected} - </label> - - <label> - {'Sort by'|@translate} - {html_options name=order_by options=$order_options selected=$order_selected} - </label> - - <label> - {'Sort order'|@translate} - {html_options name=direction options=$direction_options selected=$direction_selected} - </label> - - <input class="submit" type="submit" value="{'Submit'|@translate}" /> - -</fieldset> - -</form> - -<form method="post" name="preferences" action=""> - -<table class="table2"> - <tr class="throw"> - <th> </th> - <th>{'Username'|@translate}</th> - <th>{'user_status'|@translate}</th> - <th>{'Email address'|@translate}</th> - <th>{'Groups'|@translate}</th> - <th>{'properties'|@translate}</th> - {if not empty($plugin_user_list_column_titles)} - {foreach from=$plugin_user_list_column_titles item=title} - <th>{$title}</th> - {/foreach} - {/if} - <th>{'Actions'|@translate}</th> - </tr> - {foreach from=$users item=user name=users_loop} - <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}"> - <td><input type="checkbox" name="selection[]" value="{$user.ID}" {$user.CHECKED} id="selection-{$user.ID}" /></td> - <td><label for="selection-{$user.ID}">{$user.USERNAME}</label></td> - <td>{$user.STATUS}</td> - <td>{$user.EMAIL}</td> - <td>{$user.GROUPS}</td> - <td>{$user.PROPERTIES}</td> - {foreach from=$user.plugin_columns item=data} - <td>{$data}</td> - {/foreach} - <td style="text-align:center;"> - <a href="{$user.U_PERM}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/permissions.png" class="button" style="border:none" alt="{'permissions'|@translate}" title="{'permissions'|@translate}" /></a> - <a href="{$user.U_PROFILE}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/edit_s.png" class="button" style="border:none" alt="{'Profile'|@translate}" title="{'Profile'|@translate}" /></a> - {foreach from=$user.plugin_actions item=data} - {$data} - {/foreach} - </td> - </tr> - {/foreach} -</table> - -<div class="navigationBar">{$NAVBAR}</div> - -{* delete the selected users ? *} -<fieldset> - <legend>{'Deletions'|@translate}</legend> - <label><input type="checkbox" name="confirm_deletion" value="1" /> {'confirm'|@translate}</label> - <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete" {$TAG_INPUT_ENABLED}/> -</fieldset> - -<fieldset> - <legend>{'Status'|@translate}</legend> - - <table> - <tr> - <td>{'Status'|@translate}</td> - <td> - <label><input type="radio" name="status_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="status_action" value="set" id="status_action_set" /> {'set to'|@translate}</label> - <select onchange="document.getElementById('status_action_set').checked = true;" name="status" size="1"> - {html_options options=$pref_status_options selected=$pref_status_selected} - </select> - </td> - </tr> - - {if isset($adviser)} - <tr> - <td>{'adviser'|@translate}</td> - <td> - <label><input type="radio" name="adviser" value="leave" checked="checked" /> {'leave'|@translate}</label> - / {'set to'|@translate} - <label><input type="radio" name="adviser" value="true" />{'Yes'|@translate}</label> - <label><input type="radio" name="adviser" value="false" />{'No'|@translate}</label> - </td> - </tr> - {/if} - - </table> -</fieldset> - -{* form to set properties for many users at once *} -<fieldset> - <legend>{'Groups'|@translate}</legend> - -<table> - - <tr> - <td>{'associate to group'|@translate}</td> - <td> - {html_options name=associate options=$association_options selected=$associate_selected} - </td> - </tr> - - <tr> - <td>{'dissociate from group'|@translate}</td> - <td> - {html_options name=dissociate options=$association_options selected=$dissociate_selected} - </td> - </tr> - -</table> - -</fieldset> - -{* Properties *} -<fieldset> - <legend>{'properties'|@translate}</legend> - - <table> - - <tr> - <td>{'enabled_high'|@translate}</td> - <td> - <label><input type="radio" name="enabled_high" value="leave" checked="checked" /> {'leave'|@translate}</label> - / {'set to'|@translate} - <label><input type="radio" name="enabled_high" value="true" />{'Yes'|@translate}</label> - <label><input type="radio" name="enabled_high" value="false" />{'No'|@translate}</label> - </td> - </tr> - - <tr> - <td>{'Privacy level'|@translate}</td> - <td> - <label><input type="radio" name="level_action" value="leave" checked="checked" />{'leave'|@translate}</label> - <label><input type="radio" name="level_action" value="set" id="level_action_set" />{'set to'|@translate}</label> - <select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1"> - {html_options options=$level_options selected=$level_selected} - </select> - </td> - </tr> - - </table> - -</fieldset> - -{* preference *} -<fieldset> - <legend>{'Preferences'|@translate}</legend> - -<table> - - <tr> - <td>{'nb_image_per_row'|@translate}</td> - <td> - <label><input type="radio" name="nb_image_line_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set" /> {'set to'|@translate}</label> - <input onmousedown="document.getElementById('nb_image_line_action_set').checked = true;" - size="3" maxlength="2" type="text" name="nb_image_line" value="{$NB_IMAGE_LINE}" /> - </td> - </tr> - - <tr> - <td>{'nb_row_per_page'|@translate}</td> - <td> - <label><input type="radio" name="nb_line_page_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set" /> {'set to'|@translate}</label> - <input onmousedown="document.getElementById('nb_line_page_action_set').checked = true;" - size="3" maxlength="2" type="text" name="nb_line_page" value="{$NB_LINE_PAGE}" /> - <td> - </tr> - - <tr> - <td>{'theme'|@translate}</td> - <td> - <label><input type="radio" name="template_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="template_action" value="set" id="template_action_set" /> {'set to'|@translate}</label> - <select onchange="document.getElementById('template_action_set').checked = true;" name="template" size="1"> - {html_options values=$template_options output=$template_options selected=$template_selected} - </select> - </td> - </tr> - - <tr> - <td>{'language'|@translate}</td> - <td> - <label><input type="radio" name="language_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="language_action" value="set" id="language_action_set" /> {'set to'|@translate}</label> - <select onchange="document.getElementById('language_action_set').checked = true;" name="language" size="1"> - {html_options options=$language_options selected=$language_selected} - </select> - </td> - </tr> - - <tr> - <td>{'recent_period'|@translate}</td> - <td> - <label><input type="radio" name="recent_period_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set" /> {'set to'|@translate}</label> - <input onmousedown="document.getElementById('recent_period_action_set').checked = true;" - type="text" size="3" maxlength="2" name="recent_period" value="{$RECENT_PERIOD}" /> - </td> - </tr> - - <tr> - <td>{'auto_expand'|@translate}</td> - <td> - <label><input type="radio" name="expand" value="leave" checked="checked" /> {'leave'|@translate}</label> - / {'set to'|@translate} - <label><input type="radio" name="expand" value="true" />{'Yes'|@translate}</label> - <label><input type="radio" name="expand" value="false" />{'No'|@translate}</label> - </td> - </tr> - - <tr> - <td>{'show_nb_comments'|@translate}</td> - <td> - <label><input type="radio" name="show_nb_comments" value="leave" checked="checked" /> {'leave'|@translate}</label> - / {'set to'|@translate} - <label><input type="radio" name="show_nb_comments" value="true" />{'Yes'|@translate}</label> - <label><input type="radio" name="show_nb_comments" value="false" />{'No'|@translate}</label> - </td> - </tr> - - <tr> - <td>{'show_nb_hits'|@translate}</td> - <td> - <label><input type="radio" name="show_nb_hits" value="leave" checked="checked" /> {'leave'|@translate}</label> - / {'set to'|@translate} - <label><input type="radio" name="show_nb_hits" value="true" />{'Yes'|@translate}</label> - <label><input type="radio" name="show_nb_hits" value="false" />{'No'|@translate}</label> - </td> - </tr> - - <tr> - <td>{'maxwidth'|@translate}</td> - <td> - <label><input type="radio" name="maxwidth_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="maxwidth_action" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set" /> {'set to'|@translate}</label> - <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;" - type="text" size="4" maxlength="4" name="maxwidth" value="{$MAXWIDTH}" /> - </td> - </tr> - - - <tr> - <td>{'maxheight'|@translate}</td> - <td> - <label><input type="radio" name="maxheight_action" value="leave" checked="checked" /> {'leave'|@translate}</label> - <label><input type="radio" name="maxheight_action" value="unset" /> {'unset'|@translate}</label> - <label><input type="radio" name="maxheight_action" value="set" id="maxheight_action_set" /> {'set to'|@translate}</label> - <input onmousedown="document.getElementById('maxheight_action_set').checked = true;" - type="text" size="4" maxlength="4" name="maxheight" value="{$MAXHEIGHT}" /> - </td> - </tr> - - -</table> - -</fieldset> - -<p> - {'target'|@translate} - <label><input type="radio" name="target" value="all" /> {'all'|@translate}</label> - <label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label> -</p> - -<p> - <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit" {$TAG_INPUT_ENABLED} /> - <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset" /> -</p> - -</form> diff --git a/template/yoga/admin/user_perm.tpl b/template/yoga/admin/user_perm.tpl deleted file mode 100644 index 3183c82e7..000000000 --- a/template/yoga/admin/user_perm.tpl +++ /dev/null @@ -1,23 +0,0 @@ -{* $Id$ *} -<h2>{$TITLE}</h2> - -{if isset($categories_because_of_groups) } -<fieldset> - <legend>{'Categories authorized thanks to group associations'|@translate}</legend> - - <ul> - {foreach from=$categories_because_of_groups item=cat } - <li>{$cat}</li> - {/foreach} - </ul> -</fieldset> -{/if} - - -<fieldset> - <legend>{'Other private categories'|@translate}</legend> - - <form method="post" action="{$F_ACTION}"> - {$DOUBLE_SELECT} - </form> -</fieldset> diff --git a/template/yoga/admin/ws_checker.tpl b/template/yoga/admin/ws_checker.tpl deleted file mode 100644 index cce3c7f49..000000000 --- a/template/yoga/admin/ws_checker.tpl +++ /dev/null @@ -1,218 +0,0 @@ -{* $Id$ *} - -<div class="titrePage"> - <ul class="categoryActions"> - <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> - </ul> - <h2>{'title_wscheck'|@translate} - {'web_services'|@translate}</h2> -</div> - -{if !empty($update_results)} -<ul> - {foreach from=$update_results item=result} - <li>$result</li> - {/foreach} -</ul> -{/if} - -{* Add Access *} -<form method="post" name="adding_access" action="{$F_STATUS_ACTION}"> - <!-- Current Default --> - <fieldset> - <legend>{'ws_adding_legend'|@translate}</legend> - <table> - {* Access key *} - <tr> - <td> - <label for="KeyName">{'Confidential partner key'|@translate} </label> - </td> - <td> - <input type="text" maxlength="35" size="35" name="add_partner" - id="add_partner" value="{$F_ADD_PARTNER}" - title="{'Basis of access key calculation'|@translate}" /> - </td> - </tr> - - {* Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) *} - <tr> - <td> - <label for="Access">{'Target'|@translate}</label> - </td> - <td> - <input type="text" maxlength="128" size="35" name="add_target" - id="add_target" value="{$F_ADD_ACCESS}" - title="{'Facultative and restrictive option'|@translate}" /> - <i><small> ({'Access: see help text for more'|@translate}) - </small></i> - </td> - </tr> - - {* Restricted access to specific request *} - <tr> - <td> - <label for="add_request">{'Restrict access to'|@translate}</label> - </td> - <td> - <select name="add_request" id="add_request" style="width: 18em" - onfocus="this.className='focus';" - onblur="this.className='nofocus';"> - <option value=""></option> - {html_options values=$add_requests output=$add_requests} - </select> - <i><small> ({'ws_Methods'|@translate})</small></i> - </td> - </tr> - - {* Limit number of images information to be return *} - <tr> - <td> - <label for="add_limit">{'Returned images limit'|@translate}</label> - </td> - <td> - <select name="add_limit" id="add_limit" style="width: 10em" - onfocus="this.className='focus';" - onblur="this.className='nofocus';"> - {html_options values=$add_limits output=$add_limits} - </select> - </td> - </tr> - - {* Open service is postponed by n days *} - {* In comment currently - <tr> - <td> - <label for="add_start">{'Postponed availability in days'|@translate}</label> - </td> - <td> - <select name="add_start" id="add_start" style="width: 10em" - onfocus="this.className='focus';" - onblur="this.className='nofocus';"> - <!-- BEGIN add_start --> - <option value="{add_start.VALUE}" - {add_start.SELECTED}>{add_start.CONTENT} - </option> - <!-- END add_start --> - </select> - </td> - </tr> - *} - - {* Opened service only for n days *} - <tr> - <td> - <label for="add_end">{'Duration in days'|@translate}</label> - </td> - <td> - <select name="add_end" id="add_end" style="width: 10em" - onfocus="this.className='focus';" - onblur="this.className='nofocus';"> - {html_options values=$add_ends output=$add_ends} - </select> - </td> - </tr> - - {* Idendify your partner (name / website / phone) as you want *} - <tr> - <td> - <label for="add_Comment">{'ws_Comment'|@translate}</label> - <br /> - </td> - <td> - <textarea name="add_comment" id="add_comment" - rows="4" cols="80">{'Comment to identify your partner clearly'|@translate}</textarea> - </td> - </tr> - - {* Add submit button *} - <tr> - <td> - </td> - <td> - <input class="submit" type="submit" name="wsa_submit" style="width: 10em; padding-top: 3px;" - value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} - title="{'Add this access definition'|@translate}" /> - </td> - </tr> - </table> - </fieldset> -</form> - -{if !empty($access_list)} -<!-- Access list --> -<form method="post" name="preferences" action="{$F_STATUS_ACTION}"> - <input type="hidden" name="partner_prev" value="{$F_PREV_PARTNER}"> - <input type="hidden" name="request_prev" value="{$F_PREV_REQUEST}"> - <input type="hidden" name="high_prev" value="{$F_PREV_HIGH}"> - <input type="hidden" name="normal_prev" value="{$F_PREV_NORMAL}"> - <input type="hidden" name="order_prev" value="{$F_PREV_ORDER}"> - <input type="hidden" name="dir5n_prev" value="{$F_PREV_DIR5N}"> - <!-- Delete / Update Selected --> - <fieldset> - <legend>{'ws_update_legend'|@translate}</legend> - <table class="table2"> - <tr class="throw"> - <th> </th> - <th>{'ws_KeyName'|@translate}</th> - <th>{'ws_Access'|@translate}</th> - <th>{'ws_End'|@translate}</th> - <th>{'ws_Request'|@translate}</th> - <th>{'ws_Limit'|@translate}</th> - <th>{'ws_Comment'|@translate}</th> - </tr> - {foreach from=$access_list item=access name=access_loop} - <tr class="{if $smarty.foreach.access_loop.index is odd}row1{else}row2{/if}"> - <td> - <input type="radio" name="selection" - value="{$access.ID}" id="selection-{$access.ID}"> - </td> - <td><label for="selection-{$access.ID}">{$access.NAME}</label></td> - <td>{$access.TARGET}</td> - <td>{$access.END}</td> - <td>{$access.REQUEST}</td> - <td>{$access.LIMIT}</td> - <td>{$access.COMMENT}</td> - </tr> - {/foreach} - </table> - - <table> - <tr> - <td> - {'ws_delete_legend'|@translate} - </td> - <td> - <input type="radio" name="delete_confirmation" - value="true"> - <input class="submit" type="submit" name="wsX_submit" style="width: 10em; padding-top: 3px;" - value="{'Delete'|@translate}" {$TAG_INPUT_ENABLED}> - </td> - </tr> - </table> - <hr> - <table> - <tr> - <td> - <span class="property"> - <label for="upd_end">{'Modify End from Now +'|@translate} </label> - </span> - <select name="upd_end" id="upd_end" style="width: 10em" - onfocus="this.className='focus';" - onblur="this.className='nofocus';"> - {html_options values=$add_ends output=$add_ends} - </select> - <input class="submit" type="submit" name="wsu_submit" style="width: 10em; padding-top: 3px;" - value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> - </td> - <td> - <i><small> ({'Web Services availability duration in days'|@translate})</small></i> - </td> - </tr> - </table> - - </fieldset> -</form> -{/if} - -{if isset($WS_STATUS)} - <h3>{$WS_STATUS}</h3> -{/if} |