Added option to theme config to disable custom background images

This commit is contained in:
Julian Prieber 2023-02-15 18:41:04 +01:00
parent 5665465076
commit 87424e1d2e
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ return $path;}
<meta name="viewport" content="width=device-width, initial-scale=1">
@endif
@if(theme('allow_custom_background') != "false")
@php
$customBackgroundFile = findBackground($userinfo->id);
$customBackgroundPath = base_path('/img/background-img/'.$customBackgroundFile);
@ -67,6 +68,7 @@ if($customBackgroundExists == true){
}
</style>
@endif
@endif
<!--#### BEGIN Meta Tags social media preview images ####-->
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->