<?php class ReduxFramework_text {

    /**
     * Field Constructor.
     *
     * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
     *
     * @since ReduxFramework 1.0.0
    */
    function __construct($field = array(), $value ='', $parent) {
        $this->field = $field;
		$this-&gt;value = $value;
		$this-&gt;args = $parent-&gt;args;
    }

    /**
     * Field Render Function.
     *
     * Takes the vars and outputs the HTML for the field in the settings
     *
     * @since ReduxFramework 1.0.0
    */
    function render() {
    
        $placeholder = (isset($this-&gt;field['placeholder'])) ? ' placeholder="' . esc_attr($this-&gt;field['placeholder']) . '" ' : '';
        echo '<input type="text" id="' . $this-&gt;field['id'] . '-text" name="' . $this-&gt;args['opt_name'] . '[' . $this-&gt;field['id'] . ']" . esc_attr>value) . '" class="regular-text ' . $this-&gt;field['class'] . '" /&gt;';
    
    }
}
