dsg
INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('417','profile','1','u2/creator','0','js','profile-edit.js--','// --------------- Edit Profile images Page ---------------\r\n$(document).on(\\\\\\\'page:init\\\\\\\', \\\\\\\'.page[data-name=\\\\\\\"profile-edit-images\\\\\\\"]\\\\\\\', async function (e) {\r\n var view = app.views.current\r\n\r\n const user = await getSessionUser()\r\n\r\n if (!user) {\r\n view.router.navigate(\\\\\\\'/login\\\\\\\')\r\n return\r\n }\r\n\r\n // If a cover photo exists, use it as the background image of the upload label\r\n if (user.cover_image) {\r\n $(\\\\\\\'input[name=\\\\\\\"cover_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-image\\\\\\\', `url(\\\\\\\'${user.cover_image}\\\\\\\')`)\r\n $(\\\\\\\'input[name=\\\\\\\"cover_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-size\\\\\\\', \\\\\\\'cover\\\\\\\')\r\n }\r\n\r\n if (user.profile_image) {\r\n $(\\\\\\\'input[name=\\\\\\\"profile_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-image\\\\\\\', `url(\\\\\\\'${user.profile_image}\\\\\\\')`)\r\n $(\\\\\\\'input[name=\\\\\\\"profile_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-size\\\\\\\', \\\\\\\'contain\\\\\\\')\r\n $(\\\\\\\'input[name=\\\\\\\"profile_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-position\\\\\\\', \\\\\\\'center\\\\\\\')\r\n $(\\\\\\\'input[name=\\\\\\\"profile_image\\\\\\\"]\\\\\\\').closest(\\\\\\\'.custom-file-upload\\\\\\\').find(\\\\\\\'label\\\\\\\').css(\\\\\\\'background-repeat\\\\\\\', \\\\\\\'no-repeat\\\\\\\')\r\n }\r\n})');
Copy This

Warning: file_get_contents(/home/u340524018/domains/agniaga.com/public_html/sub/u2/creator/profile-edit.js--): Failed to open stream: No such file or directory in /home/u340524018/domains/agniaga.com/public_html/sub/u2/cp/inc.filehtml.php on line 319
// --------------- Edit Profile images Page ---------------
$(document).on(\\\'page:init\\\', \\\'.page[data-name=\\\"profile-edit-images\\\"]\\\', async function (e) {
    var view = app.views.current

    const user = await getSessionUser()

    if (!user) {
        view.router.navigate(\\\'/login\\\')
        return
    }

    // If a cover photo exists, use it as the background image of the upload label
    if (user.cover_image) {
        $(\\\'input[name=\\\"cover_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-image\\\', `url(\\\'${user.cover_image}\\\')`)
        $(\\\'input[name=\\\"cover_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-size\\\', \\\'cover\\\')
    }

    if (user.profile_image) {
        $(\\\'input[name=\\\"profile_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-image\\\', `url(\\\'${user.profile_image}\\\')`)
        $(\\\'input[name=\\\"profile_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-size\\\', \\\'contain\\\')
        $(\\\'input[name=\\\"profile_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-position\\\', \\\'center\\\')
        $(\\\'input[name=\\\"profile_image\\\"]\\\').closest(\\\'.custom-file-upload\\\').find(\\\'label\\\').css(\\\'background-repeat\\\', \\\'no-repeat\\\')
    }
})
Array
(
)
Add JS Function Name