# e2pdf/1.03.07/classes/view/field/checkbox.php

E2Pdf – Export Pdf Tool for WordPress, version 1.03.07. 15 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/1.03.07/code/classes/view/field/checkbox.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.03.07/raw/classes/view/field/checkbox.php
- Modified: 2018-12-25T15:41:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/e2pdf/1.03.07/code/classes/view/field/checkbox.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) {
    die('Access denied.');
}
?>
<fieldset>
    <legend class="screen-reader-text"><span><?php _e($this->tpl_args->get('title')); ?></span></legend>
    <label>
        <?php $checkbox_field = $this->tpl_args->get('field'); ?>
        <input type="hidden" name="<?php echo isset($checkbox_field['name']) ? $checkbox_field['name'] : '' ?>" value="<?php echo $this->tpl_args->get('default_value'); ?>"/>
        <input type="checkbox" <?php foreach ($this->tpl_args->get('field') as $key => $value) { ?><?php if (($key === 'disabled' && $value != false) || $key != 'disabled') { ?><?php echo $key; ?>="<?php echo $value; ?>" <?php } ?><?php } ?><?php echo $this->tpl_args->get('value') == $this->tpl_args->get('checkbox_value') ? 'checked="checked"' : '' ?>
               value="<?php echo $this->tpl_args->get('checkbox_value'); ?>"/> <?php echo isset($checkbox_field['placeholder']) ? $checkbox_field['placeholder'] : '' ?>
    </label>
</fieldset>

```
