Skip to content

Instantly share code, notes, and snippets.

View m-e-h's full-sized avatar
😐
...

Marty Helmick m-e-h

😐
...
View GitHub Profile
@m-e-h
m-e-h / createOrderedCSSStyleSheet.js
Created January 25, 2019 13:32 — forked from necolas/createOrderedCSSStyleSheet.js
OrderedCSSStyleSheet: control the insertion order of CSS
/**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
*/
type Groups = { [key: number]: Array<string> };
@m-e-h
m-e-h / gv-container-class.php
Last active August 31, 2015 18:45 — forked from luistinygod/grid-view.php
GravityView: Convert a list view into a grid style (3-col)
<?php
/**
* Add the `gv-grid` class to the list container
*/
function my_gv_list_container( $classes ) {
return $classes . ' gv-grid';
}
add_filter( 'gravityview/render/container/class', 'my_gv_list_container', 10, 1 );
/**
@m-e-h
m-e-h / multiple-roles-per-user.php
Last active August 27, 2015 20:15 — forked from jemoreto/multiple-roles-per-user.php
Multiple roles per user WordPress plugin. Working when creating a new user and editing an user. Thanks to nikolov-tmw (https://goo.gl/Xv563d) and evankennedy (https://goo.gl/sh2sX6).
/**
* Plugin Name: Multiple Roles per User
* Description: Allows anyone who can edit users to set multiple roles per user. In a default WordPress environment that wouldn't have much of an effect, since the user would have the privileges of the top-privileged role that you assign to him. But if you have custom roles with custom privileges, this might be helpful.
* Version: 1
* Author: nikolov.tmw
* Author URI: http://paiyakdev.com/
* License: GPL2
*/
/*
Copyright 2013 Nikola Nikolov (email: [email protected])
@m-e-h
m-e-h / functions.php
Last active August 29, 2015 14:27 — forked from wpscholar/functions.php
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
function enqueue_my_styles() {
global $wp_styles;
// Load the main stylesheet
wp_enqueue_style( 'my-theme', get_stylesheet_uri() );