PluginProbe ʕ •ᴥ•ʔ
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / trunk
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF vtrunk
2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
robin-image-optimizer / libs / factory / forms / includes / custom-element.class.php
robin-image-optimizer / libs / factory / forms / includes Last commit date
providers 5 months ago complex-control.class.php 5 months ago control-holder.class.php 5 months ago control.class.php 5 months ago custom-element.class.php 5 months ago form-element.class.php 5 months ago form-layout.class.php 5 months ago form.class.php 5 months ago holder.class.php 5 months ago html-builder.class.php 5 months ago index.php 5 months ago
custom-element.class.php
43 lines
1 <?php
2 /**
3 * The file contains the base class for all custom elements.
4 *
5 * @package factory-forms
6 * @since 1.0.0
7 */
8
9 // Exit if accessed directly
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 if ( ! class_exists( 'Wbcr_FactoryForms600_CustomElement' ) ) {
15 /**
16 * The base class for all controls.
17 *
18 * @since 1.0.0
19 */
20 abstract class Wbcr_FactoryForms600_CustomElement extends Wbcr_FactoryForms600_FormElement {
21
22 /**
23 * Is this element a custom form element?
24 *
25 * @since 1.0.0
26 * @var bool
27 */
28 public $is_custom = true;
29
30 public function render() {
31
32 // if the control is off, then ignore it
33 $off = $this->getOption( 'off', false );
34
35 if ( $off ) {
36 return;
37 }
38
39 $this->html();
40 }
41 }
42 }
43