PluginProbe
UpStream: a Project Management Plugin for WordPress / trunk
UpStream: a Project Management Plugin for WordPress vtrunk
trunk 1.39.0 1.39.1 1.39.2 1.39.3 2.0.7 2.1.0
upstream / templates / report-parameters / display-fields.php

display-fields.php in UpStream: a Project Management Plugin for WordPress trunk, at templates/report-parameters/display-fields.php

45 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Report parameter template: display-fields
4 *
5 * @package UpStream
6 */
7
8 $display_options = $report->getDisplayOptions();
9
10 if ( ! empty( $display_options['show_display_fields_box'] ) ) :
11
12 ?>
13 <div class="col-md-12 col-sm-12 col-xs-12">
14 <div class="x_panel" data-section="report-parameters-display-fields">
15 <div class="x_title">
16 <h2>
17 <?php echo esc_html( __( 'Include Fields' ) ); ?>
18 </h2>
19 <div class="clearfix"></div>
20 </div>
21 <div class="x_content">
22
23 <div class="row">
24
25 <div class="col-lg-12">
26 <div class="form-group">
27 <select class="form-control" <?php echo empty( $display_options['single_display_field'] ) ? 'multiple' : ''; ?> name="upstream_report__display_fields[]">
28 <?php foreach ( $display_fields as $field_name => $up_title ) : ?>
29 <?php if ( ! isset( $display_options['field_options'] ) || in_array( $field_name, $display_options['field_options'] ) ) : ?>
30 <option <?php echo 'id' != $field_name ? 'selected' : ''; ?> value="<?php echo esc_attr( $field_name ); ?>"><?php echo esc_html( $up_title ); ?></option>
31 <?php endif; ?>
32 <?php endforeach; ?>
33 </select>
34
35 </div>
36 </div>
37 </div>
38 </div>
39 </div>
40 </div>
41
42 <?php
43
44 endif;
45