$v) { switch ($k) { case 'sigil': $attributes['data-sigil'] = $v; unset($attributes[$k]); break; case 'meta': $response = CelerityAPI::getStaticResourceResponse(); $id = $response->addMetadata($v); $attributes['data-meta'] = $id; unset($attributes[$k]); break; case 'mustcapture': $attributes['data-mustcapture'] = '1'; unset($attributes[$k]); break; } } } return phutil_render_tag($tag, $attributes, $content); }