/** * @return IfwPsn_Wp_Ajax_Response_Abstract */ public function getResponse() { if ($this->_pm->hasPremium() && $this->_pm->isPremium()) { $this->_addPremiumBlock(); } $this->_addConnectBlock(); $this->_addHelpBlock(); $tpl = IfwPsn_Wp_Tpl::getInstance($this->_pm); $html = ''; foreach ($this->_infoBlocks as $block) { $params = array('label' => $block['label'], 'content' => $block['content'], 'iconClass' => $block['iconClass']); $html .= $tpl->render('metabox_plugininfo_block.html.twig', $params); } $html .= '<p class="ifw-made-with-heart">This plugin was made with <img src="' . $this->_pm->getEnv()->getSkinUrl() . 'icons/heart.png" /> by <a href="http://www.ifeelweb.de/" target="_blank">ifeelweb.de</a></p>'; $success = true; $response = new IfwPsn_Wp_Ajax_Response_Json($success); $response->addData('html', $html); return $response; }