Ekdant-Online-Store/catalog/model/design/theme.php

19 lines
494 B
PHP
Raw Permalink Normal View History

2024-08-06 12:21:00 +00:00
<?php
namespace Opencart\Catalog\Model\Design;
/**
* Class Theme
*
* @package Opencart\Catalog\Model\Design
*/
class Theme extends \Opencart\System\Engine\Model {
/**
* @param string $route
*
* @return array
*/
public function getTheme(string $route): array {
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "theme` WHERE `store_id` = '" . (int)$this->config->get('config_store_id') . "' AND `route` = '" . $this->db->escape($route) . "'");
return $query->row;
}
}