Last active
December 22, 2015 01:59
-
-
Save splatio/6400227 to your computer and use it in GitHub Desktop.
No query fallback handling in Omega.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Allow themes to specify no-query fallback CSS files. | |
$mapping = omega_generate_asset_mapping($css); | |
foreach (preg_grep('/\.no-query(-rtl)?\.css/', $mapping) as $fallback) { | |
// Don't modify browser settings if they have already been modified. | |
if ($css[$mapping[$fallback]]['data'] == $fallback && $file['browsers']['IE'] && $file['browsers']['!IE']) { | |
$file['browsers'] = array( | |
'!IE' => FALSE, | |
'IE' => 'lte IE 8', | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment