File tree 1 file changed +8
-5
lines changed
Source/Plugins/Core/com.equella.core/scalasrc/com/tle/web/api
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -412,12 +412,15 @@ class LegacyContentApi {
412
412
413
413
def wrapBody (context : RenderContext , body : SectionRenderable ): SectionRenderable = {
414
414
val decs = Decorations .getDecorations(context)
415
- val cbTag = context.getBody
416
- cbTag.setId(" content-body" )
417
- val citag = new TagState (" content-inner" ).addClass[TagState ](decs.getPageLayoutDisplayClass)
418
- val cbtag = cbTag.addClasses[TagState ](decs.getContentBodyClasses)
419
415
420
- new DivRenderer (citag, new DivRenderer (cbtag, body))
416
+ if (decs.isBanner || ! decs.isMenuHidden || decs.isContent) {
417
+ val cbTag = context.getBody
418
+ cbTag.setId(" content-body" )
419
+ val citag = new TagState (" content-inner" ).addClass[TagState ](decs.getPageLayoutDisplayClass)
420
+ val cbtag = cbTag.addClasses[TagState ](decs.getContentBodyClasses)
421
+
422
+ new DivRenderer (citag, new DivRenderer (cbtag, body))
423
+ } else body
421
424
}
422
425
423
426
You can’t perform that action at this time.
0 commit comments