--- /dev/null
+<?php
+
+namespace App\Fluidbook\Compiler;
+
+trait Sound
+{
+
+ /**
+ * @throws \Exception
+ */
+ protected function writeSounds()
+ {
+ $dir = resource_path('fluidbookpublication/sounds/' . $this->fluidbookSettings->soundTheme);
+
+ if (!$this->fluidbookSettings->soundTheme || $this->fluidbookSettings->soundTheme == 'none' || !file_exists($dir)) {
+ $this->config->set('soundTheme', 'none');
+ return;
+ }
+ $this->config->set('simpleSoundTheme', file_exists($dir . '/flip.mp3'));
+ $this->vdir->copyDirectory($dir, 'data/sounds');
+ }
+}
--- /dev/null
+<?php
+
+if (!function_exists('dddd')) {
+ function dddd()
+ {
+ $devs = [5, 5908];
+ if (backpack_user() === null || !in_array(backpack_user()->id, $devs)) {
+ return;
+ }
+ return call_user_func_array('dd', func_get_args());
+ }
+}