public function template($type, $options) { if (isset($options[$type])) { return $options[$type]; } return isset($options['template']) ? $options['template'] : ''; }