Added NSFW compatibility

This commit is contained in:
2026-06-27 18:57:26 +02:00
parent 4a7c43f9e7
commit 76a1e62129
8 changed files with 74 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
</div>
@endif
<div>
@if( section_must_be( [ 'romhacks', 'homebrew' ], $section ) && !$isEdit )
@if( section_must_be( [ 'romhacks', 'homebrew' ], $section ) && !$isEdit && $VISITOR->nsfw_content === 1 )
<label class="nsfw-label"><input id="nsfw-checkbox" type="checkbox" name="nsfw-entry" x-model="nsfw" style="transform: scale(1.5)"> NSFW</label>
@endif
</div>