| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function _getElementHtml(AbstractElement $element) |
||
| 26 | { |
||
| 27 | $originalData = $element->getOriginalData(); |
||
| 28 | $label = __($originalData['button_label']); |
||
| 29 | $url = $this->escapeHtml($originalData['button_url']); |
||
| 30 | $labelCredentials = __($originalData['button_credentials_label']); |
||
| 31 | $urlCredentials = $this->escapeHtml($originalData['button_credentials_url']); |
||
| 32 | return <<<EOD |
||
| 33 | <div class="pp-buttons-container"> |
||
| 34 | <button onclick="javascript:window.open('$url')" class="scalable" type="button" id="bo_pagantis"> |
||
| 35 | <span>$label</span> |
||
| 36 | </button> |
||
| 37 | <button onclick="javascript:window.open('$urlCredentials')" class="scalable" type="button" id="api_pagantis"> |
||
| 38 | <span>$labelCredentials</span> |
||
| 39 | </button> |
||
| 44 |