field = $field; $this->value = $value; $this->args = $parent->args; } /** * Field Render Function. * * Takes the vars and outputs the HTML for the field in the settings * * @since ReduxFramework 1.0.1 */ function render() { if (!empty($this->field['username']) && $this->field['username'] === true ) { $defaults = array( 'username'=>'', 'password'=>'', 'placeholder' => array('password'=>__( 'Password', 'redux-framework' ), 'username'=>__( 'Username', 'redux-framework' )) ); $this->value = wp_parse_args( $this->value, $defaults ); } if ( !empty($this->field['placeholder'] ) ) { if ( is_array( $this->field['placeholder'] ) && !empty( $this->field['placeholder']['password'] ) ) { $this->value['placeholder']['password'] = $this->field['placeholder']['password']; } if ( is_array( $this->field['placeholder'] ) && !empty( $this->field['placeholder']['username'] ) ) { $this->value['placeholder']['username'] = $this->field['placeholder']['username']; } } else { $this->value['placeholder']['password'] = $this->field['placeholder']; } if (!empty($this->field['username']) && $this->field['username'] === true ) { echo ''; echo ''; } else { echo ''; } } }