18 lines
666 B
PHP
18 lines
666 B
PHP
<?php
|
|
|
|
namespace Foxstudio\Plugins\Template\Utils;
|
|
class InformationAboutLabelingMixed {
|
|
|
|
public function __construct() {
|
|
// \add_action('woocommerce_before_cart', [$this, 'add_description'], 10);
|
|
\add_shortcode("InformationAboutLabelingMixed", [$this, 'add_description']);
|
|
}
|
|
|
|
function add_description($arg)
|
|
{
|
|
$title = "Nie łączymy zamówień bez znakowania i ze znakowaniem!";
|
|
return '<div id="info" style="border-width: 0 0 0 5px; border-style:solid; border-color: var(--primary); padding: 10px; margin-bottom: 20px; background-color: rgba(0, 180, 225, 0.1); font-weight: bold">' . $title . '</div>';
|
|
|
|
}
|
|
}
|