nowa-panda/plugins/pandaGadzety/utils/notice.php

38 lines
798 B
PHP
Raw Normal View History

2025-07-07 07:51:16 +00:00
<?php
namespace Foxstudio\Plugins\Template\Utils;
class Notice
{
public function noticeSuccess($title)
{
return $this->displayNotice('success', $title);
}
public function noticeWarning($title)
{
return $this->displayNotice('warning', $title);
}
public function noticeError($title)
{
return $this->displayNotice('error', $title);
}
public function noticeInfo($title)
{
return $this->displayNotice('info', $title);
}
private function displayNotice($type, $title)
{
return wc_print_notice($title, $type);
// return '
// <div class="notice notice-'. esc_attr($type) .' is-dismissible">
// <p>'. esc_html($title) .'</p>
// </div>
// ';
}
}