archive.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.11.1, at front/Params/archive.php
| 1 | <?php |
| 2 | |
| 3 | include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php'; |
| 4 | |
| 5 | class JFormFieldArchive extends AcymJFormField |
| 6 | { |
| 7 | public function __construct($form = null) |
| 8 | { |
| 9 | $this->type = 'archive'; |
| 10 | parent::__construct($form); |
| 11 | } |
| 12 | |
| 13 | public function getInput() |
| 14 | { |
| 15 | |
| 16 | $value = empty($this->value) ? 0 : $this->value; |
| 17 | |
| 18 | return acym_select( |
| 19 | [ |
| 20 | '5' => '5', |
| 21 | '10' => '10', |
| 22 | '15' => '15', |
| 23 | '20' => '20', |
| 24 | '30' => '30', |
| 25 | '50' => '50', |
| 26 | '100' => '100', |
| 27 | '200' => '200', |
| 28 | ], |
| 29 | $this->name, |
| 30 | $value |
| 31 | ); |
| 32 | } |
| 33 | } |
| 34 |