blob: 0fd0aab0f4acf3d0a073d546f5eeebb767c66489 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Adds required HTML head tags for Twitter Services.
*
* @package TwitterService
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @copyright Curverider Ltd 2010
*/
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;
}
|