| Current Path : /home/k/r/o/krobertfnz/www/wp-content/plugins/vamtam-elements-b/metaboxes/templates/ |
| Current File : /home/k/r/o/krobertfnz/www/wp-content/plugins/vamtam-elements-b/metaboxes/templates/select.php |
<?php
$selected = $default;
$ff = empty( $field_filter ) ? '' : 'data-field-filter="' . esc_attr( $field_filter ) . '"';
?>
<div class="vamtam-config-row clearfix <?php echo esc_attr( $class ) ?>" <?php echo $ff // xss ok ?>>
<div class="rtitle">
<h4><label for="<?php echo esc_attr( $id ) ?>"><?php echo esc_html( $name ) ?></label></h4>
</div>
<div class="rcontent">
<select name="<?php echo esc_attr( $id ) ?>" id="<?php echo esc_attr( $id ) ?>" class="">
<?php if ( isset( $prompt ) ) : ?>
<option value=""><?php echo esc_html( $prompt ) ?></option>
<?php endif ?>
<?php foreach ( $options as $key => $option ) : ?>
<option value="<?php echo esc_attr( $key )?>" <?php selected( $selected, $key ) ?>><?php echo esc_html( $option ) ?></option>
<?php endforeach ?>
<?php
if ( isset( $page ) ) {
$args = array(
'depth' => $page,
'child_of' => 0,
'selected' => $selected,
'echo' => 1,
'name' => 'page_id',
'id' => '',
'show_option_none' => '',
'show_option_no_change' => '',
'option_none_value' => '',
);
$pages = get_pages( $args );
echo walk_page_dropdown_tree( $pages, $depth, $args ); // xss ok
}
?>
</select>
<br />
</div>
</div>