options = $options; $this->values = $values; } /* * Generate options fields * @return string */ public function generate_fields() { if ( empty( $this->options ) ) { return; } $html = ''; $html .= '
| '; $html .= ' | ';
$html .= $this->get_field( $field );
if ( isset( $field['tip'] ) && $field['tip'] ) {
$html .= '';
}
if ( isset( $field['spoiler'] ) && $field['spoiler'] ) {
$html .= ' '; $html .= ''; $html .= '' . $field['spoiler']['title'] . ''; $html .= '' . stripslashes( $field['spoiler']['text'] ) . ''; $html .= ''; } $html .= ' | ';
$html .= '
|---|