Skip to content

Commit

Permalink
Sitze Messestand + Foyer
Browse files Browse the repository at this point in the history
  • Loading branch information
cassandre committed Jul 6, 2021
1 parent c9ee0e1 commit f594947
Show file tree
Hide file tree
Showing 23 changed files with 118 additions and 0 deletions.
Binary file added assets/img/template-assets/beanbag_fau_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_fau_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_fau_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_med_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_med_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_med_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_nat_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_nat_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_nat_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_phil_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_phil_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_phil_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_rw_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_rw_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_rw_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_tf_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_tf_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/template-assets/beanbag_tf_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -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' => [
Expand Down Expand Up @@ -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' => [
Expand Down
17 changes: 17 additions & 0 deletions includes/CPT/Booth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
17 changes: 17 additions & 0 deletions includes/CPT/Foyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 12 additions & 0 deletions includes/Templates/single-booth.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,18 @@
<body xmlns="http://www.w3.org/1999/xhtml">' . $schedule . '</body>
</foreignObject>';
}

// 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 '<image xlink:href="'.$file.'" preserveAspectRatio="xMidYMin meet" width="'.$seatSettings['width'].'" height="'.$seatSettings['height'].'" x="'.$seatSettings['x'].'" y="'.$seatSettings['y'].'" />';
}
}
}
?>
</svg>
<?php if ($hasContent) { ?>
Expand Down
12 changes: 12 additions & 0 deletions includes/Templates/single-foyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@
}
echo '</g>';
}

// 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 '<image xlink:href="'.$file.'" preserveAspectRatio="xMidYMin meet" width="'.$seatSettings['width'].'" height="'.$seatSettings['height'].'" x="'.$seatSettings['x'].'" y="'.$seatSettings['y'].'" />';
}
}
}
?>
</svg>

Expand Down

0 comments on commit f594947

Please sign in to comment.