<?php
/**
 * Widget Content Error - Template
 * 
 * @package OrokuBlocks
 * @author OrokuBlocks (https://orokublocks.com/)
 * 
 * @since 1.0.0
 * 
 * @param array $args {
 *   @type string $title          Text box title.
 *   @type string $text           Text box text.
 * }
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
  exit;
}

$defaults = [];

$options = array_merge( $defaults, $args );

?>
<div class="orokublocks-widget">
  <div class="orokublocks-text-box orokublocks-text-box--theme--isolated orokublocks-text-box--theme--negative">
    <div class="orokublocks-text-box__header">
      <div class="orokublocks-text-box__icon orokublocks-text-box-status-tag orokublocks-text-box-status-tag--size--small orokublocks-text-box-status-tag--style--border orokublocks-text-box-status-tag--theme--negative">
      <?php

        /**
         * SVG
         */
        orokublocks()->requireTemplate(
          'includes/template/svg',
          [
            'additional_wrapper_classes'  => 'orokublocks-text-box-status-tag__icon',
            'icon'                        => 'cross'
          ]
        );

      ?>
      </div>
      <h2 class="orokublocks-text-box__title orokublocks-card__title"><?php echo esc_html( $options['title'] ); ?></h2>
    </div>
    <p class="orokublocks-text-box__message orokublocks-card__text"><?php echo esc_html( $options['text'] ); ?></p>
  </div>
</div>