| 14 | | protected $prefix = 'donation_phone_'; |
| 15 | | protected $eventObj; |
| 16 | | |
| 17 | | /** |
| 18 | | * @see EventListener::execute() |
| 19 | | */ |
| 20 | | public function execute($eventObj, $className, $eventName) { |
| 21 | | $this->eventObj = $eventObj; |
| 22 | | |
| 23 | | if($this->eventObj->system != '' && $this->eventObj->system != $this->system) { |
| 24 | | return; |
| 25 | | } |
| 26 | | |
| 27 | | switch($eventName) { |
| 28 | | case 'assignVariables': |
| 29 | | $this->assignVariables(); |
| 30 | | break; |
| 31 | | } |
| 32 | | } |
| 33 | | |
| 34 | | /** |
| 35 | | * @see Page::assignVariables() |
| 36 | | */ |
| 37 | | protected function assignVariables() { |
| 38 | | switch($this->eventObj->step) { |
| 39 | | case 1: |
| 40 | | WCF::getTPL()->assign(array( |
| 41 | | 'donation_system' => $this->system, |
| 42 | | 'donation_icon' => RELATIVE_WCF_DIR.'icon/donation_phone.png','', |
| 43 | | 'donation_title' => WCF::getLanguage()->get('wcf.donation.category.donation.plugins.phone'), |
| 44 | | 'donation_description' => WCF::getLanguage()->get('wcf.donation.category.donation.plugins.phone.description') |
| 45 | | )); |
| 46 | | |
| 47 | | WCF::getTPL()->append('additionalDonationSystems', WCF::getTPL()->fetch('donation_container')); |
| 48 | | break; |
| 49 | | } |
| 50 | | } |
| | 15 | |
| | 16 | //data |
| | 17 | protected $arr = array('phone_enable'); |