Skip to content

Commit

Permalink
fixes #380 load a skin.css file if it exists in the skin folder
Browse files Browse the repository at this point in the history
Now when we want to add css for a specific skin, we just need to create or modify its skin.css file in its skin folder.
  • Loading branch information
LintyDev committed Sep 5, 2024
1 parent fd87683 commit dde5012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
{strip}
{if $theme_config->bootstrap_theme} {* see https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/104 *}
{combine_css path="themes/bootstrap_darkroom/css/{$theme_config->bootstrap_theme}/bootstrap.min.css" order=-20}
{if is_file("themes/bootstrap_darkroom/css/{$theme_config->bootstrap_theme}/skin.css")}
{combine_css path="themes/bootstrap_darkroom/css/{$theme_config->bootstrap_theme}/skin.css" order=-10}
{/if}
{else}
{combine_css path="themes/bootstrap_darkroom/css/bootstrap-default/bootstrap.min.css" order=-20}
{/if}
Expand Down

0 comments on commit dde5012

Please sign in to comment.