I work on an integration for cPanel and we use a common dev server and multiple themes to work on different requirements. However, I noticed today that even though I selected a different theme while creating a user account, and the URL in the browser's address bar rightfully reflects as such:
It's not really pulling the sprite/icons/CSS from the corresponding theme's
My question is: am I doing something wrong or is this working as intended? My expectation was that sprites and such are associated with the theme associated with the user account. But the only way I seem to get icons changed is by directly modifying
TLDR; I would like the sprites/icons/CSS associated with the custom theme's directory to be reflected when I login with a user account which has this theme selected.
Code:
# cPanel URL
https://internal.company.com:2083/cpsessXXXX/frontend/custom_theme/index.html?login=1
# Sprite URL
https://internal.company.com:2083/styled/current_style/sprites/icon_spritemap.png
# Expected sprite URL
https://internal.company.com:2083/frontend/custom_theme/styled/current_style/sprites/icon_spritemap.png
styled
directory. Is this the intended behavior? I dug through the docs and found that customizations related to icons/CSS is applied via /var/cpanel/customizations
directory. The default directory here seems to be linked to paper_lantern
theme's directory. Here's the ls -l
output:
Code:
[root@cpanel102 styled]# pwd
/var/cpanel/customizations/styled
[root@cpanel102 styled]# ls -l
total 0
lrwxrwxrwx 1 root root 58 Dec 6 2018 default_style -> /usr/local/cpanel/base/frontend/paper_lantern/styled/basic
paper_lantern
theme's contents. II'm guessing this is not the case cause otherwise, this wouldn't make sense:
Code:
/usr/local/cpanel/bin/sprite_generator --theme custom_theme