function renderOutput($context = array()) { if (isset($context['history']) && $context['history'] == 'y' && is_array($this->getConfiguration('value'))) { return $this->renderTemplate('trackeroutput/text_history.tpl'); } else { return parent::renderOutput($context); } }