common_element('link', array('rel' => 'stylesheet',
'type' => 'text/css',
- 'href' => getFacebookCSS()));
+ 'href' => getFacebookBaseCSS()));
+
+ common_element('link', array('rel' => 'stylesheet',
+ 'type' => 'text/css',
+ 'href' => getFacebookThemeCSS()));
common_element('script', array('type' => 'text/javascript',
'src' => getFacebookJS()),
$facebook->api_client->profile_setFBML(null, $fbuid, $fbml, null, null, $fbml_main);
}
-function getFacebookCSS()
+function getFacebookBaseCSS()
{
# Add a timestamp to the CSS file so Facebook cache wont ignore our changes
- $ts = filemtime(theme_file('facebookapp.css'));
- $cssurl = theme_path('facebookapp.css') . "?ts=$ts";
+ $ts = filemtime(theme_file('facebookapp_base.css'));
+ $cssurl = theme_path('facebookapp_base.css') . "?ts=$ts";
return $cssurl;
}
+function getFacebookThemeCSS()
+{
+ # Add a timestamp to the CSS file so Facebook cache wont ignore our changes
+ $ts = filemtime(theme_file('facebookapp_theme.css'));
+ $cssurl = theme_path('facebookapp_theme.css') . "?ts=$ts";
+ return $cssurl;
+}
+
function getFacebookJS() {
# Add a timestamp to the FBJS file so Facebook cache wont ignore our changes