diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-05 09:54:30 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-05 09:54:30 +0000 |
| commit | e63cf926a8f334d14e08f2fdd3242687cda8b577 (patch) | |
| tree | c8d142dae672cc4abc11455ccc72ace13161a9b6 /plugins | |
| parent | 2709042c693ea0773b009879f690cd0ebb992c1f (diff) | |
| download | liberty-e63cf926a8f334d14e08f2fdd3242687cda8b577.tar.gz liberty-e63cf926a8f334d14e08f2fdd3242687cda8b577.tar.bz2 liberty-e63cf926a8f334d14e08f2fdd3242687cda8b577.zip | |
fix and clean up this strange plugin
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/data.dropdown.php | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/plugins/data.dropdown.php b/plugins/data.dropdown.php index 2e43da7..1346b9c 100644 --- a/plugins/data.dropdown.php +++ b/plugins/data.dropdown.php @@ -4,7 +4,7 @@ * assigned_modules * * @author StarRider <starrrider@sourceforge.net> - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data * @@ -60,32 +60,18 @@ function data_dropdown_help() { } /** - * Load Function - */ +* Load Function +*/ function data_dropdown($data, $params) { extract ($params, EXTR_SKIP); - $title = (isset($title)) ? $title : 'For More Information'; - $width = (isset($width)) ? $width : '20'; - $width = ((100 - $width) / 2) . '%'; + $title = (isset($title)) ? $title : tra( 'For More Information, click me.' ); $dd = (microtime() * 1000000); - $ret = - '<div>' - .'<table width="100%" border="0" cellspacing="0" cellpadding="0">' - .'<tr>' - .'<td width=' . $width . '><hr></td>' - .'<td>' - .'<div style="text-align:center">' - .'<a title="Click to Expand or Contract" href="javascript:flip(' . $dd . ')"><Strong>' . $title . '</strong></a>' - .'</div>' - .'</td>' - .'<td width=' . $width . '><hr></td>' - .'</tr>' - .'</table>' - .'</div>' - .'<div class="help box" style="display:none" id="' . $dd . '">' - .$data - .'</div>'; - return $ret; + return '<div style="text-align:center;font-weight:bold;"> + <a title="Click to Expand or Contract" href="javascript:flip(\'flip'.$dd.'\')">'.$title.'</a> + </div> + <div class="help box" style="display:none" id="flip'.$dd.'">' + .$data. + '</div>'; } ?> |
