mirror of
https://github.com/lubuntu-team/lubuntu.me.git
synced 2025-08-14 15:34:03 +00:00
30 lines
577 B
PHP
30 lines
577 B
PHP
<?php
|
|
abstract class SiteOrigin_Widget_ContactForm_Field_Base {
|
|
|
|
/**
|
|
* The options for this field. Used when enqueueing styles and scripts and rendering the field.
|
|
*
|
|
* @access protected
|
|
* @var array
|
|
*/
|
|
protected $options;
|
|
|
|
public function __construct( $options ) {
|
|
$this->options = $options;
|
|
$this->init();
|
|
}
|
|
|
|
private function init() {
|
|
$this->initialize( $this->options );
|
|
}
|
|
|
|
protected function initialize( $options ) {
|
|
}
|
|
|
|
abstract protected function render_field( $options );
|
|
|
|
public function render() {
|
|
$this->render_field( $this->options );
|
|
}
|
|
}
|