Skip to content

Commit

Permalink
configurable display options (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Smolarek <tomasz.smolarek@escolasoft.com>
  • Loading branch information
dyfero and dyfero authored Aug 24, 2022
1 parent 4a581ea commit 2d3e102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/HeadlessH5PService.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function getContentSettings($id, ?string $token = null): array
//'resizeCode' => '<script src="'.self::get_h5pcore_url('/js/h5p-resizer.js').'" charset="UTF-8"></script>',
//'url' => route('h5p.embed', ['id' => $content['id']]),
'title' => $content['title'],
'displayOptions' => $this->getCore()->getDisplayOptionsForView(0, $content['id']),
'displayOptions' => $this->getCore()->getDisplayOptionsForView(!config('hh5p.h5p_show_display_option'), $content['id']),
'contentUserData' => [
0 => [
'state' => '{}', // TODO this should be retrived
Expand Down Expand Up @@ -538,7 +538,7 @@ public function getSettingsForContent($id): array
//'resizeCode' => '<script src="'.self::get_h5pcore_url('/js/h5p-resizer.js').'" charset="UTF-8"></script>',
//'url' => route('h5p.embed', ['id' => $content['id']]),
'title' => $content['title'],
'displayOptions' => $this->getCore()->getDisplayOptionsForView(0, $content['id']),
'displayOptions' => $this->getCore()->getDisplayOptionsForView(!config('hh5p.h5p_show_display_option'), $content['id']),
'contentUserData' => [
0 => [
'state' => '{}', // TODO get user actual state
Expand Down

0 comments on commit 2d3e102

Please sign in to comment.