Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My setup:
sites/all/themes/bootstrap/ - original bootstrap theme.
sites/all/themes/mybasetheme/ - intermediate base theme, based on bootstrap
sites/all/themes/mybasetheme/bootstrap/ - bootstrap css and assets
sites/all/themes/mytheme/ - site-specific theme, based on mybasetheme.
Problem: Bootstrap icons do not work.
Why?
function bootstrap_icon_bundles() {
$theme = variable_get('theme_default', $GLOBALS['theme']);
$cdn = theme_get_setting('bootstrap_cdn', $theme);
$bundles = array();
if ($cdn || (!$cdn && file_exists(drupal_get_path('theme', $theme) . '/bootstrap/fonts/glyphicons-halflings-regular.ttf'))) {
...
So.. it only works if the /bootstrap/ is in the site's default theme, but not if it is in any base theme of the default theme.
Comments
Comment #1
donquixote CreditAttribution: donquixote commented(fix title)
Comment #2
markhalliwellAre you sure you have the latest dev? This code snippet is not current 7.x-3.x-dev, it uses _bootstrap_glyphicons_supported() now. See related issues.
That being said, I am pretty positive that it still doesn't catch the intermediate "base" sub-theme. There is also new helper function, _bootstrap_get_base_themes() that should probably be used.
Comment #3
markhalliwellComment #4
donquixote CreditAttribution: donquixote commentedI am sure I do not :)
I just wanted to report this and give it into competent hands :) You probably have a much better idea what needs to be done.
Comment #6
markhalliwellComment #9
markhalliwellI'm just moving this back to 7.x. If this needs re-evaluation in 8.x, create a new issue.