Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/javelin/markup.php
Show All 30 Lines | foreach ($attributes as $k => $v) { | ||||
unset($attributes['data-mustcapture']); | unset($attributes['data-mustcapture']); | ||||
} | } | ||||
unset($attributes[$k]); | unset($attributes[$k]); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (isset($attributes['aural'])) { | |||||
if ($attributes['aural']) { | |||||
$class = idx($attributes, 'class', ''); | |||||
$class = rtrim('aural-only '.$class); | |||||
$attributes['class'] = $class; | |||||
} else { | |||||
$class = idx($attributes, 'class', ''); | |||||
$class = rtrim('visual-only '.$class); | |||||
$attributes['class'] = $class; | |||||
$attributes['aria-hidden'] = 'true'; | |||||
} | |||||
unset($attributes['aural']); | |||||
} | |||||
return phutil_tag($tag, $attributes, $content); | return phutil_tag($tag, $attributes, $content); | ||||
} | } | ||||
function phabricator_form(PhabricatorUser $user, $attributes, $content) { | function phabricator_form(PhabricatorUser $user, $attributes, $content) { | ||||
$body = array(); | $body = array(); | ||||
$http_method = idx($attributes, 'method'); | $http_method = idx($attributes, 'method'); | ||||
$is_post = (strcasecmp($http_method, 'POST') === 0); | $is_post = (strcasecmp($http_method, 'POST') === 0); | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |