Resource that are scoped to the footer are not printed out in the views-share-embed.tpl.php.
The preprocess_function that generates the script output only calls drupal_get_js()
once and without any arguments, which means only JS that is scoped to the header will be printed out.
Some themes (Bootstrap in my case) have functionality included in JS that is scoped to the footer, and this functionality is lost on views_share embeds.
I was thinking that the template should print a footer JS variable, but I understand if you don't want to update the module to support that. I've got a patch started by haven't finished it yet.
For my case, I am using template_preprocess_views_share_embed()
to append the footer scripts to the existing $script variable.
I guess this could be a configurable option in the view settings, so we could add support for that. But before I do that I'd like some feedback about whether I should go down that route, or if footer resources should be included.
This also doesn't take into account CSS/JS that is added through template_preprocess_html()
, which in my case is at least FontYourFace with the Google Fonts API. I'm sure there is a way to get these added through a preprocess hook somewhere, but that's for another day.
If you'd like the patch for this, let me know.
Please let me know if you want other information, or if I am going about this all wrong.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.