Theme::css vs. HTML_PATH_THEME_CSS
Posted: Thu Jun 22, 2017 3:24 pm
I found out that the following code outputs http:// etc., even if the website runs on https:
The result is like:
This code only outputs a relative path, so that there are no problems with the protocol:
The result is like:
Code: Select all
Theme::css('style.css');Code: Select all
<link rel="stylesheet" type="text/css" href="http://www.example.com/bludit/bl-themes/example/css/style.css">Code: Select all
<link rel="stylesheet" href="<?php echo HTML_PATH_THEME_CSS ?>style.css">Code: Select all
<link rel="stylesheet" href="/bludit/bl-themes/example/css/style.css">