Skip to content

Commit fb62787

Browse files
committed
Add content hub and a11y changes from Drupal git
See Drupal 7 git for git history for these commits.
1 parent 35eb39c commit fb62787

15 files changed

+1401
-5
lines changed

fonts/h5p-core-26.eot

24.4 KB
Binary file not shown.

fonts/h5p-core-26.svg

+112
Loading

fonts/h5p-core-26.ttf

24.2 KB
Binary file not shown.

fonts/h5p-core-26.woff

24.3 KB
Binary file not shown.

fonts/h5p-hub-publish.eot

2.65 KB
Binary file not shown.

fonts/h5p-hub-publish.svg

+38
Loading

fonts/h5p-hub-publish.ttf

2.49 KB
Binary file not shown.

fonts/h5p-hub-publish.woff

2.56 KB
Binary file not shown.

h5p-metadata.class.php

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ abstract class H5PMetadata {
99
'type' => 'text',
1010
'maxLength' => 255
1111
),
12+
'a11yTitle' => array(
13+
'type' => 'text',
14+
'maxLength' => 255,
15+
),
1216
'authors' => array(
1317
'type' => 'json'
1418
),
@@ -57,6 +61,7 @@ public static function toJSON($content) {
5761
// Note: deliberatly creating JSON string "manually" to improve performance
5862
return
5963
'{"title":' . (isset($content->title) ? json_encode($content->title) : 'null') .
64+
',"a11yTitle":' . (isset($content->a11y_title) ? $content->a11y_title : 'null') .
6065
',"authors":' . (isset($content->authors) ? $content->authors : 'null') .
6166
',"source":' . (isset($content->source) ? '"' . $content->source . '"' : 'null') .
6267
',"license":' . (isset($content->license) ? '"' . $content->license . '"' : 'null') .

0 commit comments

Comments
 (0)