Ejemplo n.º 1
0
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;
	}
}
Ejemplo n.º 2
0
	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;
		}
	}