26 lines
504 B
PHP
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();
|