* @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]; }

What to put in your compost bin

  • Animal manure
  • Cardboard rolls, cereal boxes, brown paper bags
  • Clean paper
  • Paper towels
  • Coffee grounds and filters
  • Cotton and wool rags
  • Dryer and vacuum cleaner lint
  • Crushed eggshells (but not eggs)
  • Fireplace ashes
  • Fruits and vegetables
  • Grass clippings, yard trimmings
  • Hair and fur
  • Hay and straw
  • Houseplants
  • Leaves
  • Nut shells
  • Seaweed (rinse off saltwater)
  • Shredded newspaper
  • Tea and tea bags
  • Wood chips, sawdust, toothpicks, burnt matches

Materials NOT OK to Compost - and Why

  • Meat, fish, egg or poultry scraps (odour problems and pests)
  • Dairy products (odour problems and pests)
  • Fats, grease, lard or oils (odour problems and pests)
  • Coal or charcoal ash (contains substances harmful to plants)
  • Diseased or insect-ridden plants (diseases or insects might spread)
  • Garden trimmings treated with pesticides (might kill composting organisms)
  • Black walnut tree leaves or twigs (substances harmful to plants)

Add comment


Security code
Refresh