@@ -14,6 +14,7 @@ import { ArticleMetaApps } from '../components/ArticleMeta.apps';
14
14
import { ArticleMeta } from '../components/ArticleMeta.web' ;
15
15
import { ArticleTitle } from '../components/ArticleTitle' ;
16
16
import { Caption } from '../components/Caption' ;
17
+ import { DiscussionLayout } from '../components/DiscussionLayout' ;
17
18
import { Footer } from '../components/Footer' ;
18
19
import { DesktopAdSlot , MobileAdSlot } from '../components/GalleryAdSlots' ;
19
20
import { GalleryImage } from '../components/GalleryImage' ;
@@ -163,6 +164,9 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
163
164
? getAdPositions ( gallery . images )
164
165
: [ ] ;
165
166
167
+ const showComments =
168
+ frontendData . isCommentable && ! frontendData . config . isPaidContent ;
169
+
166
170
return (
167
171
< >
168
172
{ isWeb && (
@@ -328,7 +332,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
328
332
</ Fragment >
329
333
) ;
330
334
} ) }
331
- ;
335
+
332
336
< SubMeta
333
337
format = { format }
334
338
subMetaKeywordLinks = { frontendData . subMetaKeywordLinks }
@@ -358,6 +362,36 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
358
362
/>
359
363
</ Section >
360
364
) }
365
+ { /** More Galleries container goes here */ }
366
+ { showComments && (
367
+ < Section
368
+ fullWidth = { true }
369
+ sectionId = "comments"
370
+ element = "section"
371
+ backgroundColour = { themePalette (
372
+ '--discussion-section-background' ,
373
+ ) }
374
+ borderColour = { themePalette ( '--article-border' ) }
375
+ fontColour = { themePalette ( '--discussion-text' ) }
376
+ >
377
+ < DiscussionLayout
378
+ discussionApiUrl = { frontendData . config . discussionApiUrl }
379
+ shortUrlId = { frontendData . config . shortUrlId }
380
+ format = { format }
381
+ discussionD2Uid = { frontendData . config . discussionD2Uid }
382
+ discussionApiClientHeader = {
383
+ frontendData . config . discussionApiClientHeader
384
+ }
385
+ enableDiscussionSwitch = {
386
+ ! ! frontendData . config . switches
387
+ . enableDiscussionSwitch
388
+ }
389
+ isAdFreeUser = { frontendData . isAdFreeUser }
390
+ shouldHideAds = { frontendData . shouldHideAds }
391
+ idApiUrl = { frontendData . config . idApiUrl }
392
+ />
393
+ </ Section >
394
+ ) }
361
395
{ /** Most Popular container goes here */ }
362
396
{ isWeb && renderAds && ! isLabs && (
363
397
< Section
0 commit comments