Author: COil
Date: 2010-04-09 14:29:58 +0200 (Fri, 09 Apr 2010)
New Revision: 29054

Modified:
   plugins/sfLightboxPlugin/README
   plugins/sfLightboxPlugin/package.xml
Log:
[sfLightboxPlugin]
* Update for 1.0.12 version

Modified: plugins/sfLightboxPlugin/README
===================================================================
--- plugins/sfLightboxPlugin/README     2010-04-09 12:29:02 UTC (rev 29053)
+++ plugins/sfLightboxPlugin/README     2010-04-09 12:29:58 UTC (rev 29054)
@@ -1,54 +1,64 @@
 sfLightboxPlugin
 ================
 
-**sfLightboxPlugin** is a symfony plugin that provides an easy to use wrapper 
for 
-the [Lightbox2 javascript 
library](http://www.huddletogether.com/projects/lightbox2/).
+**sfLightboxPlugin** is a symfony plugin that provides an easy to use wrapper 
for
+the [Lightbox2 Javascript 
library](http://www.huddletogether.com/projects/lightbox2/).
 
 It adds a new helper file : `LightboxHelper` with 6 new functions:
 
  * `light_image`, to display an image (with lightbox) on an image link
  * `light_image_text`, to display an image with a text link
- * `light_slideshow`, to display a slideshow with an image set
- * `light_slide_image`, to display a slideshow with an image link
- * `light_slide_text`, to display a slideshow with a text link
+ * `light_slideshow`, to display a slide show with an image set
+ * `light_slide_image`, to display a slide show with an image link
+ * `light_slide_text`, to display a slide show with a text link
  * `light_modallink`, to display a modal popup with any content
 
 Installation
 ------------
 
- * Install the plugin (sf 1.1.x or 1.2.x)  
+ * For symfony 1.0.x
 
+        > symfony plugin-install 
http://plugins.symfony-project.com/sfLightboxPlugin
+
+You need to upgrade the Prototype version used by symfony because Lightbox 2.04
+requires at least Prototype v1.6.0.2 and symfony 1.0.x is bundled with 
prototype v1.5.x.
+Download [the last version of scriptaculous](http://script.aculo.us/downloads)
+and copy the js files in the `/sf/prototype/js` directory.
+If you used the svn version of the plugin, don't forget to copy the 
`/plugin/sfLightboxPlugin/web`
+as `/web/sfLightboxPlugin`.
+
+
+ * For symfony 1.1.x, 1.2.x, 1.3.x, 1.4.x
+
         > symfony plugin:install sfLightboxPlugin
-        
- (or check out from the svn repository: 
<http://svn.symfony-project.com/plugins/sfLightboxPlugin>
+
+(or check out from the svn repository: 
<http://svn.symfony-project.com/plugins/sfLightboxPlugin>
 and publish the assets with the `symfony plugin:publish-assets` task)
- 
- * Install the plugin (sf 1.0.x)
- 
-        > symfony plugin-install 
http://plugins.symfony-project.com/sfLightboxPlugin
 
-Moreover you need to upgrade the Prototype version used by symfony because 
-Lighbox 2.04 requires at least Prototype v1.6.0.2 and symfony 1.0.x is bundled 
-with prototype v1.5.0.0.
- 
- * If you are using symfony 1.2.x, the **sfProtoculousPlugin** muts be 
activated
+ * symfony 1.2.x specific, the **sfProtoculousPlugin** must be activated
    (it is activated by default) and you must publish its assets. (be sure
-   that you have a `/sfProtoculousPlugin` directory or this alias in your 
`/web` folder. 
-    
-   If you don't want to use the prococulous plugin you will have download and 
-   install by hand the [Prototype](http://www.prototypejs.org/download) and 
-   [Scriptaculous](http://script.aculo.us/downloads) Javascript libraries. 
-   And then update your **view.yml** file to include the required scripts:
-   (change the paths if you installed those libraries in another directory 
than `/js`)
+   that you have a `/sfProtoculousPlugin` directory or this alias in your 
`/web` folder.
 
-        # not needed if you have activated the sfProtoculousPlugin
-        # /apps/config/apps/your-app/config/view.yml
-        javascripts:
-        - prototype.js
-        - scriptaculous.js?load=effects,builder
+ * symfony 1.3.x and 1.4.x specific
+   * Enable the plugin
 
+            [php]
+            public function setup()
+            {
+              $this->enablePlugins('sfLightboxPlugin', 'sfDoctrinePlugin');
+            }
+
+   * Then install by hand the 
[Scriptaculous](http://script.aculo.us/downloads) Javascript libraries.
+   Then update your **view.yml** file to include the required scripts:
+   (change the paths if you installed those libraries into another directory 
than `/js`)
+
+            # /apps/config/apps/your-app/config/view.yml
+            javascripts:
+              - prototype.js
+              - scriptaculous.js?load=effects,builder
+
  * Clear you cache
-  
+
         > symfony cc
 
 Usage
@@ -59,7 +69,7 @@
     [php]
     <?php use_helper('Lightbox'); ?>
 
-### 2 - To display a lightbox link to one image 
+### 2 - To display a lightbox link to one image
 
 Check the `_single_images.php` template inside the plugin module.
 
@@ -70,30 +80,30 @@
     <h2>&nbsp;&nbsp;&raquo; On an image link</h2>
     <?php
     $image_options = array('title' => 'Optional caption Image 1.');
-    
+
     // Test light_image
     echo light_image(
-        'http://www.huddletogether.com/projects/lightbox2/images/thumb-1.jpg', 
-        'http://www.huddletogether.com/projects/lightbox2/images/image-1.jpg', 
+        'http://www.huddletogether.com/projects/lightbox2/images/thumb-1.jpg',
+        'http://www.huddletogether.com/projects/lightbox2/images/image-1.jpg',
         $image_options
     );
-    
+
     echo '&nbsp;&nbsp;';
-    
+
     $image_options = array('title' => 'Optional caption Image 2.');
     echo light_image(
-        'http://www.huddletogether.com/projects/lightbox2/images/thumb-2.jpg', 
-        'http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg', 
+        'http://www.huddletogether.com/projects/lightbox2/images/thumb-2.jpg',
+        'http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg',
         $image_options
     );
 
     ?>
-    
+
     <br/><br/>
     <h2>&nbsp;&nbsp;&raquo; On a standart text link</h2>
-    
+
     <?php echo light_image_text(
-      '&raquo; Click me to see the image !! &laquo;', 
+      '&raquo; Click me to see the image !! &laquo;',
       'http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg'
     );
 
@@ -107,86 +117,86 @@
     <hr/>
     <br/>
     <h2>&nbsp;&nbsp;&raquo; For all images of the set</h2>
-    
+
     <?php
-    
+
     // To display a slide show of several images
     $images[] = array(
         'thumbnail' => 
'http://www.huddletogether.com/projects/lightbox2/images/thumb-3.jpg',
         'image'     => 
'http://www.huddletogether.com/projects/lightbox2/images/image-3.jpg',
         'options'   => array('title' => 'Roll over and click right side of 
image to move forward.')
     );
-    
+
     $images[] = array(
         'thumbnail' => 
'http://www.huddletogether.com/projects/lightbox2/images/thumb-4.jpg',
         'image'     => 
'http://www.huddletogether.com/projects/lightbox2/images/image-4.jpg',
         'options'   => array('title' => 'Alternatively you can press the right 
arrow key.')
     );
-    
+
     $images[] = array(
         'thumbnail' => 
'http://www.huddletogether.com/projects/lightbox2/images/thumb-5.jpg',
         'image'     => 
'http://www.huddletogether.com/projects/lightbox2/images/image-5.jpg',
         'options'   => array('title' => 'The script preloads the next image in 
the set as you\'re viewing.')
     );
-    
+
     $images[] = array(
         'thumbnail' => 
'http://www.huddletogether.com/projects/lightbox2/images/thumb-6.jpg',
         'image'     => 
'http://www.huddletogether.com/projects/lightbox2/images/image-6.jpg',
         'options'   => array('title' => 'Press Esc to close')
     );
-    
+
     $link_options = array(
         'title'     => 'Lightbox2',
         'slidename' => 'lightbox',
-    );    
-    
-    
+    );
+
+
     echo light_slideshow($images, $link_options);
     ?>
-    
+
     <br/><br/>
     <h2>&nbsp;&nbsp;&raquo; For all images of the set as an html list</h2>
-    
+
     <ul>
-    <?php 
-    
+    <?php
+
     $link_options = array(
         'title'     => 'Lightbox2-list',
         'slidename' => 'lightbox_list',
-    );    
-      
+    );
+
       echo light_slideshow($images, $link_options, true); ?>
     </ul>
-    
+
     <br/><br/>
     <br/>
     <h2>&nbsp;&nbsp;&raquo; On one image (of the set or not)</h2>
-    
+
     <?php
     $link_options = array(
         'title'     => 'Lightbox2-image',
         'slidename' => 'image_link_to_lightbox_slideshow',
-    );  
-    
+    );
+
     echo light_slide_image(
       'http://gallery.coilblog.com/d/16-2/big_eyes_cat.jpg',
-      $images, 
-      $link_options); 
+      $images,
+      $link_options);
     ?>
-    
+
     <br/><br/>
     <br/>
     <h2>&nbsp;&nbsp;&raquo; On a text link</h2>
-    
-    <?php 
-    
+
+    <?php
+
     $link_options = array(
         'title'     => 'Lightbox2-tewt',
         'slidename' => 'text_link_to_lightbox_slideshow',
-    );  
-    
+    );
+
     echo light_slide_text('Click me to show the slide !!', $images, 
$link_options);
-  
+
 ### 4 - To display a modal box with the content of the result of a symfony 
action
 
 Check the `_modalbox.php` template inside the plugin module.
@@ -196,29 +206,29 @@
     <br/><br/><br/>
     <h1>MODAL BOX</h1>
     <hr/>
-    
-    <?php 
+
+    <?php
     // Modal Lightbox plugin test
     $link_options = array(
         'title' => 'sfLightboxPlugin',
         'size'  => '550x200',
         'speed' => '6'
     );
-    
+
     // or
     //$link_options='title=sfLightboxPlugin size=450x180 speed=5';
     //$link_options='title="sfLightboxPlugin" class=resizespeed_5 
blocksize_450x180';
-     
+
     echo light_modallink(
-      '&raquo; Link to test the modal box &laquo;', 
-      'sfLightboxPlugin/modal', 
+      '&raquo; Link to test the modal box &laquo;',
+      'sfLightboxPlugin/modal',
       $link_options
     );
 
-Of course here i use external images, but you can put path related to your 
+Of course here i use external images, but you can put path related to your
 **images** directory as you would do with the standard symfony `image_tag` 
function.
 
-You can change the class or options to adjust the wanted size or speed. You 
can 
+You can change the class or options to adjust the wanted size or speed. You can
 use a route instead of a 'module/action'. Moreover the plugin includes a demo 
as
 a module, just enable the **sfLightbox** module in your `settings.yml` file 
then
 call the demo in your application *http://www.domain.com/sfLightbox*. You can 
also
@@ -248,20 +258,20 @@
   * Change options handling for light_modallink to allow 3 different syntaxes
 
  * 1.0.4
-  * *LightboxHelper.php*: When creating a slideshow the caption of the images 
are 
+  * *LightboxHelper.php*: When creating a slideshow the caption of the images 
are
     now taken from the title attribute of each images if it exists whereas it 
is taken from the title attribute of the link if not (before it was always 
taken from the title link attribute)
 
  * 1.0.3
-  * *modalbox.js* now allows to call initModalbox several times (in case a 
-    modal link is created dynamically, after page load). Don't forget to call 
+  * *modalbox.js* now allows to call initModalbox several times (in case a
+    modal link is created dynamically, after page load). Don't forget to call
     initModalbox() again when you create a new modal link.
   * config.php: corrected wrong paths stored in config
 
  * 1.0.2
   * Helpers enhancements, options are now parsed so they can be scalar or 
array,
-    just like the link_to helper light_modallink : added 'speed' and 'size' 
options 
+    just like the link_to helper light_modallink : added 'speed' and 'size' 
options
     (using regular classes is still allowed to keep BC)
-  * modalbox.js fixes: removed some unused, unitialized variables that could 
+  * modalbox.js fixes: removed some unused, unitialized variables that could
     cause JS errors in IE6 in some cases.
   * File structure changes:
    * Removed the 'lightbox' folder in web/css, web/js and web/images
@@ -271,12 +281,12 @@
   * Some bug fixes in modalbox.js and also modalbox.css which affected IE6/7 
and Opera.
   * Renaiming of some html identifiers in modalbox to allow use of modalbox and
     lightbox in the same document. (more info in modalbox.js file)
-  * Modified default close image from 'closelabel.gif' which was culture 
+  * Modified default close image from 'closelabel.gif' which was culture
     dependent to 'close.gif' (only a close cross).
 
  * 1.0.0
   * First version
-  
+
 ---
 
 This plugin is sponsored by [SQL Technologies](http://www.sqltechnologies.com)

Modified: plugins/sfLightboxPlugin/package.xml
===================================================================
--- plugins/sfLightboxPlugin/package.xml        2010-04-09 12:29:02 UTC (rev 
29053)
+++ plugins/sfLightboxPlugin/package.xml        2010-04-09 12:29:58 UTC (rev 
29054)
@@ -10,11 +10,11 @@
   <email>qrf_coil[at]yahoo[dot]fr</email>
   <active>yes</active>
  </lead>
- <date>2009-05-09</date>
+ <date>2010-04-09</date>
  <time>12:55:55</time>
  <version>
-  <release>1.0.11</release>
-  <api>1.0.11</api>
+  <release>1.0.12</release>
+  <api>1.0.12</api>
  </version>
  <stability>
   <release>stable</release>
@@ -64,8 +64,8 @@
     <name>symfony</name>
     <channel>pear.symfony-project.com</channel>
     <min>0.8.1</min>
-    <max>1.3.0</max>
-    <exclude>1.3.0</exclude>
+    <max>2.0.0</max>
+    <exclude>2.0.0</exclude>
    </package>
   </required>
  </dependencies>
@@ -73,6 +73,23 @@
   <changelog>
     <release>
       <version>
+        <release>1.0.12</release>
+        <api>1.0.12</api>
+      </version>
+      <stability>
+       <release>stable</release>
+       <api>stable</api>
+      </stability>
+      <license uri="http://www.symfony-project.com/license";>MIT 
license</license>
+      <date>2010-04-09</date>
+      <license>MIT</license>
+      <notes>
+        * Updated and tested plugin for symfony 1.3 and 1.4
+        * Updated documentation for each major symfony release
+      </notes>
+    </release>
+    <release>
+      <version>
         <release>1.0.11</release>
         <api>1.0.11</api>
       </version>
@@ -84,7 +101,7 @@
       <date>2009-05-09</date>
       <license>MIT</license>
       <notes>
-        * Corrected error in README that prevents the plugin to work
+        * Corrected errors in README that prevented the plugin to work
       </notes>
     </release>    
     <release>
@@ -123,26 +140,26 @@
         * Update modalbox height of demo
       </notes>
     </release>  
-    <release>
-      <version>
-        <release>1.0.8</release>
-        <api>1.0.8</api>
-      </version>
-      <stability>
-       <release>stable</release>
-       <api>stable</api>
-      </stability>
-      <license uri="http://www.symfony-project.com/license";>MIT 
license</license>
-      <date>2008-10-01</date>
-      <license>MIT</license>
-      <notes>
-        * Tested and uploaded this release for symfony 1.1.x
-        * Updated demo
-        * Updated name of demo module (sfLightbox)
-        * Corrected missing builder.js bug for lightbox v2.04
-        * Added online demo on my sf blog: 
http://snippets.strangebuzz.com/index.php/sfLightbox 
-        * Fixed images path in SVN
-      </notes>
-    </release>  
-  </changelog>
+    <release>
+      <version>
+        <release>1.0.8</release>
+        <api>1.0.8</api>
+      </version>
+      <stability>
+       <release>stable</release>
+       <api>stable</api>
+      </stability>
+      <license uri="http://www.symfony-project.com/license";>MIT 
license</license>
+      <date>2008-10-01</date>
+      <license>MIT</license>
+      <notes>
+        * Tested and uploaded this release for symfony 1.1.x
+        * Updated demo
+        * Updated name of demo module (sfLightbox)
+        * Corrected missing builder.js bug for lightbox v2.04
+        * Added online demo on my sf blog: 
http://snippets.strangebuzz.com/index.php/sfLightbox 
+        * Fixed images path in SVN
+      </notes>
+    </release>  
+  </changelog>
 </package>
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to