Files
kupshop/admin/products.templates.php
2025-08-02 16:30:27 +02:00

26 lines
504 B
PHP

<?php
class ProductsTemplates extends Base
{
protected $template = 'window/products.templates.tpl';
public function get_vars()
{
$vars = parent::get_vars();
$cfg = Settings::getDefault();
return array_merge($vars, [
'templates' => $cfg->product_templates,
]);
}
public function display()
{
header('Content-Type: application/javascript; charset=UTF-8');
parent::display();
}
}
(new ProductsTemplates())->run();