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
/** | |
* Removes inline width and height attributes for images. Thanks to | |
* @boonebgorges for help with this! | |
**/ | |
function clioweb_remove_inline_sizes($html) { | |
$pattern = '/(\sheight|\swidth)="(.*?)"/'; | |
$html = preg_replace($pattern, '', $html); | |
return $html; | |
} |
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 | |
/** | |
* Adds and displays the following JavaScript assets: | |
* | |
* - Modernizr - http://modernizr.com/ | |
* - Respond.js - https://github.com/scottjehl/Respond | |
* - Selectivizr - http://selectivizr.com/ | |
* | |
* Be sure to put copies of each in your theme's 'javascripts' directory. |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS Layout</title> | |
<style type="text/css" media="screen"> | |
</style> |