<?php if ( ! defined( 'ABSPATH' ) ) exit; // Cannot access directly.
/**
 *
 * Field: submessage
 *
 * @since 1.0.0
 * @version 1.0.0
 *
 */
if ( ! class_exists( 'WPDK_Settings_Field_submessage' ) ) {
  class WPDK_Settings_Field_submessage extends WPDK_Settings_Fields {

    public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
      parent::__construct( $field, $value, $unique, $where, $parent );
    }

    public function render() {

      $style = ( ! empty( $this->field['style'] ) ) ? $this->field['style'] : 'normal';

      echo '<div class="wpdk_settings-submessage wpdk_settings-submessage-'. esc_attr( $style ) .'">'. $this->field['content'] .'</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

    }

  }
}
