File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/qode-framework/inc/common/fields-nav-menu/class-qodeframeworkfieldnavmenucheckbox.php
Back
<?php class QodeFrameworkFieldNavMenuCheckbox extends QodeFrameworkFieldNavMenuType { function __construct( $params ) { parent::__construct( $params ); } public function render() { $values = $this->params['value']; ?> <p class="description description-wide <?php echo esc_attr( $this->params['class'] ); ?>"> <label for="<?php echo esc_attr( $this->params['id'] ); ?>"><?php echo esc_html( $this->title ); ?><br/> <?php foreach ( $this->options as $key => $label ) : ?> <?php if ( '' !== $label ) { $checked = is_array( $values ) && in_array( $key, is_int( $key ) ? array_map( 'intval', $values ) : $values, true ) ? 'checked' : ''; $id = esc_attr( $this->params['id'] ); ?> <input <?php echo esc_attr( $checked ); ?> type="checkbox" id="<?php echo esc_attr( $id ); ?>" value="<?php echo esc_attr( $key ); ?>" name="<?php echo esc_attr( $this->params['field_name'] . '[]' ); ?>" /><?php echo esc_html( $label ); ?> <?php } endforeach; ?> <span class="description"><?php echo esc_html( $this->description ); ?></span> </label> </p> <?php } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings