Use Horde styled elements.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 17:09:03 +0000 (13:09 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 17:16:13 +0000 (13:16 -0400)
Start getting rid of facebook/twitter specific design elements.
Still use the selectors that help with layout though.

horde/lib/Block/fb_stream.php
horde/lib/Block/twitter_timeline.php

index 4a72254..93bb179 100644 (file)
@@ -183,7 +183,7 @@ EOF;
 
         // Bring in the Facebook CSS
         $html .= '<link href="' . $csslink . '" rel="stylesheet" type="text/css" />';
-        $html .= '<div class="fbbody" style="float:left;padding-left: 8px;padding-right:8px;">';
+        $html .= '<div style="float:left;padding-left: 8px;padding-right:8px;">';
 
         // User's current status and input box to change it.
         $fql = 'SELECT first_name, last_name, status, pic_square_with_logo from user where uid=' . $fbp['uid'] . ' LIMIT 1';
@@ -215,7 +215,7 @@ EOF;
             //TODO: We could probably cache this perm somehow - maybe in the session?
             if ($facebook->users->hasAppPermission(Horde_Service_Facebook_Auth::EXTEND_PERMS_PUBLISHSTREAM)) {
                 $html .= '<input style="width:100%;margin-top:4px;margin-bottom:4px;" type="text" class="fbinput" id="newStatus" name="newStatus" />'
-                . '<div class="fbaction"><a class="fbbutton" onclick="updateStatus($F(\'newStatus\'), $(\'newStatus\'));" href="#">' . _("Update") . '</a></div>'
+                . '<div><a class="button" onclick="updateStatus($F(\'newStatus\'), $(\'newStatus\'));" href="#">' . _("Update") . '</a></div>'
                 . Horde::img('loading.gif', '', array('id' => 'loading', 'style' => 'display:none;'));
             }
         } catch (Horde_Service_Facebook_Exception $e) {
index 7f0e52d..7fcbe02 100644 (file)
@@ -137,9 +137,9 @@ class Horde_Block_Horde_twitter_timeline extends Horde_Block
         $csslink = $GLOBALS['registry']->get('themesuri', 'horde') . '/facebook.css';
         $defaultText = _("What are you working on now?");
         $html = '<link href="' . $csslink . '" rel="stylesheet" type="text/css" />';
-        $html .= '<div class="fbbody" style="float:left;padding-left: 8px;padding-right:8px;">'
+        $html .= '<div style="float:left;padding-left: 8px;padding-right:8px;">'
            . '<input style="width:98%;margin-top:4px;margin-bottom:4px;" type="text" id="' . $instance . '_newStatus" name="' . $instance . '_newStatus" value="' . $defaultText . '" />'
-           . '<div class="fbaction"><a class="fbbutton" onclick="Horde.twitter.updateStatus($F(\'' . $instance . '_newStatus\'));" href="#">' . _("Update") . '</a><span id="' . $instance . '_inReplyTo"></span></div>'
+           . '<div><a class="button" onclick="Horde.twitter.updateStatus($F(\'' . $instance . '_newStatus\'));" href="#">' . _("Update") . '</a><span id="' . $instance . '_inReplyTo"></span></div>'
            . Horde::img('loading.gif', '', array('id' => $instance . '_loading', 'style' => 'display:none;'));
         $html .= '<div id="currentStatus" class="fbemptystatus" style="margin-left:10px;margin-top:10px;">' . sprintf(_("Latest: %s - %s"), $latestStatus, Horde_Date_Utils::relativeDateTime(strtotime($this->_profile->status->created_at), $GLOBALS['prefs']->getValue('date_format'), ($GLOBALS['prefs']->getValue('twentyFour') ? "%H:%M %P" : "%I %M %P"))) . '</div>';
         $html .= '<div id="twitter_body' . $instance . '">';