[SOLVED] Style a droplet

warp

Wow, that is a really quick and accurate answer!
Even better: It Works  :wink:

John, thanks a lot.

Frank Kalf

pcwacht

Allmost, you forgot the '


return '<span style="font-size:9px;">Deze pagina is laatst gewijzigd/aangepast op '.date("d-m-Y",$mod_details[0]).'</span>';


or make it more readable:
The .= appends text to a variable.

$return_string = '<span style="font-size:9px;">Deze pagina is laatst gewijzigd/aangepast op ';
$return_string .= date("d-m-Y",$mod_details[0]);
$return_string .= '</span>';
return $return_string;


Have fun,
John
[url="http://www.ictwacht.nl"]http://www.ictwacht.nl[/url] = Dutch ICT info
[url="http://www.pcwacht.nl"]http://www.pcwacht.nl[/url] = My first
both still work in progress, since years.....

warp

#1
Is there a way to style the [[ModifiedWhen]] droplet?
I'using  <span style="font-size:9px;">[[ModifiedWhen]]</span> to reduce the font size.
Can I somehow integrate it in the original code:
global $database, $wb;
if (PAGE_ID>0) {
$query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID);
$mod_details=$query->fetchRow();
return "Deze pagina is laatst gewijzigd/aangepast op ".date("d-m-Y",$mod_details[0]);
}


I thought something like this would do it, but to no avail:

return <span style="font-size:9px;">
"Deze pagina is laatst gewijzigd/aangepast op ".date("d-m-Y"
</span>
,$mod_details[0]);