diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-15 12:01:31 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-15 12:01:31 +0000 |
commit | e463f5079c9eef80350184cdb8af968dc416e90e (patch) | |
tree | 09b763caa2b477a85cd78146b6c38ee6fc3488d2 /mod/twitter/views/default/widgets | |
parent | 67b6b75b0271228dbe0fd27656ec67c66001fc34 (diff) | |
download | elgg-e463f5079c9eef80350184cdb8af968dc416e90e.tar.gz elgg-e463f5079c9eef80350184cdb8af968dc416e90e.tar.bz2 |
Updates to Twitter and TwitterService UI.
git-svn-id: http://code.elgg.org/elgg/trunk@5398 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/twitter/views/default/widgets')
-rw-r--r-- | mod/twitter/views/default/widgets/twitter/view.php | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/mod/twitter/views/default/widgets/twitter/view.php b/mod/twitter/views/default/widgets/twitter/view.php index 71caaf380..4ae0d7f27 100644 --- a/mod/twitter/views/default/widgets/twitter/view.php +++ b/mod/twitter/views/default/widgets/twitter/view.php @@ -1,22 +1,21 @@ -<?php - - /** - * Elgg twitter view page - * - * @package ElggTwitter - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd <info@elgg.com> - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - */ - - //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){ +<?php + /** + * Elgg twitter view page + * + * @package ElggTwitter + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd <info@elgg.com> + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + */ + + //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){ ?> @@ -27,9 +26,7 @@ <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 "<div class=\"contentWrapper\"><p>" . elgg_echo("twitter:notset") . ".</p></div>"; - + echo "<p>" . elgg_echo("twitter:notset") . ".</p>"; } ?> </div>
\ No newline at end of file |