aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 23:42:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 23:42:26 +0000
commitdf4226866779f75eacab7f62da36b22dc21d5e44 (patch)
treee6c58d3d77187050fb4b966cc78a69766369c52c /mod/twitter/views/default
parent60c1387a16ea4944674b0c9da2273158d1fbf0b4 (diff)
downloadelgg-df4226866779f75eacab7f62da36b22dc21d5e44.tar.gz
elgg-df4226866779f75eacab7f62da36b22dc21d5e44.tar.bz2
Merged r6812:6837 from 1.7 branch to trunk (skipping some changes to plugins like groups and wire)
git-svn-id: http://code.elgg.org/elgg/trunk@6851 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/twitter/views/default')
-rw-r--r--mod/twitter/views/default/widgets/twitter/view.php43
1 files changed, 23 insertions, 20 deletions
diff --git a/mod/twitter/views/default/widgets/twitter/view.php b/mod/twitter/views/default/widgets/twitter/view.php
index 4ae0d7f27..3fba5b54d 100644
--- a/mod/twitter/views/default/widgets/twitter/view.php
+++ b/mod/twitter/views/default/widgets/twitter/view.php
@@ -1,5 +1,6 @@
-<?php
- /**
+<?php
+
+/**
* Elgg twitter view page
*
* @package ElggTwitter
@@ -8,25 +9,27 @@
* @copyright Curverider Ltd 2008-2010
* @link http://elgg.com/
*/
-
- //some required params
-
- $username = $vars['entity']->twitter_username;
- $num = $vars['entity']->twitter_num;
-
+
+//some required params
+
+$username = $vars['entity']->twitter_username;
+$num = $vars['entity']->twitter_num;
+
// if the twitter username is empty, then do not show
-if($username){
-
+if ($username) {
+
?>
<div id="twitter_widget">
-<ul id="twitter_update_list"></ul>
-<p class="visit_twitter"><a href="http://twitter.com/<?php echo $username; ?>"><?php echo elgg_echo("twitter:visit"); ?></a></p>
-<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
-<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo $username; ?>.json?callback=twitterCallback2&count=<?php echo $num; ?>"></script>
-<?php
- } else {
- echo "<p>" . elgg_echo("twitter:notset") . ".</p>";
- }
-?>
-</div> \ No newline at end of file
+ <ul id="twitter_update_list"></ul>
+ <p class="visit_twitter"><a href="http://twitter.com/<?php echo $username; ?>"><?php echo elgg_echo("twitter:visit"); ?></a></p>
+ <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
+ <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo $username; ?>.json?callback=twitterCallback2&count=<?php echo $num; ?>"></script>
+</div>
+
+<?php
+} else {
+
+ echo "<p>" . elgg_echo("twitter:notset") . ".</p>";
+
+}