Closed (fixed)
Project:
Sasson
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2012 at 12:30 UTC
Updated:
7 Jan 2013 at 16:50 UTC
To use the fb project I had to a new attribute to the HTML tag of my sasson 3.x sub-theme.
I tried to add a new function my template.php file, e.g.
<mytheme>_preprocess_html(&$vars) {
$vars['html_attributes'] .= ' xmlns:fb="http://www.facebook.com/2008/fbml"';
}
But it didn't work, maybe because this is overridden by sasson_preprocess_html() in sasson/includes/preprocess.inc, which defines the variable again.
Any idea how to do it right? (for the meanwhile the only thing which worked was str_replace on html.tpl.php).
Amnon
Comments
Comment #1
tsi commentedActually,
$vars['html_attributes']is not being printed anywhere. it is only used to construct$vars['html']which is the one being printed into html.tpl.php and that is the one that must be overridden.