public function theme($theme = null)
{
if ($theme === null) {
return isset($this->_data['theme']) ? $this->_data['theme'] : '';
}
$this->_data['theme'] = $theme;
}
/** * Get the AssetCompress factory based on the config object. * * @return \AssetCompress\Factory */ protected function factory() { if (empty($this->factory)) { $this->config->theme($this->theme); $this->factory = new Factory($this->config); } return $this->factory; }