The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
# Contract Killer | |
### The popular open-source contract for web designers and developers by [Stuff & Nonsense](http://stuffandnonsense.co.uk/) | |
* Originally published: 23/12/2008 | |
* Revised date: 15/12/2013 | |
* [Original post](http://stuffandnonsense.co.uk/projects/contract-killer/) | |
* * * | |
a[href^="http://"]:after, a[href^="https://"]:after { | |
content: "\f08e"; | |
font-family: FontAwesome; | |
font-weight: normal; | |
font-style: normal; | |
display: inline-block; | |
text-decoration: none; | |
padding-left: 3px; | |
} | |
/* Strip from links to own domain or with class no_icon, just in case */ |
<?php | |
$username = get_sub_field('team_member_username'); | |
$the_user = get_user_by('login', $username); | |
$the_user_id = $the_user->ID; | |
$user_photo = get_user_meta($the_user_id, 'your_photo', true); | |
$image_src = wp_get_attachment_image_src($user_photo); | |
echo '<img class="author-picture" src="'. $image_src[0] .'" />'; | |
?> |
.calc-width(@margin, @fallback) { | |
width: @fallback; | |
width: -o-calc(~"100% - "@margin); | |
width: -webkit-calc(~"100% - "@margin); /** Safari 6, Chrome 19-25 **/ | |
width: -moz-calc(~"100% - "@margin); /** FF 4-15 **/ | |
width: calc(~"100% - "@margin); /** FF 16+, IE 9+, Opera 15, Chrome 26+, Safari 7 and future other browsers **/ | |
/* See http://caniuse.com/#search=calc for known issues with calc */ | |
} |
$(document).ready(function() { | |
// Store the references outside the event handler: | |
var $window = $(window); | |
var $pane1 = $('#search-dropdown'); | |
var $pane2 = $('.social-icons'); | |
function checkWidth() { | |
var windowsize = $window.width(); | |
if (windowsize > 768) { | |
$pane1.detach().insertAfter('.logo-container'); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function mattrad_remove_script_version( $src ){ | |
return remove_query_arg( 'ver', $src ); | |
} | |
add_filter( 'script_loader_src', 'mattrad_remove_script_version' ); | |
add_filter( 'style_loader_src', 'mattrad_remove_script_version' ); |