/
Welcome.php
43 lines (34 loc) · 1.33 KB
/
Welcome.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/*
* @copyright Copyright (c) 2011 by ESS-UA.
*/
abstract class Ess_M2ePro_Block_Adminhtml_Wizard_Welcome extends Ess_M2ePro_Block_Adminhtml_Wizard_Abstract
{
// ########################################
protected function _beforeToHtml()
{
// Initialization block
//------------------------------
$this->setId('wizard'.$this->getNick().'Welcome');
//------------------------------
// Set header text
//------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Welcome to M2E Pro - Magento %s Integration!',
Mage::helper('M2ePro/Module')->getMenuRootNodeLabel());
//------------------------------
// Buttons
//------------------------------
$this->prepareButtons();
$url = $this->getUrl('*/*/skip');
$this->_addButton('skip', array(
'label' => Mage::helper('M2ePro')->__('Skip Wizard'),
'onclick' => 'WizardHandlerObj.skip(\''.$url.'\')',
'class' => 'skip'
));
//------------------------------
$this->setTemplate('widget/form/container.phtml');
//------------------------------
return parent::_beforeToHtml();
}
// ########################################
}