shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

theme.php (358B)


      1 <?php
      2 class ModelDesignTheme extends Model {
      3 	public function getTheme($route, $theme) {
      4 		$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) . "'");
      5 
      6 		return $query->row;
      7 	}
      8 }