File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 199
199
200
200
{ call_hook name= " Templates::Preprint::Main" }
201
201
202
- { * Usage statistics chart*}
203
- { if $activeTheme -> getOption (' displayStats' ) != ' none' }
202
+ { * Usage statistics chart *}
203
+ { if $activeTheme && $ activeTheme -> getOption (' displayStats' ) != ' none' }
204
204
{ $activeTheme -> displayUsageStatsGraph ($preprint -> getId ())}
205
205
<section class =" item downloads_chart" >
206
206
<h2 class =" label" >
Original file line number Diff line number Diff line change 27
27
{ include file= " frontend/components/highlights.tpl" highlights= $highlights }
28
28
{ /if }
29
29
30
- { if ! $activeTheme -> getOption (' useHomepageImageAsHeader' ) && $homepageImage }
30
+ { if $ activeTheme && ! $activeTheme -> getOption (' useHomepageImageAsHeader' ) && $homepageImage }
31
31
<img src =" { $publicFilesDir } /{ $homepageImage .uploadName|escape :" url" } " alt =" { $homepageImageAltText |escape } " >
32
32
{ /if }
33
33
47
47
</section >
48
48
49
49
{ * Server Description *}
50
- { if $activeTheme -> getOption (' showDescriptionInServerIndex' )}
50
+ { if $activeTheme && $ activeTheme -> getOption (' showDescriptionInServerIndex' )}
51
51
<section class =" homepage_about" >
52
52
<a id =" homepageAbout" ></a >
53
53
<h2 >{ translate key= " about.aboutContext" } </h2 >
You can’t perform that action at this time.
0 commit comments