I tried this:
function main_parts($content)
{
foreach ($content as $key => $part) {
if (strpos($key, 'custom')===0)
$this->output_raw($part);
elseif (strpos($key, 'form')===0)
$this->form($part);
elseif (strpos($key, 'q_list')===0)
$this->q_list_and_form($part);
elseif (strpos($key, 'q_view')===0)
$this->q_view($part);
elseif (strpos($key, 'a_list')===0)
$this->a_list($part);
elseif (strpos($key, 'ranking')===0)
$this->ranking($part);
}
{
$this->str_replace( ' key word ', ' <a href="
http://www.example.com">key word</a> ', $string );
}
}
But that does not do anything, any ideas?