Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label class="title"><?php echo esc_html( translate( $label, 'appthemes' ) ); ?></label>
- <div class="handle close"></div>
- <div class="element">
- <?php
- $options = explode(',', $values);
- $optionCursor = 1;
- $checked = '';
- ?>
- <div class="scrollbox">
- <ol class="checkboxes">
- <?php
- $cur = isset( $_GET[$name] ) ? $_GET[$name] : array();
- foreach ( $options as $option ) {
- if ( $cur )
- $checked = in_array( trim( $option ), $cur ) ? " checked='checked'" : ''; ?>
- <li>
- <input type="checkbox" name="<?php echo esc_attr( $name ); ?>[]" value="<?php echo esc_attr( trim( $option ) ); ?>" <?php echo $checked;?>/> <label for="<?php echo esc_attr( $name ); ?>[]"><?php echo esc_html( trim($option) ); ?></label>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement