diff --git a/assets/img/template-assets/beanbag_fau_1.png b/assets/img/template-assets/beanbag_fau_1.png new file mode 100644 index 0000000..86ea648 Binary files /dev/null and b/assets/img/template-assets/beanbag_fau_1.png differ diff --git a/assets/img/template-assets/beanbag_fau_2.png b/assets/img/template-assets/beanbag_fau_2.png new file mode 100644 index 0000000..19aaeb8 Binary files /dev/null and b/assets/img/template-assets/beanbag_fau_2.png differ diff --git a/assets/img/template-assets/beanbag_fau_3.png b/assets/img/template-assets/beanbag_fau_3.png new file mode 100644 index 0000000..c1e2ace Binary files /dev/null and b/assets/img/template-assets/beanbag_fau_3.png differ diff --git a/assets/img/template-assets/beanbag_med_1.png b/assets/img/template-assets/beanbag_med_1.png new file mode 100644 index 0000000..19bee67 Binary files /dev/null and b/assets/img/template-assets/beanbag_med_1.png differ diff --git a/assets/img/template-assets/beanbag_med_2.png b/assets/img/template-assets/beanbag_med_2.png new file mode 100644 index 0000000..7976948 Binary files /dev/null and b/assets/img/template-assets/beanbag_med_2.png differ diff --git a/assets/img/template-assets/beanbag_med_3.png b/assets/img/template-assets/beanbag_med_3.png new file mode 100644 index 0000000..c7f3f24 Binary files /dev/null and b/assets/img/template-assets/beanbag_med_3.png differ diff --git a/assets/img/template-assets/beanbag_nat_1.png b/assets/img/template-assets/beanbag_nat_1.png new file mode 100644 index 0000000..7509e09 Binary files /dev/null and b/assets/img/template-assets/beanbag_nat_1.png differ diff --git a/assets/img/template-assets/beanbag_nat_2.png b/assets/img/template-assets/beanbag_nat_2.png new file mode 100644 index 0000000..d0efdfb Binary files /dev/null and b/assets/img/template-assets/beanbag_nat_2.png differ diff --git a/assets/img/template-assets/beanbag_nat_3.png b/assets/img/template-assets/beanbag_nat_3.png new file mode 100644 index 0000000..905a69c Binary files /dev/null and b/assets/img/template-assets/beanbag_nat_3.png differ diff --git a/assets/img/template-assets/beanbag_phil_1.png b/assets/img/template-assets/beanbag_phil_1.png new file mode 100644 index 0000000..e85bd2e Binary files /dev/null and b/assets/img/template-assets/beanbag_phil_1.png differ diff --git a/assets/img/template-assets/beanbag_phil_2.png b/assets/img/template-assets/beanbag_phil_2.png new file mode 100644 index 0000000..31acc51 Binary files /dev/null and b/assets/img/template-assets/beanbag_phil_2.png differ diff --git a/assets/img/template-assets/beanbag_phil_3.png b/assets/img/template-assets/beanbag_phil_3.png new file mode 100644 index 0000000..71287d9 Binary files /dev/null and b/assets/img/template-assets/beanbag_phil_3.png differ diff --git a/assets/img/template-assets/beanbag_rw_1.png b/assets/img/template-assets/beanbag_rw_1.png new file mode 100644 index 0000000..d1ad81f Binary files /dev/null and b/assets/img/template-assets/beanbag_rw_1.png differ diff --git a/assets/img/template-assets/beanbag_rw_2.png b/assets/img/template-assets/beanbag_rw_2.png new file mode 100644 index 0000000..1a1842d Binary files /dev/null and b/assets/img/template-assets/beanbag_rw_2.png differ diff --git a/assets/img/template-assets/beanbag_rw_3.png b/assets/img/template-assets/beanbag_rw_3.png new file mode 100644 index 0000000..89b490d Binary files /dev/null and b/assets/img/template-assets/beanbag_rw_3.png differ diff --git a/assets/img/template-assets/beanbag_tf_1.png b/assets/img/template-assets/beanbag_tf_1.png new file mode 100644 index 0000000..420b76d Binary files /dev/null and b/assets/img/template-assets/beanbag_tf_1.png differ diff --git a/assets/img/template-assets/beanbag_tf_2.png b/assets/img/template-assets/beanbag_tf_2.png new file mode 100644 index 0000000..857be9c Binary files /dev/null and b/assets/img/template-assets/beanbag_tf_2.png differ diff --git a/assets/img/template-assets/beanbag_tf_3.png b/assets/img/template-assets/beanbag_tf_3.png new file mode 100644 index 0000000..8f9fd1f Binary files /dev/null and b/assets/img/template-assets/beanbag_tf_3.png differ diff --git a/config/config.php b/config/config.php index 4d61b6f..e13b718 100644 --- a/config/config.php +++ b/config/config.php @@ -402,6 +402,26 @@ function getConstants() { 'height' => 600, ], ], + 'seat' => [ + 1 => [ + 'x' => 1300, + 'y' => 850, + 'width' => 410, + 'height' => 220, + ], + 2 => [ + 'x' => 2350, + 'y' => 840, + 'width' => 410, + 'height' => 220, + ], + 3 => [ + 'x' => 2650, + 'y' => 855, + 'width' => 410, + 'height' => 220, + ], + ], ], 'booth2' => [ 'title' => [ @@ -518,6 +538,26 @@ function getConstants() { 'height' => 600, ], ], + 'seat' => [ + 1 => [ + 'x' => 1250, + 'y' => 855, + 'width' => 410, + 'height' => 220, + ], + 2 => [ + 'x' => 1670, + 'y' => 845, + 'width' => 410, + 'height' => 220, + ], + 3 => [ + 'x' => 2600, + 'y' => 855, + 'width' => 410, + 'height' => 220, + ], + ], ], 'foyer' => [ 'board1' => [ @@ -622,6 +662,26 @@ function getConstants() { 'height' => 610, ], ], + 'seat' => [ + 1 => [ + 'x' => 1140, + 'y' => 850, + 'width' => 410, + 'height' => 220, + ], + 2 => [ + 'x' => 2175, + 'y' => 840, + 'width' => 410, + 'height' => 220, + ], + 3 => [ + 'x' => 2550, + 'y' => 855, + 'width' => 410, + 'height' => 220, + ], + ], ], 'exposition' => [ 'panel' => [ diff --git a/includes/CPT/Booth.php b/includes/CPT/Booth.php index 4c8dd0d..dbf198d 100644 --- a/includes/CPT/Booth.php +++ b/includes/CPT/Booth.php @@ -334,6 +334,23 @@ public function boothFields() { 'options_cb' => [$this, 'getDecoObjects'], ]); + for ($i=1; $i<=3; $i++) { + $cmb_layout->add_field([ + 'name' => __('Seat', 'rrze-expo') . " $i", + //'desc' => __('', 'rrze-expo'), + 'id' => 'rrze-expo-booth-seat-'.$i, + 'type' => 'select', + 'default' => '', + 'options' => ['' => __('No Seat', 'rrze-expo'), + 'fau' => __('FAU (dark blue)', 'rrze-expo'), + 'med' => __('Med (light blue)', 'rrze-expo'), + 'nat' => __('Nat (green)', 'rrze-expo'), + 'phil' => __('Phil (yellow)', 'rrze-expo'), + 'rw' => __('RW (red)', 'rrze-expo'), + 'tf' => __('Tech (grey)', 'rrze-expo'),], + ]); + } + // AV Media $cmb_videos = new_cmb2_box([ diff --git a/includes/CPT/Foyer.php b/includes/CPT/Foyer.php index d57af95..f49de66 100644 --- a/includes/CPT/Foyer.php +++ b/includes/CPT/Foyer.php @@ -146,6 +146,23 @@ public function foyerFields() { ]); } + for ($i=1; $i<=3; $i++) { + $cmb->add_field([ + 'name' => __('Seat', 'rrze-expo') . " $i", + //'desc' => __('', 'rrze-expo'), + 'id' => 'rrze-expo-foyer-seat-'.$i, + 'type' => 'select', + 'default' => '', + 'options' => ['' => __('No Seat', 'rrze-expo'), + 'fau' => __('FAU (dark blue)', 'rrze-expo'), + 'med' => __('Med (light blue)', 'rrze-expo'), + 'nat' => __('Nat (green)', 'rrze-expo'), + 'phil' => __('Phil (yellow)', 'rrze-expo'), + 'rw' => __('RW (red)', 'rrze-expo'), + 'tf' => __('Tech (grey)', 'rrze-expo'),], + ]); + } + // Direction Board $cmb_panels = new_cmb2_box([ 'id' => 'rrze-expo-foyer-panels', diff --git a/includes/Templates/single-booth.php b/includes/Templates/single-booth.php index 889fea0..967cbad 100644 --- a/includes/Templates/single-booth.php +++ b/includes/Templates/single-booth.php @@ -359,6 +359,18 @@ ' . $schedule . ' '; } + + // Seats + for ($i=1; $i<=3; $i++) { + $seat[$i] = CPT::getMeta($meta, 'rrze-expo-booth-seat-'.$i); + $seatSettings = $constants['template_elements']['booth'.$templateNo]['seat'][$i]; + if ($seat[$i] != '') { + $file = WP_PLUGIN_URL . '/rrze-expo/assets/img/template-assets/beanbag_'.$seat[$i].'_'.$i.'.png'; + if ($file) { + echo ''; + } + } + } ?> diff --git a/includes/Templates/single-foyer.php b/includes/Templates/single-foyer.php index 3083520..87aecc3 100644 --- a/includes/Templates/single-foyer.php +++ b/includes/Templates/single-foyer.php @@ -172,6 +172,18 @@ } echo ''; } + + // Seats + for ($i=1; $i<=3; $i++) { + $seat[$i] = CPT::getMeta($meta, 'rrze-expo-foyer-seat-'.$i); + $seatSettings = $constants['template_elements']['foyer']['seat'][$i]; + if ($seat[$i] != '') { + $file = WP_PLUGIN_URL . '/rrze-expo/assets/img/template-assets/beanbag_'.$seat[$i].'_'.$i.'.png'; + if ($file) { + echo ''; + } + } + } ?>