Foreach есть
foreach ($resources as $file)
{
$file = trim($file);
if (empty($file))
{
continue;
}
if (isset($smarty->resources[$file]))
{
self::ia_add_media(array('files' => $smarty->resources[$file], 'order' => $order), $smarty);
}
else
{
list($type, $file2) = @explode(':', $file);
switch ($type)
{
case 'js':
self::add_js(array('files' => $file2, 'order' => $order));
break;
case 'css':
self::ia_print_css(array('files' => $file2, 'order' => $order));
break;
case 'text':
self::add_js(array('text' => $file2, 'order' => $order));
}
}
}