Hi,
just finished a citation snippet which allows to display german citations from
http://www.zitate-online.de/.
To install the module, go to the Addons page in the backend of WebsiteBaker and upload it as usual. Once the upload is finished, you can use the new function: display_citation().
Options available:echo display_citation(1); ... citation of the day (only text)
echo display_citation(2); ... citation of the day (text + author image)
echo display_citation(3); ... random citation (only text)
echo display_citation(4); ... random citation (text + author image)
Adding CSS to your templateAs I like modules which creates valid HTML, XHTML, I decided to outsource the required CSS definitions for displaying the citation to the external file: citation.css (/modules/citation). As WB is not able (at least up to v2.6.5) to import CSS definitions on the fly into the <head> section of index.php in your template folder, you need to do this manually.
Two way to achieve this:1) copy all CSS definition in citation.css to the CSS file of your template
2) add the following code line to the index.php file of your template (between <head> and </head>
<link href="<?php echo WB_URL ."/modules/citation/citation.css"; ?>" rel="stylesheet" type="text/css" media="screen" />
Have fun
Regards Christian
[Edit 7. Feb. 07]Attachment removed. Download latest version from miscellaneous section at addons repository http://addons.websitebaker.org/pages/modules.php