aboutsummaryrefslogtreecommitdiff
path: root/mod/twitterservice/views/default/twitterservice/metatags.php
blob: 64c9910fbf21dc3ddfa8a1dec857564fe091df70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Adds required HTML head tags for Twitter Services.
 *
 * @package TwitterService
 */

if ($api_key = elgg_get_plugin_setting('consumer_key', 'twitterservice')) {
	$tags = <<<__HTML
<script src="http://platform.twitter.com/anywhere.js?id=$api_key&v=1" type="text/javascript"></script>
<script type="text/javascript">
	twttr.anywhere(function (T) {
		T(".twitter_anywhere").hovercards();
	});
</script>
__HTML;

	echo $tags;
}