/** * @param string $html * @param array $args * @return string * @throws ElementJBPriceException */ private function _systemWrapper($html, array $args = array()) { $system = parent::getLayout('_system.php'); if (!$system) { throw new ElementJBPriceException('System wrapper file doesn\'t exists'); } return parent::renderLayout($system, array('html' => $html, 'args' => $args)); }