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 | |
//do not include opening php tag | |
add_filter( 'genesis_site_layout', function() { return 'full-width-content'; } ); |
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
jQuery(document).ready(function(){ | |
var highestBox = 0; | |
$('.genesis-grid').each(function(){ | |
if($(this).height() > highestBox) | |
highestBox = $(this).height(); | |
}); | |
$('.genesis-grid').height(highestBox); | |
}); |
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
#!/bin/sh | |
# | |
# A pre-commit hook to minify js & css files | |
# if committing to branch 'master' | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
if [ "$BRANCH" == 'master' ] | |
then | |
csspath='css/*.css' | |
jspath='js/*.js' |
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 | |
/** | |
* Filters 'authenticate' | |
* to keep user with id 1 | |
* logged in without needing | |
* to enter l/p | |
*/ | |
add_filter( 'authenticate', 'wwm_authenticate_filter', 10, 1 ); |
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_action( 'pre_get_posts', 'wwm_pre_get_posts', 10, 0 ); | |
function wwm_pre_get_posts() { | |
/** | |
* For this example, the plugin that would be altered is the 'featured video plus' plugin | |
* The task is to show the featured video on single pages, but not on archives | |
* apply the filter on singlular pages that aren't the admin interface. | |
*/ |
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 | |
/* | |
Plugin Name: Custom Redirect for Awesome Surveys | |
Plugin URI: http://www.willthewebmechanic.com/awesome-surveys | |
Description: Redirects to a specified link after survey submission | |
Version: 1.0 | |
Author: Will Brubaker | |
Author URI: http://www.willthewebmechanic.com | |
License: GPLv3.0 | |
*/ |
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 | |
/* Do not copy the opening <?php tag above */ | |
//Add the shortcode tag with its callback function: | |
add_shortcode( 'display_tickets_sold', 'wwm_display_tickets_sold' ); | |
/** | |
* Given a valid product id, Outputs a number of 'units sold' | |
* Usage [display_tickets_sold product_id="####"] where #### is a valid product id. |
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
/* | |
* Translated default messages for the jQuery validation plugin. | |
* Locale: NL (Dutch; Nederlands, Vlaams) | |
*/ | |
jQuery.extend(jQuery.validator.messages, { | |
required: "Dit is een verplicht veld.", | |
remote: "Controleer dit veld.", | |
email: "Vul hier een geldig e-mailadres in.", | |
url: "Vul hier een geldige URL in.", | |
date: "Vul hier een geldige datum in.", |
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 | |
/* | |
Plugin Name: Code With WP Custom Snippets | |
Plugin URI: http://codewithwp.com/ | |
Description: This plugin holds custom code snippets that interact with both themes and plugins related to this website. | |
Author: Thomas Griffin | |
Author URI: http://thomasgriffinmedia.com/ | |
Version: 1.0.0 | |
License: GNU General Public License v2.0 or later | |
License URI: http://www.opensource.org/licenses/gpl-license.php |
OlderNewer