Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit e2d1818

Browse files
committed
Improved performance in cases, where the profile banners module is disabled
1 parent f107027 commit e2d1818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templateListener.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<environment>user</environment>
1313
<templatename>headInclude</templatename>
1414
<eventname>stylesheets</eventname>
15-
<templatecode><![CDATA[{if SC_UPLOAD_FREE_SUNDAY_HIDE_PROFILE_BANNERS && $uploadFilterActive|isset && $uploadFilterActive === true}<style>div.userProfileCoverPhoto{ display: none }</style>{/if}]]></templatecode>
15+
<templatecode><![CDATA[{if MODULE_USER_COVER_PHOTO && SC_UPLOAD_FREE_SUNDAY_HIDE_PROFILE_BANNERS && $uploadFilterActive|isset && $uploadFilterActive === true}<style>div.userProfileCoverPhoto{ display: none }</style>{/if}]]></templatecode>
1616
</templatelistener>
1717

1818
<templatelistener name="uploadFilterAvatarReplaceJS">
@@ -26,7 +26,7 @@
2626
<environment>user</environment>
2727
<templatename>user</templatename>
2828
<eventname>javascriptInclude</eventname>
29-
<templatecode><![CDATA[{if SC_UPLOAD_FREE_SUNDAY_HIDE_PROFILE_BANNERS && $uploadFilterActive|isset && $uploadFilterActive === true}<script data-relocate="true">WCF.DOMNodeInsertedHandler.addCallback('WCF.UploadFilterCoverPhotoRemove', function() { elBySel('header.userProfileUserWithCoverPhoto').classList.remove('userProfileUserWithCoverPhoto') }); WCF.DOMNodeInsertedHandler.execute();{/if}</script>{/if}]]></templatecode>
29+
<templatecode><![CDATA[{if MODULE_USER_COVER_PHOTO && SC_UPLOAD_FREE_SUNDAY_HIDE_PROFILE_BANNERS && $uploadFilterActive|isset && $uploadFilterActive === true}<script data-relocate="true">WCF.DOMNodeInsertedHandler.addCallback('WCF.UploadFilterCoverPhotoRemove', function() { elBySel('header.userProfileUserWithCoverPhoto').classList.remove('userProfileUserWithCoverPhoto') }); WCF.DOMNodeInsertedHandler.execute();{/if}</script>{/if}]]></templatecode>
3030
</templatelistener>
3131
</import>
3232
</data>

0 commit comments

Comments
 (0)