<?php
defined("_VALID_MOS") or die("Direct Access is not allowed");
$url = rawurlencode(sefRelToAbs($_SERVER));
global $mainframe;
$title = $mainframe->getPageTitle();
if($params->get('include_site')=="1") {
global $mosConfig_sitename;
$title .= ' - ' . $mosConfig_sitename;
}
$title = rawurlencode($title);
$topic = $params->get('topic');
if($topic!="") $topic = "&topic=" . $topic;
$img = $params->get('img');
$width = $params->get('width');
$height = $params->get('height');
?>
<a href="
digg.com/submit?phase=2&url=
<?php echo $url; ?>&title=<?php echo $title; ?><?php echo $topic; ?>"><img src="<?php echo $img; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="Digg!" id="diggImg" /></a>
<?xml version="1.0" ?>
<mosinstall type="module">
<name>Digg This - Customizable</name>
<creationDate>12-29-2006</creationDate>
<author>Justin Cook</author>
<copyright>This module is released under the GNU/GPL License</copyright>
<authorEmail>
This email address is being protected from spambots. You need JavaScript enabled to view it.</authorEmail>
<authorUrl>
www.justin-cook.com
</authorUrl>
<version>1.0</version>
<description>Creates a customizable Digg This! link to the current article</description>
<files>
<filename module="mod_digg">mod_digg.php</filename>
</files>
<params>
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (table.moduletable), this allows individual module styling" />
<param name="img" type="text" default="
digg.com/img/badges/80x15-digg-badge-2.png
" label="Image"
description="The exact URL of the DIGG image to use (more at
digg.com/tools/buttons
)" />
<param name="width" type="text" default="80" label="width" description="The exact width of the DIGG image" />
<param name="height" type="text" default="15" label="Image" description="The exact height of the DIGG image" />
<param name="include_site" type="list" default="0" label="Include site" description="Include the site name in the submission (format:
Article cannot be shown