PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / trunk
Disable Admin Notices – Hide Dashboard Notifications vtrunk
1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
disable-admin-notices / libs / factory / forms / includes / custom-element.class.php
disable-admin-notices / libs / factory / forms / includes Last commit date
providers 1 year ago complex-control.class.php 1 year ago control-holder.class.php 1 year ago control.class.php 1 year ago custom-element.class.php 1 year ago form-element.class.php 1 year ago form-layout.class.php 1 year ago form.class.php 1 year ago holder.class.php 1 year ago html-builder.class.php 1 year ago index.php 3 years ago
custom-element.class.php
46 lines
1 <?php
2 /**
3 * The file contains the base class for all custom elements.
4 *
5 * @author Alex Kovalev <alex.kovalevv@gmail.com>
6 * @copyright (c) 2018, Webcraftic Ltd
7 *
8 * @package factory-forms
9 * @since 1.0.0
10 */
11
12 // Exit if accessed directly
13 if( !defined('ABSPATH') ) {
14 exit;
15 }
16
17 if( !class_exists('Wbcr_FactoryForms480_CustomElement') ) {
18 /**
19 * The base class for all controls.
20 *
21 * @since 1.0.0
22 */
23 abstract class Wbcr_FactoryForms480_CustomElement extends Wbcr_FactoryForms480_FormElement {
24
25 /**
26 * Is this element a custom form element?
27 *
28 * @since 1.0.0
29 * @var bool
30 */
31 public $is_custom = true;
32
33 public function render()
34 {
35
36 // if the control is off, then ignore it
37 $off = $this->getOption('off', false);
38
39 if( $off ) {
40 return;
41 }
42
43 $this->html();
44 }
45 }
46 }