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
| /* @author 14islands.com | |
| * SASS mixins for future proof resolution media query | |
| */ | |
| @mixin if-min-resolution($dppx) { | |
| @include if-resolution(min, $dppx) { | |
| @content; | |
| } | |
| } |
| <?php | |
| add_filter( 'pre_get_posts', 'tgm_io_cpt_search' ); | |
| /** | |
| * This function modifies the main WordPress query to include an array of | |
| * post types instead of the default 'post' post type. | |
| * | |
| * @param object $query The original query. | |
| * @return object $query The amended query. | |
| */ | |
| function tgm_io_cpt_search( $query ) { |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // Filter the title with a custom function | |
| add_filter('genesis_seo_title', 'wap_site_title' ); | |
| // Add additional custom style to site header | |
| function wap_site_title( $title ) { | |
| // Change $custom_title text as you wish | |
| $custom_title = '<span class="custom-title">WA</span>Estate'; | |
| // Don't change the rest of this on down |
| <p>Our SEO services are among the very best in the industry.</p> | |
| <div class="pricing-table"> | |
| <div class="one-third first"> | |
| <h4>Basic - $95</h4> | |
| <ul> | |
| <li>List Item #1</li> | |
| <li>List Item #2</li> | |
| <li>List Item #3</li> |
| <?php | |
| //* Do NOT include the opening php tag | |
| //* Remove comment form allowed tags | |
| add_filter( 'comment_form_defaults', 'bg_remove_comment_form_allowed_tags' ); | |
| function bg_remove_comment_form_allowed_tags( $defaults ) { | |
| $defaults['comment_notes_after'] = ''; | |
| return $defaults; |
| <?php | |
| /** | |
| * Simple Grid helper functions. | |
| * | |
| * @package SimpleGrid | |
| * @subpackage Genesis | |
| * @copyright Copyright (c) 2013, Flagship, LLC | |
| * @license GPL-2.0+ | |
| * @since 2.0.0 | |
| */ |