File "input-submit.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-forms/templates/input-submit.php
File size: 1.12 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace FSVendor;

/**
 * @var \WPDesk\Forms\Field $field
 * @var \WPDesk\View\Renderer\Renderer $renderer
 * @var string $name_prefix
 * @var string $value
 * @var string $template_name Real field template.
 */
?>

<tr>
	<td style="padding-left:0;">
		<p class="submit">
			<input
				<?php 
if ($field->has_classes()) {
    ?>
					class="<?php 
    echo \esc_attr($field->get_classes());
    ?>"<?php 
}
?>
				<?php 
foreach ($field->get_attributes([]) as $key => $value) {
    ?>
					<?php 
    echo \esc_attr($key);
    ?>="<?php 
    echo \esc_attr($value);
    ?>"
				<?php 
}
?>
				type="<?php 
echo \esc_attr($field->get_type());
?>"
				name="<?php 
echo \esc_attr($name_prefix);
?>[<?php 
echo \esc_attr($field->get_name());
?>]"
				id="<?php 
echo \esc_attr($field->get_id());
?>"
				value="<?php 
echo \esc_html($field->get_label());
?>"
				<?php 
if ($field->is_required()) {
    ?>
					required="required"<?php 
}
?>
				<?php 
if ($field->is_disabled()) {
    ?>
					disabled="disabled"<?php 
}
?>
				<?php 
if ($field->is_readonly()) {
    ?>
					readonly="readonly"<?php 
}
?>
			/>
		</p>
	</td>
</tr>
<?php