PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.03.07
E2Pdf – Export Pdf Tool for WordPress v1.03.07
1.32.49 1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 1.06.02 1.07.11 1.08.00 1.08.06 All 72 releases
e2pdf / classes / view / field / checkbox.php

checkbox.php in E2Pdf – Export Pdf Tool for WordPress 1.03.07, at classes/view/field/checkbox.php

15 lines 982 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 die('Access denied.');
4 }
5 ?>
6 <fieldset>
7 <legend class="screen-reader-text"><span><?php _e($this->tpl_args->get('title')); ?></span></legend>
8 <label>
9 <?php $checkbox_field = $this->tpl_args->get('field'); ?>
10 <input type="hidden" name="<?php echo isset($checkbox_field['name']) ? $checkbox_field['name'] : '' ?>" value="<?php echo $this->tpl_args->get('default_value'); ?>"/>
11 <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"' : '' ?>
12 value="<?php echo $this->tpl_args->get('checkbox_value'); ?>"/> <?php echo isset($checkbox_field['placeholder']) ? $checkbox_field['placeholder'] : '' ?>
13 </label>
14 </fieldset>
15