/** * Send to output plx playlist * @param X_Plx $plx */ private function _render(X_Plx $plx, Zend_Controller_Action $controller) { $this->_disableRendering($controller); // if isn't wiimc, add a conversion filter if (!$this->helpers()->devices()->isWiimc() && $this->config('forced.fancy', true)) { $showRaw = $this->config('forced.showRaw', false); $showThumbs = $this->config('forced.showThumbs', true); $plxItems = $plx->getItems(); $body = (include dirname(__FILE__) . '/WiimcPlxRenderer.fancy.phtml'); } else { $controller->getResponse()->setHeader('Content-type', 'text/plain', true); $body = (string) $plx; } $controller->getResponse()->setBody($body); return $body; }