nowa-panda/plugins/pandaGadzety/utils/information-about-labeling-mixed.php

18 lines
666 B
PHP
Raw Normal View History

2025-07-07 07:51:16 +00:00
<?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>';
}
}