Merged in library changes.

namespaces
Frode Petterson 2014-02-11 13:45:40 +01:00
parent ced3f8e711
commit 7d8d85f450
2 changed files with 4 additions and 61 deletions

View File

@ -246,16 +246,6 @@ interface H5PFrameworkInterface {
* Check if export is enabled. * Check if export is enabled.
*/ */
public function isExportEnabled(); public function isExportEnabled();
/**
* Defines getEditorLibraries.
*
* @param $machineName Library identifier.
* @param $majorVersion Library identfier.
* @param $minorVersion Library identfier.
* @return array Editor libraries?
*/
public function getEditorLibraries($machineName, $majorVersion, $minorVersion, $complete = FALSE);
} }
/** /**
@ -1131,7 +1121,7 @@ Class H5PExport {
// Build h5p.json // Build h5p.json
$h5pJson = array ( $h5pJson = array (
'title' => $title, 'title' => $title,
'language' => $language ? $language : 'und', 'language' => $exportData['language'] ? $exportData['language'] : 'und',
'mainLibrary' => $exportData['mainLibrary'], 'mainLibrary' => $exportData['mainLibrary'],
'embedTypes' => $embedTypes, 'embedTypes' => $embedTypes,
); );
@ -1155,8 +1145,8 @@ Class H5PExport {
} }
// Add preloaded and dynamic dependencies if they exist // Add preloaded and dynamic dependencies if they exist
if (isset($preloadedDependencies)) { $h5pJson['preloadedDependencies'] = $preloadedDependencies; } if ($preloadedDependencies) { $h5pJson['preloadedDependencies'] = $preloadedDependencies; }
if (isset($dynamicDependencies)) { $h5pJson['dynamicDependencies'] = $dynamicDependencies; } if ($dynamicDependencies) { $h5pJson['dynamicDependencies'] = $dynamicDependencies; }
// Save h5p.json // Save h5p.json
$results = print_r(json_encode($h5pJson), true); $results = print_r(json_encode($h5pJson), true);
@ -1208,7 +1198,7 @@ Class H5PExport {
$h5pDir = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR; $h5pDir = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR;
$zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . $contentId . '.h5p'; $zipPath = $h5pDir . 'exports' . DIRECTORY_SEPARATOR . $contentId . '.h5p';
if (file_exists($zipPath)) { if (file_exists($zipPath)) {
unlink($zipPath); file_delete($zipPath);
} }
} }

View File

@ -169,50 +169,3 @@ body.h5p-iframe-content div.h5p-content {
body.h5p-iframe-content.h5p-fullscreen div.h5p-content { body.h5p-iframe-content.h5p-fullscreen div.h5p-content {
height: 100%; height: 100%;
} }
.h5p-export {
margin-top: 6px;
display: block;
position: relative;
float: left;
border-radius: 4px;
padding: 4px 58px 3px 12px;
font-weight: 900;
font-family: "Arial Black", Arial, sans-serif;
text-transform: uppercase;
color: white !important;
background-color: #ccc;
box-shadow: 0px 0px 4px #666;
}
.h5p-export:after {
content: "";
display: inline;
width: 45px;
height: 27px;
position: absolute;
right: 0;
top: 0;
background-image: url(../images/h5p_logo.png);
background-image: url(../images/h5p_logo.svg), none;
background-repeat: no-repeat;
background-position: left center;
}
.h5p-export:hover {
text-decoration: none;
color: white;
box-shadow: 0px 0px 6px #333;
background-color: #0092bf;
/* Firefox */
-moz-transition: all 0.4s ease-in;
/* WebKit */
-webkit-transition: all 0.4s ease-in;
/* Opera */
-o-transition: all 0.4s ease-in;
/* Standard */
transition: all 0.4s ease-in;
}