$v) { switch ($k) { case 'sigil': $classes[] = 'FN_'.$v; unset($attributes[$k]); break; case 'meta': $response = CelerityAPI::getStaticResourceResponse(); $id = $response->addMetadata($v); $classes[] = 'FD_'.$id; unset($attributes[$k]); break; case 'mustcapture': $classes[] = 'FI_CAPTURE'; unset($attributes[$k]); break; } } if (isset($attributes['class'])) { $classes[] = $attributes['class']; } $attributes['class'] = implode(' ', $classes); } return phutil_render_tag($tag, $attributes, $content); }