Skip to content
Snippets Groups Projects
Commit 6f60aeff authored by ØyvindG's avatar ØyvindG
Browse files

update to use breadcrumb (copy template from plugin and diff)

parent 21226066
No related branches found
No related tags found
No related merge requests found
{**
* plugins/generic/embedHtmlArticleGalleyPlugin/display.tpl
*
......@@ -8,44 +7,62 @@
*
* Embedded viewing of a HTML galley.
*}
{include file="frontend/components/header.tpl"}
{include file=$headerTemplatePath}
{include file=$breadcrumbsTemplatePath}
<div id="htmlContainer">
{if !$isLatestPublication}
<div class="galley_view_notice">
<div class="galley_view_notice_message" role="alert">
{translate key="submission.outdatedVersion" datePublished=$galleyPublication->getData('datePublished')|date_format:$dateFormatLong urlRecentVersion=$articleUrl}
</div>
</div>
{/if}
{$html}
{* UZH CHANGE OJS-62 sui-generis script for numbering of paragraphs *}
<script>
$('.content p').each(function(){
var nrid = $(this).attr('id');
if (nrid) {
var nrid2 = nrid.replace('nr-','');
$(this).replaceWith('<p class="nr">'+nrid2+'</p>');
}
});
</script>
{* END CHANGE OJS-62 *}
{* Header wrapper *}
{* UZH CHANGE OJS-79 (GISo) script for responsive tables *}
<script>
$('table').wrap('<div style="overflow-x:auto;"></div>');
</script>
{* END UZH CHANGE OJS-79 *}
<div id="htmlContainer" style="margin-left: auto; margin-right: auto; max-width: 700px; padding-top: 20px">
{if !$isLatestPublication}
<div class="galley_view_notice">
<div class="galley_view_notice_message" role="alert">
{translate key="submission.outdatedVersion" datePublished=$galleyPublication->getData('datePublished')|date_format:$dateFormatLong urlRecentVersion=$articleUrl}
</div>
</div>
{/if}
{$html}
{* UZH CHANGE OJS-67 2019/03/08/mb display Licensing info *}
{* Licensing info *}
{* UZH CHANGE OJS-67 2019/03/08/mb display Licensing info *}
{* Licensing info *}
{* Some $html fragments already includes Copyright info *}
{if ($copyright || $licenseUrl) and !($html|strstr: "Copyright:") }
<div class="item copyright">
{if $licenseUrl}
{if $ccLicenseBadge}
{if $copyrightHolder}
<p>{translate key="submission.copyrightStatement" copyrightHolder=$copyrightHolder copyrightYear=$copyrightYear}</p>
{/if}
{$ccLicenseBadge}
{else}
<a href="{$licenseUrl|escape}" class="copyright">
{if $copyrightHolder}
{translate key="submission.copyrightStatement" copyrightHolder=$copyrightHolder copyrightYear=$copyrightYear}
{else}
{translate key="submission.license"}
{/if}
</a>
{/if}
{/if}
</div>
<div class="item copyright">
{if $licenseUrl}
{if $ccLicenseBadge}
{if $copyrightHolder}
<p>{translate key="submission.copyrightStatement" copyrightHolder=$copyrightHolder copyrightYear=$copyrightYear}</p>
{/if}
{$ccLicenseBadge}
{else}
<a href="{$licenseUrl|escape}" class="copyright">
{if $copyrightHolder}
{translate key="submission.copyrightStatement" copyrightHolder=$copyrightHolder copyrightYear=$copyrightYear}
{else}
{translate key="submission.license"}
{/if}
</a>
{/if}
{/if}
</div>
{/if}
{* END UZH CHANGE OJS-67 *}
</div>
{call_hook name="Templates::Common::Footer::PageFooter"}
{include file="frontend/components/footer.tpl"}
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment