diff options
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/twitter.php')
-rwxr-xr-x | mod/profile/views/default/profile/profile_contents/twitter.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/twitter.php b/mod/profile/views/default/profile/profile_contents/twitter.php new file mode 100755 index 000000000..75b6d0467 --- /dev/null +++ b/mod/profile/views/default/profile/profile_contents/twitter.php @@ -0,0 +1,24 @@ +<?php +/** + * Elgg twitter view page + */ + +$twitter_username = $vars['entity']->twitter; + +// if the twitter username is empty, then do not show +if($twitter_username){ +?> +<div id="profile_content"> + <ul id="twitter_update_list"></ul> + <p class="visit_twitter"><a href="http://twitter.com/<?php echo $twitter_username; ?>" target="_blank"><?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 $twitter_username; ?>.json?callback=twitterCallback2&count=10"></script> +</div> +<div id="profile_sidebar"> +<?php + echo elgg_view('profile/profile_ownerblock', array('smallicon' => true)); +?> +</div> +<?php +} +?>
\ No newline at end of file |