Skip to content

Instantly share code, notes, and snippets.

module.exports = function( grunt ) {
'use strict';
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );
grunt.initConfig({
makepot: {
plugin1: {
options: {
<?php
class Yoast_GlotPress_SEO {
function __construct() {
add_filter( 'gp_title', array( $this, 'modify_title' ) );
add_action( 'gp_head', array( $this, 'meta_desc' ), 9 );
add_filter( 'gp_redirect_status', array( $this, 'modify_redirect_status' ), 10, 2 );
}
@remkus
remkus / aauthorbox.php
Last active August 29, 2015 14:26 — forked from neilgee/aauthorbox.php
Genesis WordPress Customised Author Box
<?php
//do not copy the opening php tag above
/**
* Changing the AuthorBox in WordPress
*
* @package Changing the AuthorBox in WordPress
* @author Neil Gee
* @link http://wpbeaches.com/author-box-genesis/
@remkus
remkus / Gridsystem
Last active August 29, 2015 14:28 — forked from lucprincen/Gridsystem
/*
* Mixins:
*/
//make flex rows a bit easier:
@mixin flex-row( $equalize:stretch ){
@include display(flex);
@include flex-direction(row);
@include align-items($equalize);
}
@remkus
remkus / wp_editor_extra_wp-admin-bar-menu.php
Created February 23, 2012 14:03 — forked from jphorn/wp_editor_extra_wp-admin-bar-menu.php
Add menu to WordPress Admin Bar for Editor role (and higher) (WordPress Toolbar)
<?php
/**
* Adding a menu to your WordPress Toolbar
*
* @author: Jean-Paul Horn, iCulture.nl (@JeanPaulH)
* @param $wp_admin_bar used to add an extra dropdown menu
*
* Thanks to Remkus de Vries (@defries)
*/
@remkus
remkus / rkv_date_convert
Created April 1, 2012 17:32 — forked from norcross/rkv_date_convert
Convert date entry to UNIX timestamp
// Make two admin-only fields (as text fields)
// and post to the custom fields from Gravity Forms
// instead of the "real" date picker.
// NOTE: change the input IDs to match the ones on your form
function rkv_datesubmit_fix ($form){
//event start date field id is 3
//event end date field ID is 4
$raw_srt = $_POST['input_3'];
$raw_end = $_POST['input_4'];
<?php
add_filter( 'genesis_author_box', 'zip_author_box', 10, 6 );
/**
* Filters author box by adding extra link
*
* @access public
* @param mixed $output
* @param mixed $context
* @param mixed $pattern
@remkus
remkus / functions.php
Created June 5, 2012 18:41 — forked from gregrickaby/functions.php
Custom Post-Info with Google Rich Snippet support
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_before_post_content', 'child_post_info' );
/**
* Custom Post-Info with Google Rich Snippet support
*
* @author Greg Rickaby
* @since 1.0.0
*/
function child_post_info() {
if ( is_page() )
@remkus
remkus / deploy.sh
Created October 4, 2012 17:44 — forked from BFTrick/deploy.sh
WordPress Plugin Deploy Script
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="______your-plugin-name______"
CURRENTDIR=`pwd`
MAINFILE="______your-plugin-name______.php" # this should be the name of your main php file in the wordpress plugin
# git config