diff options
Diffstat (limited to 'public/catalog/model/design/theme.php')
-rw-r--r-- | public/catalog/model/design/theme.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/public/catalog/model/design/theme.php b/public/catalog/model/design/theme.php new file mode 100644 index 0000000..9b0aae1 --- /dev/null +++ b/public/catalog/model/design/theme.php @@ -0,0 +1,8 @@ +<?php +class ModelDesignTheme extends Model { + public function getTheme($route, $theme) { + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "theme WHERE store_id = '" . (int)$this->config->get('config_store_id') . "' AND theme = '" . $this->db->escape($theme) . "' AND route = '" . $this->db->escape($route) . "'"); + + return $query->row; + } +}
\ No newline at end of file |