From: Michael J. Rubinsky Date: Sat, 3 Jul 2010 00:28:32 +0000 (-0400) Subject: add a width parameter, similar to the twitter block X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=59cd3341863fa2c2d848f55b5efd2b93b712e97d;p=horde.git add a width parameter, similar to the twitter block --- diff --git a/horde/lib/Block/fb_stream.php b/horde/lib/Block/fb_stream.php index 93bb17931..6efb094be 100644 --- a/horde/lib/Block/fb_stream.php +++ b/horde/lib/Block/fb_stream.php @@ -74,16 +74,22 @@ class Horde_Block_Horde_fb_stream extends Horde_Block { } catch (Horde_Service_Facebook_Exception $e) {} } - return array('filter' => array('type' => 'enum', - 'name' => _("Filter"), - 'default' => 'nf', - 'values' => $filters), - 'count' => array('type' => 'int', - 'name' => _("Maximum number of entries to display"), - 'default' => ''), - 'notifications' => array('type' => 'boolean', - 'name' => _("Show notifications"), - 'default' => true)); + return array( + 'filter' => array('type' => 'enum', + 'name' => _("Filter"), + 'default' => 'nf', + 'values' => $filters), + 'count' => array('type' => 'int', + 'name' => _("Maximum number of entries to display"), + 'default' => ''), + 'notifications' => array('type' => 'boolean', + 'name' => _("Show notifications"), + 'default' => true), + 'height' => array( + 'name' => _("Height of map (width automatically adjusts to block)"), + 'type' => 'int', + 'default' => 250), + ); } /** @@ -225,6 +231,7 @@ EOF; } $html .= ''; // Close the fbgreybox node that wraps the status // Build the stream feed. + $html .= '
'; foreach ($posts as $post) { $html .= '
'; $html .= '
'; @@ -294,7 +301,7 @@ EOF; $html .= '
'; // Close the fbstreambody, fbstreamstory nodes $html .= '
 
'; } - $html .= ''; // fbbody end + $html .= ''; // fbbody end return $html; }