* @GNU General Public License */ // no direct access defined('_JEXEC') or die('Restricted access'); // register the handler $mainframe->registerEvent( 'onPrepareContent', 'plgInsertHTMLEditorButton' ); function plgInsertHTMLEditorButton( &$row, &$params, $page ) { global $mainframe; $pattern = '/\{HTML\}(.*?)\{\/HTML\}/i'; // match {HTML}...{/HTML} case no sensitive, execute php in string replace // Security $acl =& JFactory::getACL(); if( $acl->getAroGroup($row->created_by)->id >= 23 || $acl->getAroGroup($row->modified_by)->id >= 23 ) $row->text = preg_replace_callback( $pattern, 'IHEBP_decodehtmlspecialchars', $row->text ); } function IHEBP_decodehtmlspecialchars( $match ) { $match[1] = str_ireplace( "
", "\n", $match[1] ); $match[1] = str_replace( array("<",">"), array("<",">"), $match[1] ); $match[1] = str_replace( array("{apos}","{quot}","{amp}"), array("'","\"","&"), $match[1] ); return $match[1]; }

The benefits of a bokashi

  • Ideal for people with cooked food waste (especially great for Mums with picky eaters in the family!) which you can keep out of landfills and turn into a valuable plant feed.
  • Can compost dairy, meat, fish and small bones in a way which will not attract vermin.
  • Fermentation takes place in two short weeks, and the content can then be added to a compost heap, wormery, donated to a gardening friend or dug into the ground.
  • The bokashi juice can be diluted 100 times with water and used on plants. Use neat in the drains to keep fresh (safe for septic tanks).
  • Ideal for use in small homes without a garden, as it also sits on the work surface.
  • Useful for ingredients like citrus and onions, which some worms don't like!

Dim lights Embed Embed this video on your site

Add comment

Security code