PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.3
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.3
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / front / Params / archive.php

archive.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.3, at front/Params/archive.php

36 lines 903 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined('ABSPATH') || die('Restricted Access');
3
4 include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php';
5
6 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Joomla specific class naming with imposed prefix "JFormField".
7 class JFormFieldArchive extends AcymJFormField
8 {
9 public function __construct($form = null)
10 {
11 $this->type = 'archive';
12 parent::__construct($form);
13 }
14
15 public function getInput()
16 {
17
18 $value = empty($this->value) ? 0 : $this->value;
19
20 return acym_select(
21 [
22 '5' => '5',
23 '10' => '10',
24 '15' => '15',
25 '20' => '20',
26 '30' => '30',
27 '50' => '50',
28 '100' => '100',
29 '200' => '200',
30 ],
31 $this->name,
32 $value
33 );
34 }
35 }
36