function smarty_modifier_static($param, $plugin = null) { $static = CoOrg::staticFile($param, $plugin); if (is_array($static)) { CoOrgSmarty::$_static_array = $static; return $static[0]; } else { return $static; } }
public function stylesheet($style) { if (self::$_static_array) { foreach (self::$_static_array as $s) { $this->_stylesheets[] = $s; } self::$_static_array = null; } else { $this->_stylesheets[] = $style; } }