function magic_dev_process_html in Magic 7.2
Same name and namespace in other branches
- 7 magic_dev/magic_dev.module \magic_dev_process_html()
Implements hook_process_html().
File
- magic_dev/
magic_dev.module, line 83 - Development settings for the magic module.
Code
function magic_dev_process_html(&$vars) {
global $theme_key;
// RWD Debug Integration
if (theme_get_setting('magic_viewport_indicator', $theme_key) || theme_get_setting('magic_modernizr_debug', $theme_key)) {
$debug_output = '<div id="magic-development">';
if (theme_get_setting('magic_viewport_indicator', $theme_key)) {
$debug_output .= '<div id="magic-viewport-indicator"></div>';
}
if (theme_get_setting('magic_modernizr_debug', $theme_key)) {
$debug_output .= '<div id="magic-modernizr-debug" class="open"></div>';
}
$debug_output .= '</div>';
if (!empty($vars['page_bottom'])) {
$vars['page_bottom'] .= $debug_output;
}
else {
$vars['page_bottom'] = $debug_output;
}
}
}