[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[13296]
From:       pdontthink () users ! sourceforge ! net
Date:       2008-10-07 4:48:50
Message-ID: E1Kn4V8-0007CV-UA () 3kljzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 13296
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13296&view=rev
Author:   pdontthink
Date:     2008-10-07 04:48:50 +0000 (Tue, 07 Oct 2008)

Log Message:
-----------
Allow control over white space wrapping of auto-generated SquirrelMail option widgets

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/ChangeLog
    branches/SM-1_4-STABLE/squirrelmail/functions/options.php

Modified: branches/SM-1_4-STABLE/squirrelmail/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/ChangeLog	2008-10-07 04:48:28 UTC (rev 13295)
+++ branches/SM-1_4-STABLE/squirrelmail/ChangeLog	2008-10-07 04:48:50 UTC (rev 13296)
@@ -4,6 +4,8 @@
 
 Version 1.4.17 - SVN
 --------------------
+  - Allow control over white space wrapping of auto-generated
+    SquirrelMail option widgets.
 
 Version 1.4.16 - 28 September 2008
 ----------------------------------

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/options.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/options.php	2008-10-07 04:48:28 UTC \
                (rev 13295)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/options.php	2008-10-07 04:48:50 UTC \
(rev 13296) @@ -71,6 +71,7 @@
     var $raw_option_array;
     var $name;
     var $caption;
+    var $caption_wrap;
     var $type;
     var $refresh_level;
     var $size;
@@ -99,6 +100,7 @@
         $this->raw_option_array = $raw_option_array;
         $this->name = $name;
         $this->caption = $caption;
+        $this->caption_wrap = TRUE;
         $this->type = $type;
         $this->refresh_level = $refresh_level;
         $this->possible_values = $possible_values;
@@ -155,6 +157,11 @@
         $this->new_value = $new_value;
     }
 
+    /* Set whether the caption is allowed to wrap for this option. */
+    function setCaptionWrap($caption_wrap) {
+        $this->caption_wrap = $caption_wrap;
+    }
+
     /* Set the size for this option. */
     function setSize($size) {
         $this->size = $size;
@@ -925,6 +932,11 @@
                 (isset($optset['htmlencoded']) ? $optset['htmlencoded'] : false)
                 );
 
+            /* If provided, set if the caption is allowed to wrap for this option. \
*/ +            if (isset($optset['caption_wrap'])) {
+                $next_option->setCaptionWrap($optset['caption_wrap']);
+            }
+
             /* If provided, set the size for this option. */
             if (isset($optset['size'])) {
                 $next_option->setSize($optset['size']);
@@ -1016,7 +1028,7 @@
                                      . $option->caption . '</label>';
 
                 echo html_tag( 'tr', "\n".
-                           html_tag( 'td', $option->caption . \
(!empty($option->caption) ? ':' : ''), 'right' ,'', 'valign="middle"' ) . +           \
html_tag( 'td', $option->caption . (!empty($option->caption) ? ':' : ''), 'right' \
,'', 'valign="middle"' . ($option->caption_wrap ? '' : ' style="white-space:nowrap"') \
                ) .
                            html_tag( 'td', $option->createHTMLWidget(), 'left' )
                        ) ."\n";
             } else {


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic