fix several places where head_add_(css|js) functions have been used incorrectly. It appears that mistakes were made going back a long time and propagated. Here's the way it should work:
- if there is no preceding / character, we look for the file within all the appropriate theme directories. - otherwise the file should have a preceding /, which means use this path relative to the hubzilla basedir - files beginning with // are considered to be schemeless URLs. Therefore 'foo.css' means find the best theme-able representation of foo.css. '/library/foo.css' means only use the version of foo.css that is in /library.
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
head_add_css('library/font_awesome/css/font-awesome.min.css');
|
||||
head_add_css('library/bootstrap/css/bootstrap.min.css');
|
||||
head_add_css('library/bootstrap-tagsinput/bootstrap-tagsinput.css');
|
||||
head_add_css('view/css/bootstrap-red.css');
|
||||
head_add_css('library/datetimepicker/jquery.datetimepicker.css');
|
||||
//head_add_css('library/colorpicker/css/colorpicker.css');
|
||||
head_add_css('library/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css');
|
||||
head_add_css('/library/font_awesome/css/font-awesome.min.css');
|
||||
head_add_css('/library/bootstrap/css/bootstrap.min.css');
|
||||
head_add_css('/library/bootstrap-tagsinput/bootstrap-tagsinput.css');
|
||||
head_add_css('/view/css/bootstrap-red.css');
|
||||
head_add_css('/library/datetimepicker/jquery.datetimepicker.css');
|
||||
head_add_css('/library/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css');
|
||||
require_once('view/php/theme_init.php');
|
||||
|
||||
head_add_js('library/bootstrap/js/bootstrap.min.js');
|
||||
head_add_js('library/bootbox/bootbox.min.js');
|
||||
head_add_js('library/bootstrap-tagsinput/bootstrap-tagsinput.js');
|
||||
head_add_js('library/datetimepicker/jquery.datetimepicker.js');
|
||||
//head_add_js('library/colorpicker/js/colorpicker.js');
|
||||
head_add_js('library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js');
|
||||
//head_add_js('library/bootstrap-colorpicker/src/js/docs.js');
|
||||
head_add_js('/library/bootstrap/js/bootstrap.min.js');
|
||||
head_add_js('/library/bootbox/bootbox.min.js');
|
||||
head_add_js('/library/bootstrap-tagsinput/bootstrap-tagsinput.js');
|
||||
head_add_js('/library/datetimepicker/jquery.datetimepicker.js');
|
||||
head_add_js('/library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js');
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user