public function _prepareLayout()
 {
     $settings = new Qualityunit_Liveagent_Helper_Settings();
     parent::_prepareLayout();
     $this->assignVariable('dialogCaption', Mage::helper('adminhtml')->__('LiveAgent - Live chat and helpdesk plugin for Magento'));
     $this->assignVariable('submitCaption', Mage::helper('adminhtml')->__('Save'));
     $this->assignVariable('formKey', Mage::getSingleton('core/session')->getFormKey());
     $this->assignVariable('saveUrlAction', $this->getUrl('*/*/post'));
     $settings = new Qualityunit_Liveagent_Helper_Settings();
     $code = htmlentities($settings->getOption(Qualityunit_Liveagent_Helper_Settings::BUTTON_CODE));
     $this->assignVariable('la-config-button-code', $this->getTextArea('la-config-button-code', $code, 10, 100, ' textarea'));
     $this->assignVariable('buttonCodeLabel', Mage::helper('adminhtml')->__('Button code'));
     $this->assignVariable('buttonCodeHelp', Mage::helper('adminhtml')->__('Place here the code from your LiveAgent admin panel'));
     $this->assignVariable('saveButtonCodeFlag', self::SAVE_BUTTON_CODE_ACTION_FLAG);
     $this->assignVariable('accountSectionLabel', Mage::helper('adminhtml')->__('Your account'));
     $this->assignVariable('accountUrlLabel', Mage::helper('adminhtml')->__('Account url'));
     $this->assignVariable('la-url', $settings->getOption(Qualityunit_Liveagent_Helper_Settings::LA_URL_SETTING_NAME));
     $this->assignVariable('loginLabel', Mage::helper('adminhtml')->__('login'));
     $this->assignVariable('loginUrl', $this->getLoginUrl($settings));
     $this->assignVariable('ChangeLabel', Mage::helper('adminhtml')->__('change'));
     $this->assignVariable('ChangeUrl', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_Account::CHANGE_ACCOUNT_ACTION_FLAG)));
     $this->assignVariable('integrationSectionLabel', Mage::helper('adminhtml')->__('Integration'));
     $this->assignVariable('contactLink', Mage::helper('adminhtml')->__('contact us'));
     $this->assignVariable('contactHelp', Mage::helper('adminhtml')->__('Do you need any help with this plugin? Feel free to'));
 }
Esempio n. 2
0
 protected function getInputBox($name, $value)
 {
     $params = $this->getRequest()->getParams();
     if (isset($params[$name])) {
         return parent::getInputBox($name, base64_decode(trim($this->getRequest()->getParam($name))));
     }
     $settings = new Qualityunit_Liveagent_Helper_Settings();
     return parent::getInputBox($name, $settings->getOption($name));
 }
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->assignVariable('dialogCaption', Mage::helper('adminhtml')->__('LiveAgent - Live chat and helpdesk plugin for Magento'));
     $this->assignVariable('sectionCaption', Mage::helper('adminhtml')->__('Account Installation'));
     $this->assignVariable('completeUrlAction', $this->getUrl('*/*/post'));
     $this->assignVariable('installingText', Mage::helper('adminhtml')->__('Thank you! Your account will be online within next few minutes. Please wait...'));
     $this->assignVariable('confEmailText', Mage::helper('adminhtml')->__('You should recieve confirmation email with your account credentials shortly.'));
     $this->assignVariable('bitLongerText', Mage::helper('adminhtml')->__('Note: Sometimes account creation process may take a'));
     $this->assignVariable('bitLongerLink', Mage::helper('adminhtml')->__('bit longer'));
     $this->assignVariable('installText', Mage::helper('adminhtml')->__('Installing'));
     $this->assignVariable('formKey', Mage::getSingleton('core/session')->getFormKey());
     $this->assignVariable('initializingText', Mage::helper('adminhtml')->__('Initializing...'));
 }
 public function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->assignVariable('dialogCaption', Mage::helper('adminhtml')->__('LiveAgent - Live chat and helpdesk plugin for Magento'));
     $this->assignVariable(self::FULL_NAME_FIELD, $this->getInputBox(self::FULL_NAME_FIELD, $this->getOwnerName()));
     $this->assignVariable(Qualityunit_Liveagent_Helper_Settings::LA_OWNER_EMAIL_SETTING_NAME, $this->getInputBox(Qualityunit_Liveagent_Helper_Settings::LA_OWNER_EMAIL_SETTING_NAME, $this->getOwnerEmail()));
     $this->assignVariable(Qualityunit_Liveagent_Helper_Settings::LA_URL_SETTING_NAME, $this->getInputBox(Qualityunit_Liveagent_Helper_Settings::LA_URL_SETTING_NAME, $this->getdomainOnly()));
     $this->assignVariable('submitCaption', Mage::helper('adminhtml')->__('Create your trial account'));
     $this->assignVariable('skipUrlAction', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_Account::CREATE_ACCOUNT_ACTION_FLAF)));
     $this->assignVariable('registerUrlAction', $this->getUrl('*/*/post'));
     $this->assignVariable('formKey', Mage::getSingleton('core/session')->getFormKey());
     $this->assignVariable('fullNameLabel', Mage::helper('adminhtml')->__('Full name'));
     $this->assignVariable('emailLabel', Mage::helper('adminhtml')->__('Email'));
     $this->assignVariable('fullNameHelp', Mage::helper('adminhtml')->__('Your first name and last name'));
     $this->assignVariable('urlLabel', Mage::helper('adminhtml')->__('Domain selection'));
     $this->assignVariable('urlHelp', Mage::helper('adminhtml')->__('.ladesk.com'));
     $this->assignVariable('termsLabel', Mage::helper('adminhtml')->__('By creating an account I agree to'));
     $this->assignVariable('termsLink', Mage::helper('adminhtml')->__('Terms & Conditions'));
     $this->assignVariable('skipLink', Mage::helper('adminhtml')->__('Skip this step, I already have an account'));
     $this->assignVariable('settingsSection', Mage::helper('adminhtml')->__('New account'));
     $this->assignVariable('pluginHelpText', Mage::helper('adminhtml')->__('We want you to enjoy the full functionality of LiveAgent with the trial account. It does not limit the number of agents and you have the option to activate the most of available features.'));
 }