@@ -16,6 +16,7 @@ import { ArticleMetaApps } from '../components/ArticleMeta.apps';
16
16
import { ArticleMeta } from '../components/ArticleMeta.web' ;
17
17
import { ArticleTitle } from '../components/ArticleTitle' ;
18
18
import { Caption } from '../components/Caption' ;
19
+ import { DiscussionLayout } from '../components/DiscussionLayout' ;
19
20
import { Footer } from '../components/Footer' ;
20
21
import { DesktopAdSlot , MobileAdSlot } from '../components/GalleryAdSlots' ;
21
22
import { GalleryImage } from '../components/GalleryImage' ;
@@ -172,6 +173,9 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
172
173
173
174
const contributionsServiceUrl = getContributionsServiceUrl ( frontendData ) ;
174
175
176
+ const showComments =
177
+ frontendData . isCommentable && ! frontendData . config . isPaidContent ;
178
+
175
179
return (
176
180
< >
177
181
{ isWeb && (
@@ -361,7 +365,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
361
365
</ Fragment >
362
366
) ;
363
367
} ) }
364
- ;
368
+
365
369
< SubMeta
366
370
format = { format }
367
371
subMetaKeywordLinks = { frontendData . subMetaKeywordLinks }
@@ -391,6 +395,36 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
391
395
/>
392
396
</ Section >
393
397
) }
398
+ { /** More Galleries container goes here */ }
399
+ { showComments && (
400
+ < Section
401
+ fullWidth = { true }
402
+ sectionId = "comments"
403
+ element = "section"
404
+ backgroundColour = { themePalette (
405
+ '--discussion-section-background' ,
406
+ ) }
407
+ borderColour = { themePalette ( '--article-border' ) }
408
+ fontColour = { themePalette ( '--discussion-text' ) }
409
+ >
410
+ < DiscussionLayout
411
+ discussionApiUrl = { frontendData . config . discussionApiUrl }
412
+ shortUrlId = { frontendData . config . shortUrlId }
413
+ format = { format }
414
+ discussionD2Uid = { frontendData . config . discussionD2Uid }
415
+ discussionApiClientHeader = {
416
+ frontendData . config . discussionApiClientHeader
417
+ }
418
+ enableDiscussionSwitch = {
419
+ ! ! frontendData . config . switches
420
+ . enableDiscussionSwitch
421
+ }
422
+ isAdFreeUser = { frontendData . isAdFreeUser }
423
+ shouldHideAds = { frontendData . shouldHideAds }
424
+ idApiUrl = { frontendData . config . idApiUrl }
425
+ />
426
+ </ Section >
427
+ ) }
394
428
{ /** Most Popular container goes here */ }
395
429
{ isWeb && renderAds && ! isLabs && (
396
430
< Section
0 commit comments