Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Default Uib Theme
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Publiseringsstøtte
BOAP
Default Uib Theme
Commits
6f60aeff
Commit
6f60aeff
authored
2 years ago
by
ØyvindG
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/plugins/generic/embedHtmlArticleGalleyHeader/templates/display.tpl
+49
-32
49 additions, 32 deletions
...eneric/embedHtmlArticleGalleyHeader/templates/display.tpl
with
49 additions
and
32 deletions
templates/plugins/generic/embedHtmlArticleGalleyHeader/templates/display.tpl
+
49
−
32
View file @
6f60aeff
{**
* 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment