Skip to content

Commit

Permalink
Merge pull request pkp#625 from NateWr/i3691_theme_styles
Browse files Browse the repository at this point in the history
STABLE: pkp/pkp-lib#3691 Add default HTML galley styles
  • Loading branch information
NateWr authored Feb 7, 2019
2 parents 7dc72a5 + e0af4ef commit 5c36933
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function viewCallback($hookName, $params) {
'publicationFormat' => $publicationFormat,
'downloadFile' => $submissionFile,
));
$templateMgr->display($this->getTemplatePath() . '/display.tpl');
$templateMgr->display($this->getTemplateResource('display.tpl'));
return true;
}

Expand Down Expand Up @@ -166,6 +166,9 @@ function _getHTMLContents($request, $monograph, $publicationFormat, $submissionF
$contents
);

$templateMgr = TemplateManager::getManager($request);
$contents = $templateMgr->loadHtmlGalleyStyles($contents, $embeddableFiles);

// Perform variable replacement for press, publication format, site info
$press = $request->getPress();
$site = $request->getSite();
Expand Down Expand Up @@ -224,5 +227,3 @@ function _handleOmpUrl($matchArray) {
return $matchArray[1] . $url . $matchArray[3];
}
}


0 comments on commit 5c36933

Please sign in to comment.