<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php
function dialbunny_main_success($title, $comment)
{
  return '<div class="alert alert-dismissible bg-light-success d-flex flex-column flex-sm-row p-5 mb-8">
        <i class="fs-2tx text-success me-4">
          <span class="fas fa-check"></span>
        </i>
        <div class="d-flex flex-column pe-0 pe-sm-10">
            <h4 class="fw-semibold">' . esc_html($title) . '</h4>
            <span>' . esc_html($comment) . '</span>
        </div>
        <button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
        <i class="fs-1 text-success">
          <span class="fas fa-times"></span>
        </i>
        </button>
    </div>';
}

function dialbunny_main_danger($title, $comment)
{
  return '<div class="alert alert-dismissible bg-light-danger d-flex flex-column flex-sm-row p-5 mb-10">
        <i class="fs-2tx text-warning me-4">
          <span class="fas fa-times"></span>
        </i>
        <div class="d-flex flex-column pe-0 pe-sm-10">
            <h4 class="fw-semibold">' . esc_html($title) . '</h4>
            <span>' . esc_html($comment) . '</span>
        </div>
        <button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
            <i class="fs-1 text-danger">
              <span class="fas fa-times"></span>
            </i>
        </button>
    </div>';
}
