This file contains hidden or 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 | |
| // Remove default buttons from the first row of editor buttons in the Wordpress WYSIWYG editor | |
| add_filter( 'mce_buttons', 'remove_unnecessary_editor_buttons_mce'); | |
| function remove_unnecessary_editor_buttons_mce( $buttons ) { | |
| $invalid_buttons = array( | |
| // 'bold', | |
| // 'italic', | |
| 'strikethrough', |
This file contains hidden or 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 | |
| /** | |
| * Add a widget to the dashboard. | |
| * | |
| * This function is hooked into the 'wp_dashboard_setup' action below. | |
| */ | |
| function example_add_dashboard_widgets() { | |
| wp_add_dashboard_widget( |
This file contains hidden or 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 | |
| /** | |
| * Geocodes a postal code field from a gravity form, saves latitude and longitude to custom fields | |
| * To use this, change $entry[26] to the id of your gravity form field that contains the postal code - i.e. $entry[2] | |
| * To use this, change the name of the geo_latitude and geo_longitude custom fields to what you've created. | |
| * For bonus points, name your lat and long custom fields geo_latitude and geo_longitude, to be in line with Wordpress standard Geodata: https://codex.wordpress.org/Geodata | |
| * | |
| * | |
| */ |
This file contains hidden or 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
| <? | |
| /** | |
| * Hooks for validating an email address in Gravity Forms | |
| * When using a plain text input to collect an email, this will validate that the email address entered is a proper email address | |
| * Useful for situations in which the existing gravity forms email field can't be used | |
| * | |
| * Change line 28 and line 37 to adapt this to your form | |
| * | |
| * @package d7 |
This file contains hidden or 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
| $column-count: 12; | |
| $susy: ( | |
| columns: $column-count, | |
| global-box-sizing: border-box, | |
| gutter-position: inside, | |
| // debug: ( // Optional debug option to show grid on front-end | |
| // image: show-columns, | |
| // output: overlay, | |
| // toggle: bottom left |
This file contains hidden or 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
| *.DS_Store | |
| *.swp | |
| *._* | |
| *.gz | |
| *.mysql | |
| *.sql | |
| *.bz2 | |
| *.zip | |
| *.tar | |
| .sass-cache/ |
This file contains hidden or 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
| function throttle(callback, limit) { | |
| var wait = false; | |
| return function () { | |
| if (!wait) { | |
| callback.call(); | |
| wait = true; | |
| setTimeout(function () { | |
| wait = false; | |
| }, limit); | |
| } |
This file contains hidden or 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
| app.skrollrinit = (function($){ | |
| 'use strict'; | |
| if ($('html').hasClass('no-touch') && !$('html').hasClass('ie8')) { | |
| var s = skrollr.init({ | |
| forceHeight:false, | |
| smoothScrolling:false, | |
| edgeStrategy:'ease', | |
| constants: { | |
| viewportheight: function() { |
This file contains hidden or 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
| <snippet> | |
| <content>$1 { | |
| $2 | |
| } // $1 $0</content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>d</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.python</scope> --> | |
| </snippet> |