Misc. Functions
From GeeklogWiki
The following is a list of (optional) functions for misc. purposes.
Misc. Functions
Function | Description of Function |
---|---|
plugin_centerblock_<plugin name> | Plugins can display a block in the site's center area, i.e. among the stories. This function is called several times during rendering of the site's index page. The parameters will tell the plugin where on the index page the block would appear. Parameters are |
plugin_getheadercode_<plugin name> | Plugins may add additional lines to the site's <head> tag by implementing this function, e.g. Javascript functions or additional Meta tags.The function should return a concatenated string of all its extra header code. |
plugin_whatsnewsupported_<plugin name> | Plugins can add their own section to Geeklog's What's New block by implementing this and the following function. The function should return an array of 2 strings. The first string is used as the headline for the plugin's section in What's New and the second string is used to indicate the timespan that the entries in this section cover (e.g. "last 2 weeks"). |
plugin_getwhatsnew_<plugin name> | This function should return the actual new entries to be listed in the What's New block (as an array) or a string to be displayed in case there are no new entries. |