Skip to content

Instantly share code, notes, and snippets.

View waynegraham's full-sized avatar

Wayne Graham waynegraham

View GitHub Profile
@waynegraham
waynegraham / structure.html
Created September 25, 2012 15:26 — forked from jeremyboggs/structure.html
html structure
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Layout</title>
<style type="text/css" media="screen">
</style>
@waynegraham
waynegraham / load_theme_javascripts.php
Created September 24, 2012 19:35 — forked from jeremyboggs/load_theme_javascripts.php
Function to add Modernizr, Respond.js, and Selectivizr to Omeka
<?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.
/**
* 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;
}