* @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 compost bin

Composting is an inexpensive natural process. It transforms your kitchen and garden waste into valuable and nutrient rich food for your garden, which is easy to make and use.

1. Composting Is Dirt Cheap

It costs next to nothing to compost, aside from a tiny initial investment in a compost bin. In fact, if you're a gardener or have any landscaping at all, your compost bin can save you money by reducing what you spend on fertilizer or garden waste removal. It will also greatly reduce what you throw in the bin each week. 

2. Compost helps with a healthy, thriving garden

You really cannot find a better soil improver than compost. It loosens clay soils and helps sandy soils retain water. Furthermore, not only does compost contain no petroleum based compounds it can repress plant diseases and pests. Gardens that are composted produce higher yields of healthier fruit, vegetables and flowers.

3. It is good for the environment

Landfills everywhere are running out of room and becoming more expensive to maintain each year. Composting reduces the amount of waste each of us sends to the landfill.

Add comment


Security code
Refresh