Ignore:
Timestamp:
Jul 22, 2009, 12:34:42 AM (15 years ago)
Author:
tiico
Message:

Some corrections
Add EN translation (only for the core, not for modules)
Add comment options (%ID)

Location:
extensions/Flash_Gallery
Files:
1 added
2 deleted
16 edited

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/admin/add_module.php

    r3531 r3663  
    4141                WHERE id = ' . $_GET['edit'] . ';');
    4242
     43    // Force le submit pour sauvegarder les données éventuellement modifiées lors du RAZ des paramètres. Pas de redirection dans ce cas
     44    $_POST['submit'] = 'no_redirect';
    4345}
    4446
     
    5759    else
    5860    {
    59 // id, pos, name, descr, type, datas, users, groups, show_title, on_home, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, id_line
    6061      $module_name = $_POST['module_name'];
    6162      $desc = (!empty($_POST['module_desc']) ? '"' . $_POST['module_desc'] . '"' : 'NULL');
     
    7879       
    7980          $height = (!empty($_POST['flashgal_height']) ? '"'.$_POST['flashgal_height'].'"' : "NULL");
     81      $maxcomment = (!empty($_POST['flashgal_max_comment']) ? '"'.$_POST['flashgal_max_comment'].'"' : "0");;
    8082         
    81 //        $sav_datas = (!empty($datas) ? '"' . addslashes(serialize($datas)) . '"' : 'NULL');
    8283          $sav_ext_datas = (!empty($ext_datas) ? '"' . addslashes(serialize($ext_datas)) . '"' : 'NULL');
    8384       
     
    9697        if (isset($_GET['edit']))
    9798      {         
    98 // // id, pos, name, descr, type, datas, users, groups, show_title, on_home, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent       
    9999         
    100100        pwg_query('
     
    118118                                transparent=' . $transparent .',
    119119                                fullscreen=' . $fullscreen .',
    120                                 bgcolor="' . $bgcolor .'"
     120                                bgcolor="' . $bgcolor .'",
     121                maxcomment=' . $maxcomment . '
    121122
    122123                        WHERE id = ' . $_GET['edit'] . ';');
     
    132133               
    133134        $query = '
    134 INSERT INTO ' . FLASHGAL_TABLE . ' ( id, pos, name, descr, type, datas, ext_datas, users, groups, show_title, on_home, on_home_global, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, fullscreen, bgcolor)
     135INSERT INTO ' . FLASHGAL_TABLE . ' ( id, pos, name, descr, type, datas, ext_datas, users, groups, show_title, on_home, on_home_global, on_cats, cats, recurs_cats, replace_thumb, replace_cats, height, transparent, fullscreen, bgcolor, maxcomment)
    135136VALUES (' . $next_element_id . ' ,
    136137        ' . $pos . ',
     
    153154        ' . $transparent .',
    154155        ' . $fullscreen .',
    155         "' . $bgcolor .'"
     156        "' . $bgcolor .'",
     157    ' . $maxcomment . '
    156158  );';
    157159 
     
    161163      }
    162164
    163       redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php');
     165      if ($_POST['submit'] != 'no_redirect')
     166        redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php');
    164167    }
    165168  }
     
    194197    'replace_thumb_CHECKED' => ($module['replace_thumb'] == 'true' ? 'checked="checked"' : ''),
    195198    'replace_cats_CHECKED' => ($module['replace_cats'] == 'true' ? 'checked="checked"' : ''),
    196         'ENABLERESTORE' => true
     199        'ENABLERESTORE' => true,
     200    'FLASHGAL_MAX_COMMENT'  => (isset($module['maxcomment']) ? $module['maxcomment'] : '0')
    197201       
    198202        ));
     
    218222    'FLASHGAL_FULLSCREEN' =>  'checked="checked"',
    219223        'FLASHGAL_BGCOLOR' => '#FFFFFF',       
    220         'ENABLERESTORE' => false
    221        
     224        'ENABLERESTORE' => false,
     225        'FLASHGAL_MAX_COMMENT'  => '0'
    222226       
    223227        ));
     
    239243}
    240244
    241 ///
    242 // tiico : ajouter la récupération des données par défaut (présentes dans le fichier module.inc.php)
    243 ///
     245
     246// Recuperation des données pour les informations a parametrer dans le flux
    244247        foreach ($module_data['datas'] as $key => $value)
    245248        {
     
    247250                {
    248251                        $template->append( 'FlashGal_Param', array(
    249 //                                      $key                    => true,
    250252                                        'name'  => $key,                                                // nom du parametre
    251253                                        'lib'           => l10n($key),          // libelle du parametre
     
    267269            true);
    268270
    269 //    $datas = array($key => $datas[$key]);
    270        
    271271
    272272// Configuration supplémentaire du module (dans le cas ou il y a d'autres parametres)
  • extensions/Flash_Gallery/admin/admin.php

    r3531 r3663  
    5151}
    5252
     53//cyclage sur le parametre on_home
     54if (isset($_GET['id']) and isset($_GET['home']) and !is_adviser())
     55{
     56    $home = $_GET['home'];
     57    $global = isset($_GET['global']) ? $_GET['global'] : 'selective';
     58    // ordre : homeOFF -> HomeON -> HomeONGlobal
     59    if ($home == 'true' and $global == 'selective')
     60        $global = 'global';
     61    elseif ($home == 'true' and $global == 'global')
     62        $home = 'false';
     63    else
     64    {
     65        $home = 'true';
     66        $global = 'selective';
     67    }
     68
     69        pwg_query( 'UPDATE ' . FLASHGAL_TABLE . '
     70                SET on_home="' . $home. '", on_home_global="' . $global . '"   
     71                WHERE id=' . $_GET['id'] . ' LIMIT 1');
     72
     73  redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php');
     74}
     75//cyclage sur le parametre on_cats
     76if (isset($_GET['id']) and isset($_GET['cats']) and !is_adviser())
     77{
     78    // ordre : catsOFF -> catsON
     79        pwg_query( 'UPDATE ' . FLASHGAL_TABLE . '
     80                SET on_cats="' . ($_GET['cats'] == 'true' ? 'false' : 'true'). '"
     81                WHERE id=' . $_GET['id'] . ' LIMIT 1');
     82
     83  redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php');
     84}
     85
     86if (isset($_GET['id']) and isset($_GET['recurs']) and !is_adviser())
     87{
     88    // ordre : recursOFF -> recursON
     89        pwg_query( 'UPDATE ' . FLASHGAL_TABLE . '
     90                SET recurs_cats="' . ($_GET['recurs'] == 'true' ? 'false' : 'true'). '"
     91                WHERE id=' . $_GET['id'] . ' LIMIT 1');
     92
     93  redirect(PHPWG_ROOT_PATH.'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php');
     94}
     95
    5396//Récupération des modules disponibles
    5497$modules = get_flashgal_modules();
  • extensions/Flash_Gallery/admin/manage.php

    r3531 r3663  
    5353        'ICON_INFO'                     => FLASHGAL_PATH . 'img/infos.png',
    5454        'SCREEN'                        => FLASHGAL_PATH . '/modules/'. $module['type'].'/screenshot.jpg',
    55     'U_EDIT' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadd_module.php&type=' . $module['type'] . '&edit=' . $module['id'],
    56     'U_DELETE' => !is_adviser() ? PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&del=' . $module['id'] : '',
     55    'U_EDIT'            => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadd_module.php&type=' . $module['type'] . '&edit=' . $module['id'],
     56    'U_DELETE'          => !is_adviser() ? PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&del=' . $module['id'] : '',
     57    'U_HOME'            => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&home=' . $module['on_home'] . '&global=' .$module['on_home_global'],
     58    'U_CATS'            => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&cats=' . $module['on_cats'],
     59    'U_RECURS'          => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . FLASHGAL_DIR . '%2Fadmin%2Fadmin.php&id=' . $module['id'] .'&recurs=' . $module['recurs_cats'],
    5760  ));
    5861}
  • extensions/Flash_Gallery/admin/template/add_module.tpl

    r3531 r3663  
    7575                        <td colspan="3"><input type="checkbox" name="show_title" value="1" {$show_title_CHECKED}>&nbsp;&nbsp;{'flashgal_show_title'|@translate}</td>
    7676                </tr>
    77                 <tr><td><br></td></tr>
     77                <tr><td colspan="3">&nbsp;</td></tr>
    7878
    7979                <tr>
     
    8181                        <td colspan="2"><input type="text" size="3" maxlength="3" value="{$FLASHGAL_HEIGHT}" name="flashgal_height">&nbsp;px</td>
    8282                </tr>
     83                <tr><td colspan="3">&nbsp;</td></tr>
     84                <tr>
     85                        <td> &nbsp; </td>
     86                    <td colspan="2">
     87                                 - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/>&nbsp; {'flashgal_transparent'|@translate}
     88                        </td>
     89                </tr>
    8390                <tr>
    8491                        <td> {'flashgal_cfg_option'|@translate} &nbsp; </td>
    8592                    <td colspan="2">
    86                                  - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/>&nbsp; {'flashgal_transparent'|@translate}
    87                                  <br/>
    8893                                 - <input type="checkbox" name="flashgal_fullscreen" {$FLASHGAL_FULLSCREEN}/>&nbsp; {'flashgal_fullscreen'|@translate}
    89                                  <br/>
     94                        </td>
     95                <tr>
     96                        <td> &nbsp; </td>
     97                    <td colspan="2">
    9098                                 - {'flashgal_bgcolor'|@translate}&nbsp;  <input type="text" size="7" maxlength="7" name="flashgal_bgcolor" class="colorwell" value="{$FLASHGAL_BGCOLOR}" />
    91                                  <br/>
     99                        </td>
     100                </tr>
     101                <tr>
     102                        <td> &nbsp; </td>
     103                    <td colspan="2">
    92104                                 - <input type="checkbox" name="flashgal_recurs_cats" {$FLASHGAL_RECURS_CATS}/>&nbsp; {'flashgal_recurs_cats'|@translate}
    93105                        </td>
    94                 </tr>
    95                 <tr>
    96                         <td></td>
    97                         <td><br><hr></td>
    98                         <td></td>
     106                <tr><td colspan="3">&nbsp;</td></tr>
     107                <tr><td colspan="3">&nbsp;</td></tr>
     108       
     109        </table>
     110        <table>
     111                <tr>
     112            <td></td>
     113            <td><br><hr></td>
     114            <td></td>
    99115                </tr>
    100116                <tr>
     
    232248                 <td> &nbsp; </td>
    233249          </tr>
     250          <tr>
     251                 <td> <b>%ID</b> : <input type="text" size="1" maxlength="1" value="{$FLASHGAL_MAX_COMMENT}" name="flashgal_max_comment" /> {'img_comment_legend'|@translate} </td>
     252                 <td> &nbsp; </td>
     253                 <td> &nbsp; </td>
     254          </tr>
    234255        </table>
    235256       
  • extensions/Flash_Gallery/admin/template/manage.tpl

    r3531 r3663  
    7979      {if $module.TYPE != 'MainBlock'}
    8080      <ul class="categoryActions">
    81                 <li><img src="{$module.ON_HOME}"  title="{$module.ON_HOME_LIB}"/></li>       
    82                 <li><img src="{$module.ON_CATS}"   title="{$module.ON_CATS_LIB}"/></a></li>       
    83         <li><img src="{$module.RECURS_CATS}"  title="{$module.RECURS_CATS_LIB}"/></a></li>       
     81                <li><a href="{$module.U_HOME}" title="{$module.ON_HOME_LIB}"><img src="{$module.ON_HOME}"  title="{$module.ON_HOME_LIB}"/></a></li>       
     82                <li><a href="{$module.U_CATS}" title="{$module.ON_CATS_LIB}"><img src="{$module.ON_CATS}"   title="{$module.ON_CATS_LIB}"/></a></li>       
     83        <li><a href="{$module.U_RECURS}" title="{$module.RECURS_CATS_LIB}"><img src="{$module.RECURS_CATS}"  title="{$module.RECURS_CATS_LIB}"/></a></li>       
    8484               
    8585                <li><a href="{$module.U_EDIT}" title="{'flashgal_edit'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'flash_edit'|@translate}"/></a></li>
  • extensions/Flash_Gallery/generate-xml.php

    r3531 r3663  
    233233        foreach ($pictures as $row)
    234234        {
    235 //      echo "prev=".$prev_catid;
    236 //      echo "catid=".$row['CATID'];
    237235                // Alimentation des variables pour la constitution du flux xml
    238236                foreach ($module_data['datas'] as $keydata => $valuedata)
    239237                {
    240238                        if ($valuedata) // == true
    241                                 $picture[$keydata] =  parse($module['datas'][$keydata], $row);
     239                                $picture[$keydata] =  parse($module['datas'][$keydata], $row, $module['maxcomment']);
    242240                        else
    243241                                $picture[$keydata] = '';
     
    274272unset_make_full_url();
    275273
    276 function parse($data, $row)
    277 {
     274function parse($data, $row, $nb_comment = 0)
     275{
     276        // Eviter de charger les commentaires (appels base) si ils ne sont pas affichés
     277        if (strpos($data, '%ID') === false)
     278                $nb_comment = 0;
     279
    278280        include (FLASHGAL_PATH.'include/config_param.inc.php');
    279281
     
    282284        foreach ($flashgal_parse as $key => $value)
    283285        {
    284 //              echo "key=".$key."  value=".$value."\n";
    285286                array_push($patterns, $key);
    286287                array_push($replacements, $value);
     
    288289
    289290        return str_replace($patterns, $replacements, $data);
    290 //      echo "output=".$output;
    291 //      return $output;
     291}
     292
     293// Return the last comments of an image id
     294function get_comment($img_id, $nb_comment = 0)
     295{
     296        $commentstring = '';
     297
     298        if ($nb_comment != 0)
     299        {
     300                $query = '
     301                SELECT id,author,date,image_id,content
     302                  FROM '.COMMENTS_TABLE.'
     303                  WHERE image_id = '.$img_id.'
     304                        AND validated = \'true\'
     305                  ORDER BY date ASC
     306                  LIMIT 0,'.$nb_comment.'
     307                ;';
     308                $result = pwg_query( $query );
     309                $first = true;
     310
     311                while ($row = mysql_fetch_array($result))
     312                {
     313               
     314                // Format : "Commentaire (Utilisateur - Date)"
     315                        $commentstring .= ($first ?  '' : " / \n")
     316                                        .trigger_event('render_comment_content',$row['content'])
     317                                        .' ('. trigger_event('render_comment_author',
     318                                                                empty($row['author'])
     319                                                                ? l10n('guest')
     320                                                                : $row['author'])
     321                                        .' - '
     322                                        .format_date( $row['date'], false)
     323                                        .")";
     324                                       
     325                        $first = false;
     326
     327                }
     328        }
     329        return $commentstring; 
    292330}
    293331
  • extensions/Flash_Gallery/include/class.inc.php

    r3599 r3663  
    116116            {
    117117                $this->pos = 'end';
    118                 continue;
     118                return;
    119119            }
    120120
     
    122122                {
    123123                $authorized_groups = explode(',', $module['groups']);
    124                 if (array_intersect($this->user_groups, $authorized_groups) == array()) continue;
     124                if (array_intersect($this->user_groups, $authorized_groups) == array()) return;
    125125        }
    126126
     
    169169          $block['BGCOLOR'] = $module['bgcolor'];
    170170
    171           if ((include(FLASHGAL_PATH . 'modules/' . $module['type'] . '/main.inc.php')) === false) continue;
     171          if ((include(FLASHGAL_PATH . 'modules/' . $module['type'] . '/main.inc.php')) === false) return;
    172172         
    173173          $this->set_tpl_block($block, $module);
  • extensions/Flash_Gallery/include/config_param.inc.php

    r3531 r3663  
    4545                                                                                  : '',                                                         
    4646                '%IC'   => isset($row['IMGFILE']) ? $row['IMGFILE'] : ''  ,
     47                '%ID'   => isset($row['IMGID']) ? get_comment($row['IMGID'], $nb_comment) : ''  ,
    4748
    4849                '%G1'   => get_root_url(),
     
    6970        %IB : IMGHIGHFULL       Lien complet vers High
    7071        %IC : IMGFILE           nom_fichier
    71 
     72        %ID : Commentaires
     73   
    7274%Gx Generaux
    7375        %G1 :           root path : URL du piwigo
  • extensions/Flash_Gallery/language/en_UK/plugin.lang.php

    r3531 r3663  
    11<?php
    22
    3 $lang['stuffs_mods_management'] = 'Modules management';
    4 $lang['stuffs_add_mod'] = 'Add a module';
    5 $lang['stuffs_edit_mod'] = 'Edit module';
     3$lang['flashgal_mods_management'] = 'Modules management';
     4$lang['flashgal_add_mod'] = 'Add a module';
     5$lang['flashgal_edit_mod'] = 'Edit module';
    66
    7 $lang['stuffs_module_title'] = 'Module title';
    8 $lang['stuffs_desc'] = 'Description';
    9 $lang['stuffs_only_for_admin'] = '(only for administration pannel)';
    10 $lang['stuffs_type'] = 'Module type';
    11 $lang['stuffs_position'] = 'Position';
    12 $lang['stuffs_id_ligne'] = 'ID line';
    13 $lang['stuffs_width'] = 'Width';
    14 $lang['stuffs_action'] = 'Actions';
    15 $lang['stuffs_edit'] = 'Modify module';
    16 $lang['stuffs_delete'] = 'Delete module';
    17 $lang['stuffs_confirm_delete'] = 'Are you sure you want to delete module %s?';
    18 $lang['stuffs_main_block'] = 'Main block';
     7$lang['flashgal_module_title'] = 'Module title';
     8$lang['flashgal_desc'] = 'Description';
     9$lang['flashgal_only_for_admin'] = '(only for administration pannel)';
     10$lang['flashgal_type'] = 'Module Type';
     11$lang['flashgal_action'] = 'Actions';
     12$lang['flashgal_edit'] = 'Modify module';
     13$lang['flashgal_delete'] = 'Delete module';
     14$lang['flashgal_confirm_delete'] = 'Are you sure you want to delete module %s?';
     15$lang['flashgal_main_block'] = 'Main Block';
    1916
    20 $lang['stuffs_add_module'] = 'Add new module';
    21 $lang['stuffs_module_config'] = 'Module configuration';
    22 $lang['stuffs_visual_config'] = 'Display configuration';
    23 $lang['stuffs_module_options'] = 'Module options';
    24 $lang['stuffs_authorized_group'] = 'Authorized groups';
    25 $lang['stuffs_authorized_users'] = 'Authorized users';
    26 $lang['stuffs_public_module'] = '(Keep empty for public module)';
    27 $lang['stuffs_show_title'] = 'Show module title';
    28 $lang['stuffs_show_module_on'] = 'Show module :';
    29 $lang['stuffs_show_on_home'] = 'On main page';
    30 $lang['stuffs_show_on_cats'] = 'On all categories pages';
    31 $lang['stuffs_show_on_pictures'] = 'On picture pages';
    32 $lang['stuffs_no_options'] = 'No options for this module';
     17$lang['flashgal_add_module'] = 'Add new module';
     18$lang['flashgal_module_config'] = 'Module configuration';
     19$lang['flashgal_visual_config'] = 'Display configuration';
     20$lang['flashgal_module_options'] = 'Options du module';
     21$lang['flashgal_authorized_group'] = 'Authorized groups';
     22$lang['flashgal_authorized_users'] = 'Authorized users';
     23$lang['flashgal_public_module'] = '(Keep empty for public module)';
     24$lang['flashgal_show_title'] = 'Show module title';
     25$lang['flashgal_show_module_on'] = 'Show module :';
     26$lang['flashgal_show_on_home'] = 'On main page';
     27$lang['flashgal_show_on_home_global']           = 'Global Mode (All categories)';
     28$lang['flashgal_show_on_home_selective']        = 'Selective Mode (Selected categories)';
     29$lang['flashgal_show_on_cats'] = 'On categories pages selected below';
    3330
    34 //Messages d'infos
    35 $lang['stuffs_order_saved'] = 'Order successfully saved.';
     31$lang['flashgal_xml_config']    = 'Informations show on the module (in the xml feed)';
     32$lang['flashgal_cfg_heigh']     =   'Height';
     33$lang['flashgal_cfg_option']    = 'Module options';
     34$lang['flashgal_transparent']   = 'Allow Transparent mode';
     35$lang['flashgal_fullscreen']    = 'Allow Full Screen';
     36$lang['flashgal_bgcolor']               = 'Background color';
     37
     38$lang['flashgal_recurs_cats']   = 'Recursivity on children categories';
     39$lang['flashgal_cfg_replacenav']        = 'Replace piwigo display by the module';
     40$lang['flashgal_replace_thumb'] = 'Replace thumbnail display';
     41$lang['flashgal_replace_cats']  = 'Replace categories display';
     42$lang['flashgal_cfg_cat']       = 'Show module on caterogies pages :';
     43
     44$lang['flashgal_xml_legend']    = 'Parameters for variables below';
     45
     46//legende
     47$lang['piclens_picture_legend']     = 'Picture';
     48$lang['piclens_cat_legend']                 = 'Category';
     49$lang['piclens_global_legend']          = 'Global';
     50$lang['img_id_legend']                          = 'Picture ID'; // %I1
     51$lang['img_name_legend']                        = 'Picture Name';       // %I2
     52$lang['img_description_legend']         = 'Picture Description'; // %I3
     53$lang['img_author_legend']                      = 'Picture Author';     // %I4
     54$lang['img_URLThumb_legend']            = 'Thumbnail URL (URL From gallerie)'; // %I5
     55$lang['img_URLNormal_legend']           = 'Piture URL (URL From gallerie)';     // %I6
     56$lang['img_URLHigh_legend']                     = 'HD Picture URL (URL From gallerie)'; // %I7
     57$lang['img_URLPicturephp_legend']       = 'Link to picture page (picture.php)'; //%I8
     58$lang['img_URLThumbFull_legend']        = 'Thumbnail URL (full URL)'; // %I9
     59$lang['img_URLNormalFull_legend']       = 'Piture URL (Full URL)';      // %IA
     60$lang['img_URLHighFull_legend']         = 'HD Picture URL (Full URL)';  // %IB
     61$lang['img_filename_legend']            = 'Picture file name'; // %IC
     62$lang['img_comment_legend']                     = 'Last comments'; // %ID
     63
     64$lang['root_path_legend']                       = 'Pïwigo path'; // %G1
     65
     66$lang['cat_id_legend']                          = 'Category ID'; // %C1
     67$lang['cat_name_legend']                        = 'Category name'; // %C2
     68$lang['cat_description_legend']         = 'Category description'; // %C3
     69$lang['cat_dir_legend']                         = 'Path to category (path from Gallerie)'; // %C4
     70$lang['cat_dirFull_legend']                     = 'Path to category (Full path)'; // %C4
     71// Fin legende
     72
     73$lang['flashgal_on_home_global_ON_label']       = 'Active on Home (All categories)';
     74$lang['flashgal_on_home_ON_label']                      = 'Active on Home (selected categories)';
     75$lang['flashgal_on_home_OFF_label']                     = 'Inactive on Home';
     76$lang['flashgal_oncats_ON_label']                       = 'Active on Categories';
     77$lang['flashgal_oncats_OFF_label']                      = 'Inactive on Categories';
     78$lang['flashgal_recurs_ON_label']                       = 'Recursivity active';
     79$lang['flashgal_recurs_OFF_label']                      = 'Recursivity inactive';
    3680
    3781
    38 // Messages d'erreurs
    39 $lang['stuffs_error_no_mod_selected'] = 'You didn\'t select any module.';
    40 $lang['stuffs_no_name'] = 'You must specify name module';
    4182
    42 //------------------------------------------------------------------------------
    43 //                                                      Module LastComs
    44 //------------------------------------------------------------------------------
     83$lang['img_id']                         = 'Picture\'s ID';
     84$lang['img_name']                       = 'Picture\'s name';
     85$lang['img_description']        = 'Picture\'s description';
     86$lang['img_URLThumb']           = 'URL for Picture thumbnail';
     87$lang['img_URLNormal']          = 'URL for Picture';
     88$lang['img_URLHigh']            = 'URL for Picture High Definition';
     89$lang['img_URLPicturephp']      = 'Link to picture on piwigo (picture.php)';
    4590
    46 $lang['module_name_LastComs'] = 'Last comments';
    47 $lang['module_desc_LastComs'] = 'Display last posted comments';
    48 
    49 $lang['lastcoms_no_nb_comments'] = 'You must specify numbers of comments.';
    50 $lang['lastcoms_config'] = 'Configuration';
    51 $lang['lastcoms_nb_comments'] = 'Number of comments to display';
    52 $lang['lastcoms_show_buttons'] = 'Show admin buttons';
    53 $lang['lastcoms_dim'] = 'Thumbnails size';
    54 $lang['lastcoms_width'] = 'Max width';
    55 $lang['lastcoms_height'] = 'Max height';
    56 $lang['lastcoms_nb_cadres'] = 'Numbers of frame by line';
    57 $lang['lastcoms_taille_cadres'] = 'Frame height';
     91$lang['cat_id']                         = 'Category\'s ID';
     92$lang['cat_name']                       = 'Category\'s name';
     93$lang['cat_description']        = 'Category\'s description';
    5894
    5995
    60 //------------------------------------------------------------------------------
    61 //                                                      Module Logon
    62 //------------------------------------------------------------------------------
     96$lang['flashgal_restore']       = 'Default Parameters';
     97$lang['flashgal_no_options'] = 'No options for this module';
     98//Messages d'infos
     99$lang['flashgal_order_saved'] = 'Order successfully saved.';
    63100
    64 $lang['module_name_Logon'] = 'Login';
    65 $lang['module_desc_Logon'] = 'Display login block';
    66 
    67 $lang['logon_remove_menubar_block'] = 'Remove "Quick connect" block from menubar';
    68 
    69 
    70 //------------------------------------------------------------------------------
    71 //                                                      Module Personal
    72 //------------------------------------------------------------------------------
    73 
    74 $lang['module_name_Personal'] = 'Personnal block';
    75 $lang['module_desc_Personal'] = 'Display personnal block (like an edito)';
    76 
    77 $lang['personal_content'] = 'content';
    78 
    79 
    80 //------------------------------------------------------------------------------
    81 //                                                      Module Tags
    82 //------------------------------------------------------------------------------
    83 
    84 $lang['module_name_Tags'] = 'Tags';
    85 $lang['module_desc_Tags'] = 'Display gallery tags';
    86 
    87 $lang['stuffs_tags_default_display'] = 'Tags display';
    88 $lang['stuffs_tags_cloud'] = 'Tags cloud';
    89 $lang['stuffs_tags_letters'] = 'Group by lettters';
    90 $lang['stuffs_tags_cumulus'] = 'Use cumulus mode (plugin <a href=http://piwigo.org/ext/extension_view.php?eid=263 target="_blank">Cumulus Tags Cloud</a> must be installed)';
    91 
    92 
    93 //------------------------------------------------------------------------------
    94 //                                                      Module Piclenswall
    95 //------------------------------------------------------------------------------
    96 
    97 $lang['module_name_piclenswall'] = 'Piclens 3DWall';
    98 $lang['module_desc_piclenswall'] = 'Display piclens 3D wall (plugin <a href="http://piwigo.org/ext/extension_view.php?eid=234" target="_blank">Cooliris/piclens</a> must be installed)';
    99 
    100 $lang['piclenswall_height'] = 'Wall height';
    101 $lang['piclenswall_background_color'] = 'Background color';
    102 $lang['piclenswall_black'] = 'Black';
    103 $lang['piclenswall_white'] = 'White';
    104 $lang['piclenswall_info'] = 'So that the wall is working properly';
    105 $lang['piclenswall_info_piclens'] = 'You must install and activate <a href="http://piwigo.org/ext/extension_view.php?eid=234">Cooliris/piclens</a> plugin.';
    106 $lang['piclenswall_info_crossdomain'] = 'You must copy <a href="%s">crossdomain.xml</a> file to the root of your site (or moddify existing file).';
    107 $lang['piclenswall_info_param'] = '3D Wall Settings must be modified in <b>Cooliris-piclens/b> plugin configuration page.';
    108 
    109 //------------------------------------------------------------------------------
    110 //                                                      Module Most Visited
    111 //------------------------------------------------------------------------------
    112 
    113 $lang['module_name_MostVisited'] = 'Most visited';
    114 $lang['module_desc_MostVisited'] = 'Display x most visited pictures in the gallery or a category';
    115 
    116 $lang['stuffs_mv_nb_images'] = 'Maximum number of pictures to display';
    117 $lang['stuffs_mv_category_display'] = 'Display on categories pages';
    118 $lang['stuffs_mv_all_cats'] = 'All categories';
    119 $lang['stuffs_mv_w_thumb'] = 'Only categories with thumbnails';
    120 $lang['stuffs_mv_wo_thumb'] = 'Only categories without thumbnails';
    121 $lang['stuffs_mv_selected_cats'] = 'Only selected categories';
    122 
    123 $lang['stuffs_mv_cat_selection'] = 'Categories selection';
    124 $lang['stuffs_mv_hold_ctrl'] = 'hold CTRL';
    125 
    126 //------------------------------------------------------------------------------
    127 //                                                      Module Best Rated
    128 //------------------------------------------------------------------------------
    129 
    130 $lang['module_name_BestRated'] = 'Best rated';
    131 $lang['module_desc_BestRated'] = 'Display x best rated pictures in the gallery or a category';
    132 
    133 //------------------------------------------------------------------------------
    134 //                                                      Module Recent
    135 //------------------------------------------------------------------------------
    136 
    137 $lang['module_name_Recent'] = 'Recent pictures';
    138 $lang['module_desc_Recent'] = 'Display x recent pictures in the gallery or a category (if exist)';
    139 
    140 //------------------------------------------------------------------------------
    141 //                                                      Module Random
    142 //------------------------------------------------------------------------------
    143 
    144 $lang['module_name_Random'] = 'Random pictures';
    145 $lang['module_desc_Random'] = 'Display x random pictures in the gallery or a category';
     101// Messages d'erreurs
     102$lang['flashgal_error_no_mod_selected'] = 'You didn\'t select any module.';
     103$lang['flashgal_no_name'] = 'You must specify name module';
    146104
    147105?>
  • extensions/Flash_Gallery/language/fr_FR/plugin.lang.php

    r3531 r3663  
    1515$lang['flashgal_only_for_admin'] = '(uniquement pour le panneau d\'administration)';
    1616$lang['flashgal_type'] = 'Type de module';
    17 $lang['flashgal_position'] = 'Position';
    18 $lang['flashgal_id_ligne'] = 'ID ligne';
    19 $lang['flashgal_width'] = 'Largeur';
    2017$lang['flashgal_action'] = 'Actions';
    2118$lang['flashgal_edit'] = 'Modifier le module';
     
    3633$lang['flashgal_show_on_home_global']           = 'Mode Global (Toutes les cat&eacute;gories)';
    3734$lang['flashgal_show_on_home_selective']        = 'Mode Selectif (Cat&eacute;gories s&eacute;lectionn&eacute;es)';
    38 $lang['flashgal_show_on_cats'] = 'Sur toutes les pages des catégories';
     35$lang['flashgal_show_on_cats'] = 'Sur les pages des catégories sélectionnées ci-dessous';
    3936
    4037$lang['flashgal_xml_config']    = 'Configuration des informations affich&eacute;es (dans le flux xml)';
     
    5451
    5552//legende
    56 $lang['flashgal_picture_legend']        = 'Image';
    57 $lang['flashgal_cat_legend']            = 'Cat&eacute;gorie';
    58 $lang['flashgal_global_legend']         = 'Global';
    59 $lang['img_id_legend']                          = 'ID de l\'image';     // %I1
    60 $lang['img_name_legend']                        = 'Nom de l\'image';    // %I2
    61 $lang['img_description_legend']         = 'Description de l\'image'; // %I3
    62 $lang['img_author_legend']                      = 'Auteur de l\'image'; // %I4
    63 $lang['img_URLThumb_legend']            = 'URL de la miniature (path non complet)'; // %I5
    64 $lang['img_URLNormal_legend']           = 'URL de l\'image (path non complet)'; // %I6
    65 $lang['img_URLHigh_legend']                     = 'URL de l\'image en haute d&eacute;finition (path non complet)';      // %I7
    66 $lang['img_URLPicturephp_legend']       = 'Lien vers l\'image sous PIWIGO (picture.php)';       //%I8
    67 $lang['img_URLThumbFull_legend']        = 'URL de la miniature (path complet)'; // %I9
    68 $lang['img_URLNormalFull_legend']       = 'URL de l\'image (path complet)';     // %IA
    69 $lang['img_URLHighFull_legend']         = 'URL de l\'image en haute d&eacute;finition (path complet)';  // %IB
    70 $lang['img_filename_legend']            = 'Nom du fichier image'; // %IC
     53$lang['piclens_picture_legend']     = 'Picture';
     54$lang['piclens_cat_legend']                 = 'Category';
     55$lang['piclens_global_legend']          = 'Global';
     56$lang['img_id_legend']                          = 'Picture ID'; // %I1
     57$lang['img_name_legend']                        = 'Picture Name';       // %I2
     58$lang['img_description_legend']         = 'Picture Description'; // %I3
     59$lang['img_author_legend']                      = 'Picture Author';     // %I4
     60$lang['img_URLThumb_legend']            = 'Thumbnail URL (URL From gallerie)'; // %I5
     61$lang['img_URLNormal_legend']           = 'Piture URL (URL From gallerie)';     // %I6
     62$lang['img_URLHigh_legend']                     = 'HD Picture URL (URL From gallerie)'; // %I7
     63$lang['img_URLPicturephp_legend']       = 'Link to picture page (picture.php)'; //%I8
     64$lang['img_URLThumbFull_legend']        = 'Thumbnail URL (full URL)'; // %I9
     65$lang['img_URLNormalFull_legend']       = 'Piture URL (Full URL)';      // %IA
     66$lang['img_URLHighFull_legend']         = 'HD Picture URL (Full URL)';  // %IB
     67$lang['img_filename_legend']            = 'Picture file name'; // %IC
     68$lang['img_comment_legend']                     = 'Last comments'; // %ID
    7169
    72 $lang['root_path_legend']                       = 'Path de piwigo'; // %G1
     70$lang['root_path_legend']                       = 'Pïwigo path'; // %G1
    7371
    74 $lang['cat_id_legend']                          = 'ID de la cat&eacute;gorie'; // %C1
    75 $lang['cat_name_legend']                        = 'Nom de la cat&eacute;gorie'; // %C2
    76 $lang['cat_description_legend']         = 'Description de la cat&eacute;gorie'; // %C3
    77 $lang['cat_dir_legend']                         = 'R&eacute;pertoire de la cat&eacute;gorie (path non complet)'; // %C4
    78 $lang['cat_dirFull_legend']                     = 'R&eacute;pertoire de la cat&eacute;gorie (path complet)'; // %C5
     72$lang['cat_id_legend']                          = 'Category ID'; // %C1
     73$lang['cat_name_legend']                        = 'Category name'; // %C2
     74$lang['cat_description_legend']         = 'Category description'; // %C3
     75$lang['cat_dir_legend']                         = 'Path to category (path from Gallerie)'; // %C4
     76$lang['cat_dirFull_legend']                     = 'Path to category (Full path)'; // %C4
    7977// Fin legende
    8078
  • extensions/Flash_Gallery/main.inc.php

    r3531 r3663  
    22/*
    33Plugin Name: Flash Gallery
    4 Version: 0.0.1
     4Version: 0.0.2
    55Description: Insert Flash on your gallery
    6 Plugin URI:
    7 Author:
     6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=299
     7Author:  Tiico
    88Author URI:
    99*/
     10// See CHANGELOG for release informations
    1011
    1112if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
  • extensions/Flash_Gallery/maintain.inc.php

    r3531 r3663  
    3333                        `fullscreen` enum(\'true\',\'false\') NOT NULL,
    3434                        `bgcolor` varchar(7) default NULL,
     35                        `maxcomment` smallint(9) default 0,
    3536                       
    3637                        PRIMARY KEY  (`id`),
     
    4142
    4243        // Main Bloc insertion
    43     $q = "INSERT INTO `" . $prefixeTable . "flash_gallery` (`id`, `pos`, `name`, `descr`, `type`, `datas`, `ext_datas`,`users`, `groups`, `show_title`, `on_home`, `on_home_global`, `on_cats`, `cats`, `recurs_cats`, `replace_thumb`, `replace_cats`, `height`, `transparent`, `fullscreen`, `bgcolor`)
    44 VALUES (0, 1, 'MainBlock', NULL, 'MainBlock', NULL, NULL, 'guest,generic,normal,admin,webmaster', NULL, 'true', 'true', 'global', 'true', NULL, 'false', 'false', 'false', NULL, 'false', 'false', '#FFFFFF');";
     44    $q = "INSERT INTO `" . $prefixeTable . "flash_gallery` (`id`, `pos`, `name`, `descr`, `type`, `datas`, `ext_datas`,`users`, `groups`, `show_title`, `on_home`, `on_home_global`, `on_cats`, `cats`, `recurs_cats`, `replace_thumb`, `replace_cats`, `height`, `transparent`, `fullscreen`, `bgcolor`, `maxcomment`)
     45VALUES (0, 1, 'MainBlock', NULL, 'MainBlock', NULL, NULL, 'guest,generic,normal,admin,webmaster', NULL, 'true', 'true', 'global', 'true', NULL, 'false', 'false', 'false', NULL, 'false', 'false', '#FFFFFF', '0');";
    4546    pwg_query($q);
    4647
  • extensions/Flash_Gallery/modules/Carousel/admin/config.inc.php

    r3531 r3663  
    4545            <style>font_size: 12px; font-family: Verdana, _serif; color: #FFCC66;</style>
    4646            <position>above right</position>           <!-- [above, below] [left,center,right]-->
    47  
     47
     48            <background>yourimage.png</background>     <!-- image url -->
    4849        <scale9>14 14 14 14</scale9>                    <!-- [0,1000] pixels -->
    4950        <padding>8 12 8 12</padding>                    <!-- [-1000,1000] pixels -->
     
    107108'position2'             => 3, //"right"
    108109
     110'backgroundURL' => "",
     111'scale9top'     => "10",
     112'scale9right'   => "10",
     113'scale9bottom'  => "10",
     114'scale9left'    => "10",
     115'paddingtop'    => "5",
     116'paddingright'  => "5",
     117'paddingbottom' => "5",
     118'paddingleft'   => "5",
     119
    109120);
    110121
  • extensions/Flash_Gallery/modules/Carousel/admin/config.tpl

    r3531 r3663  
    214214        </tr>
    215215
     216        <tr><td colspan="3"><hr></td></tr>
     217        <tr>
     218                <td colspan="3"><label>{'Carousel_options_background'|@translate}</label>
     219                </td>
     220        </tr>
     221        <tr>
     222                <td>{'Carousel_backgroundURL'|@translate}</td>
     223                <td colspan="2"><input type="text" size="40" maxlength="200" name="Carousel_backgroundURL" value="{$Carousel_backgroundURL}" />&nbsp;</td>
     224        </tr>
     225
     226        <tr>
     227                <td>&nbsp;</td>
     228                <td align="center">{'Carousel_top'|@translate}</label></td>
     229                <td align="center">{'Carousel_bottom'|@translate}</td>
     230        </tr>
     231        <tr>
     232                <td>{'Carousel_scale9'|@translate}</td>
     233                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9top" value="{$Carousel_scale9top}" />&nbsp;px</td>
     234                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9bottom" value="{$Carousel_scale9bottom}" />&nbsp;px</td>
     235        </tr>
     236        <tr>
     237                <td>&nbsp;</td>
     238                <td align="center">{'Carousel_right'|@translate}</label></td>
     239                <td align="center">{'Carousel_left'|@translate}</td>
     240        </tr>
     241        <tr>
     242                <td>&nbsp;</td>
     243                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9right" value="{$Carousel_scale9right}" />&nbsp;px</td>
     244                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_scale9left" value="{$Carousel_scale9left}" />&nbsp;px</td>
     245        </tr>
     246       
     247        <tr>
     248                <td>&nbsp;</td>
     249                <td align="center">{'Carousel_top'|@translate}</label></td>
     250                <td align="center">{'Carousel_bottom'|@translate}</td>
     251        </tr>
     252        <tr>
     253                <td>{'Carousel_padding'|@translate}</td>
     254                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingtop" value="{$Carousel_paddingtop}" />&nbsp;px</td>
     255                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingbottom" value="{$Carousel_paddingbottom}" />&nbsp;px</td>
     256        </tr>
     257        <tr>
     258                <td>&nbsp;</td>
     259                <td align="center">{'Carousel_right'|@translate}</label></td>
     260                <td align="center">{'Carousel_left'|@translate}</td>
     261        </tr>
     262        <tr>
     263                <td>&nbsp;</td>
     264                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingright" value="{$Carousel_paddingright}" />&nbsp;px</td>
     265                <td align="center"><input type="text" size="6" maxlength="6" name="Carousel_paddingleft" value="{$Carousel_paddingleft}" />&nbsp;px</td>
     266        </tr>
    216267       
    217268</table>
  • extensions/Flash_Gallery/modules/Carousel/language/fr_FR/module.lang.php

    r3531 r3663  
    8484$lang['Carousel_position2']  = 'Horizontale';
    8585
     86$lang['Carousel_options_background']    = '<b><i>Param&egrave;tres du fond (bulles sur les images)</i></b>';
     87$lang['Carousel_backgroundURL'] = 'URL de l\'image de fond (bulles sur les images)';
     88$lang['Carousel_scale9']        = 'Echelle de l\'image de fond [0,1000]';
     89$lang['Carousel_padding']       = 'Contour de l\'image de fond [-1000,1000]';
    8690
    8791?>
  • extensions/Flash_Gallery/modules/Carousel/xml/header.xml.php

    r3531 r3663  
    4848       
    4949            <style>font-size: '.$module['ext_datas']['font_size'].'px; font-family: '.$module['ext_datas']['font_family'].', _serif; color: '.$module['ext_datas']['font_color'].';</style>
    50             <position>'.$module['ext_datas']['position1'].' '.$module['ext_datas']['position2'].'</position>           <!-- [above, below] [left,center,right]-->
    51          </titles>
     50            <position>'.$module['ext_datas']['position1'].' '.$module['ext_datas']['position2'].'</position>           <!-- [above, below] [left,center,right]-->'
     51                .(strlen($module['ext_datas']['backgroundURL']) ?
     52            '<background>'.$module['ext_datas']['backgroundURL'].'</background>     <!-- image url -->
     53            <scale9>'.$module['ext_datas']['scale9top'].' '
     54                                        .$module['ext_datas']['scale9right'].' '
     55                                        .$module['ext_datas']['scale9bottom'].' '
     56                                        .$module['ext_datas']['scale9left'].'</scale9>               <!-- [0,1000] pixels -->
     57            <padding>'.$module['ext_datas']['paddingtop'].' '
     58                                        .$module['ext_datas']['paddingright'].' '
     59                                        .$module['ext_datas']['paddingbottom'].' '
     60                                        .$module['ext_datas']['paddingleft'].'</padding>                 <!-- [-1000,1000] pixels -->'
     61                        : '')
     62                       
     63         .'</titles>
    5264    </options>
    5365
Note: See TracChangeset for help on using the changeset viewer.