/** * Return url for iframe source * * @return string|null */ public function getIframeSourceUrl() { if (!$this->_survey->isSurveyUrlValid() || $this->_installer->getHideIframe()) { return null; } return $this->_survey->getSurveyUrl(); }
/** * Retrieve message text * * @return string */ public function getText() { $params = array('actionLink' => array('event' => 'surveyYes', 'eventData' => array('surveyUrl' => $this->_survey->getSurveyUrl(), 'surveyAction' => $this->_urlBuilder->getUrl('*/survey/index', array('_current' => true)), 'decision' => 'yes'))); return __('We appreciate our merchants\' feedback. Please <a href="#" data-mage-init="%1">take our survey</a> and tell us about features you\'d like to see in Magento.', json_encode($params, JSON_FORCE_OBJECT)); }