# pixcodes/2.3.8/params/switch.php

PixCodes, version 2.3.8. 13 lines.

- Page: https://pluginprobe.com/plugins/pixcodes/2.3.8/code/params/switch.php
- Raw: https://pluginprobe.com/plugins/pixcodes/2.3.8/raw/params/switch.php
- Modified: 2026-05-17T19:21:48+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/pixcodes/2.3.8/code/params/switch.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$class= "span12";
if ( isset($param['admin_class'] ) ) $class = $param['admin_class']; ?>

    <span class="<?php echo esc_attr( $class ); ?>" >
        <input type="checkbox" name="<?php echo esc_attr( $param['param_key'] ); ?>" />
        <label for="<?php echo esc_attr( $param['param_key'] ); ?>"><?php echo esc_html( $param['name'] ); ?></label>
    </span>

```
