Hello,
cwsoft-anynews v2.8.0 stable is available at
GitHub and the WebsiteBaker
Add-ons repository.
Updates since last release:- added Czech and Russian language file (thanks to forum members dana and owk444)
- updated truncate function to latest available version (thanks to dana for the hint)
- implemented more flexible parameter handling via new function getNewsItems()
- added option to invoke cwsoft-anynews via a custom Droplet (requested by owk444)
Since Version 2.8.0 the new function
getNewsItems() is included, providing a more flexible configuration via a configuration array. This allows you to specifiy
ONLY the parameters you want to change, without taking care of position and order of other possible parameters. To ensure backward compatibility, the function
displayNewsItems() will work as before, but was marked "deprecated" in favour of the new and more flexible
getNewsItems() function. It's recommended to use the latter function for all your new projects. See
README for details.
Anynews Droplet:Since Anynews v2.8.0 droplet code is included, allowing you to create your own Anynews Droplet usable in WYSIWYG editor or your template by pasting the following three code lines into the Droplet code form.
if (! file_exists(WB_PATH . '/modules/cwsoft-anynews/droplet/cwsoft-anynews-droplet.php')) return;
include(WB_PATH . '/modules/cwsoft-anynews/droplet/cwsoft-anynews-droplet.php');
return $output;
The Anynews Droplet supports all Anynews parameters (except the rarely used parameter 'custom_placeholder'). For details about the Droplet function see documentation at
GitHub.
Cheers cwsoft