From: Michael J. Rubinsky Date: Sun, 18 Jul 2010 17:36:49 +0000 (-0400) Subject: CSS cleanup for twitter/facebook. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4f4fa3e6bebde4f8b9fffa671f76a41300aea34b;p=horde.git CSS cleanup for twitter/facebook. Don't use facebook css in twitter block. Merge some general "social media" css into screen.css. --- diff --git a/horde/lib/Block/twitter_timeline.php b/horde/lib/Block/twitter_timeline.php index 01f142753..0a374c577 100644 --- a/horde/lib/Block/twitter_timeline.php +++ b/horde/lib/Block/twitter_timeline.php @@ -159,16 +159,12 @@ EOT; /* Get the user's most recent tweet */ $latestStatus = htmlspecialchars($this->_profile->status->text, ENT_COMPAT, $GLOBALS['registry']->getCharset()); - // Bring in the Facebook CSS - $csslink = $GLOBALS['registry']->get('themesuri', 'horde') . '/facebook.css'; - /* Build the UI */ - $html = ''; - $html .= '
' + $html = '
' . '
' . '' . _("Update") . '' . Horde::img('loading.gif', '', array('id' => $instance . '_loading', 'style' => 'display:none;')); - $html .= '
' . 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" : "%I:%M %P"))) . '
'; + $html .= '
' . _("Latest") . ' ' . $latestStatus . ' - ' . Horde_Date_Utils::relativeDateTime(strtotime($this->_profile->status->created_at), $GLOBALS['prefs']->getValue('date_format'), ($GLOBALS['prefs']->getValue('twentyFour') ? "%H:%M" : "%I:%M %P")) . '
'; $html .= '
'; $filter = Horde_Text_Filter::factory('Text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO)); $html .= '
'; diff --git a/horde/lib/Prefs/Ui.php b/horde/lib/Prefs/Ui.php index fa267ac48..0e2585a9a 100644 --- a/horde/lib/Prefs/Ui.php +++ b/horde/lib/Prefs/Ui.php @@ -595,7 +595,7 @@ class Horde_Prefs_Ui $_SESSION['twitter_request_secret'] = $results->secret; $t->set('appname', $registry->get('name')); - $t->set('link', Horde::link(Horde::externalUrl($twitter->auth->getUserAuthorizationUrl($results), false), '', 'fbbutton', '', 'openTwitterWindow(); return false;') . 'Twitter'); + $t->set('link', Horde::link(Horde::externalUrl($twitter->auth->getUserAuthorizationUrl($results), false), '', 'button', '', 'openTwitterWindow(); return false;') . 'Twitter'); $t->set('popupjs', Horde::popupJs(Horde::externalUrl($twitter->auth->getUserAuthorizationUrl($results), false), array('urlencode' => true))); } else { /* We know we have a good Twitter token here, so check for any actions... */ diff --git a/horde/templates/block/twitter_tweet.html.php b/horde/templates/block/twitter_tweet.html.php index 5e70b6ecd..7ac4e4db9 100644 --- a/horde/templates/block/twitter_tweet.html.php +++ b/horde/templates/block/twitter_tweet.html.php @@ -15,7 +15,7 @@ */ ?>
-
+
profileLink ?><?php echo $this->authorName?>
profileLink . $this->authorName ?>
diff --git a/horde/templates/prefs/twitter.html b/horde/templates/prefs/twitter.html index a5fdc633f..fc8049664 100644 --- a/horde/templates/prefs/twitter.html +++ b/horde/templates/prefs/twitter.html @@ -10,7 +10,7 @@
-
+
Could not find authorization for to interact with your Twitter account