function om_system_process_html in OM Tools 8
Same name and namespace in other branches
- 8.2 tools/system/system.inc \om_system_process_html()
- 7.2 tools/system/system.inc \om_system_process_html()
- 7 tools/system/system.inc \om_system_process_html()
Override or insert om variables into the templates.
File
- tools/
system/ system.inc, line 93 - System Utility
Code
function om_system_process_html(&$vars) {
if (variable_get('om_tools_mediaqueries_switch', 0)) {
$maxsizes = '1600, 1440, 1280, 1120, 960, 800, 640, 480';
$theme_path = path_to_theme();
$theme_path_default = variable_get('om_tools_mediaqueries_path', $theme_path);
$styles = explode(',', variable_get('om_tools_mediaqueries_maxsizes', $maxsizes));
foreach ($styles as $key => $style) {
if (is_numeric($style)) {
$vars['styles'] .= '<link rel="stylesheet" type="text/css" href="' . base_path() . $theme_path_default . '/style' . trim($style) . '.css" media="only screen and (max-width: ' . $style . 'px)" />';
}
}
//dsm($vars);
}
}