Changeset 3637


Ignore:
Timestamp:
Jul 19, 2009, 3:11:12 PM (11 years ago)
Author:
tiico
Message:

Pb with last commit (3636)
Convert all file into UTF8 and Unix format
Add TODO in chinese language file

Location:
extensions/piclens
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/admin/piclenswallconfig2.php

    r3610 r3637  
    1111/* Advanced configuration for embeded wall
    1212
    13 backgroundAlpha — 0.0 to 1.0      Changes background transparency (Not Well Supported on IE).     To change the backgroundAlpha, you must set the FlashVar "wmode" to "transparent". You can change the alpha and color together.
    14 backgroundColor — Hexadecimal Color String     Sets a color for the background.     This can be specified in either of the usual HTML color formats (#FFFFFF or #FFF), or as a hexidecimal number (0xFFFFFF). Note that if you are setting the FlashVars in the SWF's url, you must escape the # character as %23.
    15 backgroundImage — URL     Specifies a background image for the wall.     The background image can be a PNG, GIF, or JPG. The background image covers the background color.
    16 customButton — imageURL,targetURL     Adds a custom button in the lower right corner of the toolbar.
    17 descriptionHeight — 0 to 100     Sets the percentage height of the name and description overlay when items are selected.
    18 feed — URL     Specifies the feed (MediaRSS or API) that the wall should display.
    19 glowColor — Hexadecimal Color String     Changes the color of the glow around the selected cell (Default is white).     The color string can be specified as it is for backgroundColor.
    20 icons — baseURL     Points to a directory of PNG images for custom toolbar icons.
     13backgroundAlpha 0.0 to 1.0      Changes background transparency (Not Well Supported on IE).     To change the backgroundAlpha, you must set the FlashVar "wmode" to "transparent". You can change the alpha and color together.
     14backgroundColor Hexadecimal Color String     Sets a color for the background.     This can be specified in either of the usual HTML color formats (#FFFFFF or #FFF), or as a hexidecimal number (0xFFFFFF). Note that if you are setting the FlashVars in the SWF's url, you must escape the # character as %23.
     15backgroundImage URL     Specifies a background image for the wall.     The background image can be a PNG, GIF, or JPG. The background image covers the background color.
     16customButton imageURL,targetURL     Adds a custom button in the lower right corner of the toolbar.
     17descriptionHeight 0 to 100     Sets the percentage height of the name and description overlay when items are selected.
     18feed URL     Specifies the feed (MediaRSS or API) that the wall should display.
     19glowColor Hexadecimal Color String     Changes the color of the glow around the selected cell (Default is white).     The color string can be specified as it is for backgroundColor.
     20icons baseURL     Points to a directory of PNG images for custom toolbar icons.
    2121    The following filenames in the directory will be used:
    2222        * embed.png - Embed Code button
     
    2828        * search.png - Search button
    2929
    30 itemGUID — string     Sets the initially-selected item when the wall loads.     The wall will automatically select the item in a MediaRSS feed with the <guid> </guid> that matches the provided identifier. This enables you to provide "permalinks" to a particular item in the wall. Note that the desired item must be present in the initial feed loaded by the wall (it can't be in a next/previous feed).
    31 linkCSS — string     A CSS string to be applied to any HTML links in item descriptions.
    32 numRows — 1 to 7     Sets how many rows of images to show in the UI.     Note that as you show more rows, the wall is more CPU intensive and may run slower for older computers.
    33 showChrome — true | false     Shows or hides the bottom toolbar background.
    34 showDescription — true | false     Shows or hides the item description overlay.
    35 showReflections — true | false     Shows or hides the reflections under the images.     Hiding the reflections will improve performance.
    36 showEmbed — true | false     Shows or hides the Embed Code button.
    37 showSearch — true | false     Shows or hides the Search button.
    38 showTutorial — true | false     If set to true, show a tutorial message if the user does not click on the wall.     By default, the tutorial message says "Click and Drag to Begin", and will display after a few seconds of no interaction. This can be customized with the tutorial FlashVar.
    39 showNavArrows — true | false     Shows or hides the left/right navigation arrows.
    40 style — black | dark | light | white     Sets the theme to use for the wall.     This sets up different default background colors and button appearances.
    41 tilt — 0 to 5     Sets the amount of wall tilt (or disables it by setting it to 0).
     30itemGUID string     Sets the initially-selected item when the wall loads.     The wall will automatically select the item in a MediaRSS feed with the <guid> </guid> that matches the provided identifier. This enables you to provide "permalinks" to a particular item in the wall. Note that the desired item must be present in the initial feed loaded by the wall (it can't be in a next/previous feed).
     31linkCSS string     A CSS string to be applied to any HTML links in item descriptions.
     32numRows 1 to 7     Sets how many rows of images to show in the UI.     Note that as you show more rows, the wall is more CPU intensive and may run slower for older computers.
     33showChrome true | false     Shows or hides the bottom toolbar background.
     34showDescription true | false     Shows or hides the item description overlay.
     35showReflections true | false     Shows or hides the reflections under the images.     Hiding the reflections will improve performance.
     36showEmbed true | false     Shows or hides the Embed Code button.
     37showSearch true | false     Shows or hides the Search button.
     38showTutorial true | false     If set to true, show a tutorial message if the user does not click on the wall.     By default, the tutorial message says "Click and Drag to Begin", and will display after a few seconds of no interaction. This can be customized with the tutorial FlashVar.
     39showNavArrows true | false     Shows or hides the left/right navigation arrows.
     40style black | dark | light | white     Sets the theme to use for the wall.     This sets up different default background colors and button appearances.
     41tilt 0 to 5     Sets the amount of wall tilt (or disables it by setting it to 0).
    4242
    43 tutorial — delayInMillis,imageURL     Customizes the tutoril message and delay.     Instead of the simple Click & Drag to Begin, you can use your own tutorial message (as an image file). To customize the delay and tutorial, pass in a time value (in milliseconds) and a URL to your tutorial image. For example, tutorial=4500,images/tutorial.png will show the designed PNG in 4.5 seonds, unless the user starts interacting with the wall.
     43tutorial delayInMillis,imageURL     Customizes the tutoril message and delay.     Instead of the simple Click & Drag to Begin, you can use your own tutorial message (as an image file). To customize the delay and tutorial, pass in a time value (in milliseconds) and a URL to your tutorial image. For example, tutorial=4500,images/tutorial.png will show the designed PNG in 4.5 seonds, unless the user starts interacting with the wall.
    4444*/
    4545
  • extensions/piclens/generate_rss.php

    r3619 r3637  
    512512               
    513513            echo "<title><![CDATA["
    514                   .parse($obj->my_config['piclens_rss_name'], $row)
     514                  .parse($obj->my_config['piclens_rss_name'], $row, $plugins_ExtendedDesc)
    515515                  ."]]></title>\n";
    516516
    517517
    518518            echo '<media:description type="html"><![CDATA['
    519                 .parse($obj->my_config['piclens_rss_desc'], $row)
     519                .parse($obj->my_config['piclens_rss_desc'], $row, $plugins_ExtendedDesc)
    520520                .']]> </media:description>';
    521521                 
     
    656656
    657657
    658 function parse($data, $row)
     658function parse($data, $row, $plugins_ExtendedDesc = false)
    659659{
    660660        include (PICLENS_PATH.'include/config_param.inc.php');
  • extensions/piclens/include/config_param.inc.php

    r3614 r3637  
    11<?php
    22// Fichier contenant les parametres du plugin (pour le parser)
     3
    34$piclens_parse = array(
    45                '%I1'   => isset($row['id']) ? $row['id'] : ''  ,
    5                 '%I2'   => isset($row['name']) ? trigger_event('render_element_description',$row['name']) : ''  ,
    6                 '%I3'   => isset($row['comment']) ? trigger_event('render_element_description',$row['comment']) : ''  ,
     6                '%I2'   => isset($row['name']) ?
     7                                        ($plugins_ExtendedDesc ? trigger_event('render_element_description',$row['name'])
     8                                                                                        : $row['name'])
     9                                                                                : ''  ,
     10                '%I3'   => isset($row['comment']) ?
     11                                        ($plugins_ExtendedDesc ? trigger_event('render_element_description',$row['comment'])
     12                                                                                        : $row['comment'])
     13                                                                                  : ''  ,
    714                '%I4'   => isset($row['author']) ? $row['author'] : ''  ,
    815                '%I5'   => isset ($row) ? (get_thumbnail_location($row)) : '' ,
     
    4956
    5057                '%C1'   => isset($row['category_id']) ? $row['category_id'] : '',
    51                 '%C2'   => isset($row['catname']) ? trigger_event('render_category_name',$row['catname']) : '',
    52                 '%C3'   => isset($row['catcomment']) ? trigger_event('render_category_description',$row['catcomment']) : '',
     58                '%C2'   => isset($row['catname']) ?
     59                                        ($plugins_ExtendedDesc ? trigger_event('render_category_name',$row['catname'])
     60                                                                                        : $row['catname'])
     61                                                                                  : ''  ,
     62                '%C3'   => isset($row['catcomment']) ?
     63                                                         ($plugins_ExtendedDesc ? trigger_event('render_category_description',$row['catcomment'])
     64                                                                                                        : $row['catcomment'])
     65                                                                                         : ''  ,
    5366                '%C4'   => isset($row['dir']) ? $row['dir'] : '',
    5467                '%C5'   => isset($row['dir']) ? embellish_url( get_root_url().'galerie/'.$row['dir']) : '',
  • extensions/piclens/language/zh_CN/plugin.lang.php

    r3536 r3637  
    154154$lang['piclens_stuff_param_commun']             = '<b>或许可是Cooliris PicLens 和 PWG-Stuff 的公共参数</b>';
    155155
     156/* TO DO : translation : */
     157$lang['piclens_wallcfg_nbligne']        = 'Number of row display on the wall ';
     158
     159$lang['piclens_3dwallconfig2_tab']              = 'Advanced 3DWall configuration';
     160$lang['piclens_wallcfgadv_title']       = 'Piclens : Advanced Configuration of Cooliris 3D Wall';
     161$lang['piclens_wallcfg_colorD']         = 'Dark';
     162$lang['piclens_wallcfg_colorL']         = 'Light';
     163$lang['piclens_wallcfg_showChrome']    = 'Shows the bottom toolbar background';
     164$lang['piclens_wallcfg_showDescription']    = 'Show the item description overlay';
     165$lang['piclens_wallcfg_showReflections']    = 'Show the reflections under the images';
     166$lang['piclens_wallcfg_showTutorial']    = 'Show a tutorial message';
     167$lang['piclens_wallcfg_showNavArrows']    = 'Shows the navigation arrows';
     168$lang['piclens_wallcfg_backgroundAlpha']    = 'Background transparency [0.0-1.0]';
     169$lang['piclens_wallcfg_descriptionHeight']    = 'Height of the name and description overlay [0-100]';
     170$lang['piclens_wallcfg_tilt']    = 'Amount of wall tilt [0-5]';
     171$lang['piclens_wallcfg_backgroundColor']    = 'Color for the background';
     172$lang['piclens_wallcfg_glowColor']    = 'Color of the glow around the selected picture';
     173$lang['piclens_wallcfg_backgroundImage']    = 'URL of background image for the wall';
     174$lang['piclens_wallcfg_tutorial']    = 'URL to tutorial image';
     175$lang['piclens_wallcfg_tutorialtime']    = 'Tutorial delay';
     176$lang['piclens_wallcfg_customButtonURL']    = 'URL for custom button in the lower right corner of the toolbar';
     177$lang['piclens_wallcfg_customButtonTARGET']    = 'Target for custom button';
     178$lang['piclens_wallcfg_icons']    = 'Directory of PNG images for custom toolbar icons';
     179$lang['piclens_wallcfg_linkCSS']    = 'CSS string to be applied to descriptions';
     180
     181$lang['piclens_xml_config'] = 'Name and descriptions Configuration';
     182$lang['piclens_xml_legend']     = 'Parameters for name and description';
     183
     184//legende
     185$lang['piclens_picture_legend']     = 'Picture';
     186$lang['piclens_cat_legend']                 = 'Category';
     187$lang['piclens_global_legend']          = 'Global';
     188$lang['img_id_legend']                          = 'Picture ID'; // %I1
     189$lang['img_name_legend']                        = 'Picture Name';       // %I2
     190$lang['img_description_legend']         = 'Picture Description'; // %I3
     191$lang['img_author_legend']                      = 'Picture Author';     // %I4
     192$lang['img_URLThumb_legend']            = 'Thumbnail URL (URL From gallerie)'; // %I5
     193$lang['img_URLNormal_legend']           = 'Piture URL (URL From gallerie)';     // %I6
     194$lang['img_URLHigh_legend']                     = 'HD Picture URL (URL From gallerie)'; // %I7
     195$lang['img_URLPicturephp_legend']       = 'Link to picture page (picture.php)'; //%I8
     196$lang['img_URLThumbFull_legend']        = 'Thumbnail URL (full URL)'; // %I9
     197$lang['img_URLNormalFull_legend']       = 'Piture URL (Full URL)';      // %IA
     198$lang['img_URLHighFull_legend']         = 'HD Picture URL (Full URL)';  // %IB
     199$lang['img_filename_legend']            = 'Picture file name'; // %IC
     200
     201$lang['root_path_legend']                       = 'Pïwigo path'; // %G1
     202
     203$lang['cat_id_legend']                          = 'Category ID'; // %C1
     204$lang['cat_name_legend']                        = 'Category name'; // %C2
     205$lang['cat_description_legend']         = 'Category description'; // %C3
     206$lang['cat_dir_legend']                         = 'Path to category (path from Gallerie)'; // %C4
     207$lang['cat_dirFull_legend']                     = 'Path to category (Full path)'; // %C4
     208// Fin legende
     209
     210$lang['piclens_tags_label']             = 'Tags';
     211$lang['piclens_rsscfg_exclude_double']  = 'Suppress double picture in the feed (same path)';
     212
     213/* END TO DO*/
    156214
    157215?>
  • extensions/piclens/main.inc.php

    r3619 r3637  
    7171 /*              Ajout integration piclens sur les tags */
    7272 /*              Ajout paramètre pour supprimer les doublons d'image dans le flux rss */
     73 /*              Ajout traduction ES (merci ddtddt) */
    7374 
    7475
Note: See TracChangeset for help on using the changeset viewer.