Kod aşağıdadır.
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
function CurrentPageURL()
{
$pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
return $pageURL;
}
//Get url
//($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
?>
<style type="text/css">
div.googlebuzz_seperator {
clear: both;
height: 0px;
}
.googlebuzz {
width:100%;
text-align:center;
}
.googlebuzz div {
margin: 4px 6px;
padding: 0;
}
</style>
<?php if($params->get('output') == 'iframe'): ?>
<div class="googlebuzz">
<table width="100%" border="0" cellpadding="0" cellspacing="3">
<tr>
<td width="auto" style="margin-left: 20px;">
<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</td>
<td width="86px"><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a>
<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>
</td>
<td width="86px">
<a class="DiggThisButton DiggCompact">
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
</a>
</td>
<td width="76px" style="padding-top: 4px; margin-right: 0px;"><script type="text/javascript">
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></td>
</tr>
</table>
</div>
<div class="googlebuzz_seperator"></div>
<?php else: ?>
<fb:like href="<?= $url;?>"
layout="<?= $params->get('layout');?>"
show_faces="<?= ($params->get('show_faces') == 'yes' ? 'true' : 'false');?>"
width="<?= $params->get('width');?>"
action="<?= $params->get('verb');?>"
font="<?= urlencode($params->get('font'));?>"
colorscheme="<?= $params->get('color_scheme');?>"
/>
<?php endif; ?>