Skip to content

Instantly share code, notes, and snippets.

--
-- Table structure for table `player_roster`
--
CREATE TABLE IF NOT EXISTS `player_roster` (
`ID` bigint(20) unsigned NOT NULL,
`last_name` varchar(20) DEFAULT NULL,
`first_name` varchar(15) DEFAULT NULL,
`school` varchar(30) DEFAULT NULL,
`guardian` varchar(20) DEFAULT NULL,
@bryanwillis
bryanwillis / ui-datepicker.css
Created March 5, 2015 23:35
.css addon for gravityforms to style datepicker with css. Taken from https://gist.github.com/corradomatt/6736077 .less
.ui-datepicker {
width: 17em;
padding: .2em .2em 0;
display: none;
background-color: #e6e6e6;
}
.ui-datepicker .ui-datepicker-header {
position: relative;
padding: .2em 0;
border: 0px;
.gform_wrapper ul {
padding-left: 0;
list-style: none;
}
.gform_wrapper li {
margin-bottom: 15px;
}
.gform_wrapper form {
margin-bottom: 0;
}
@shohel
shohel / add-og-meta-in-wordpress-theme.php
Last active January 13, 2016 12:10
Add facebook open graph meta data in wordpress theme menually, It helps to see feautre image on facebook when u share it
//Adding the Open Graph in the Language Attributes
function add_opengraph_doctype( $output ) {
return $output . ' xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"';
}
add_filter('language_attributes', 'add_opengraph_doctype');
//Lets add Open Graph Meta Info
function insert_fb_in_head() {
global $post;
<?php
add_filter( 'genesis_attr_site-inner', 'sk_attributes_site_inner' );
/**
* Add attributes for site-inner element.
*
* @since 2.0.0
*
* @param array $attributes Existing attributes.
*
@SiGaCode
SiGaCode / acf_gen_attr01.php
Created May 27, 2015 09:47
Use genesis_attr to add inline styles via ACF
// Add background-color to .footer-widgets
add_filter( 'genesis_attr_footer-widgets', 'ap_attributes_footer_widgets' );
function ap_attributes_footer_widgets( $attributes ) {
$background = get_field('footer_widgets_bg', option);
$attributes['style'] = 'background-color:' . $background . ';';
return $attributes;
}
@aaroneaton
aaroneaton / Navigation.php
Last active March 7, 2017 19:10
Using the Zurb Foundation Top Bar with WordPress menus
<?php
class Navigation {
public function __construct() {
// Move the navigation to the header element
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
// remove_action( 'genesis_header', )
@deepak-rajpal
deepak-rajpal / wp-filter.php
Created June 15, 2015 12:33
experimental code - wp filter
<?php
function pippin_show_fruits() {
$fruits = array(
'apples',
'oranges',
'kumkwats',
'dragon fruit',
'peaches',
'durians'
);
@neilgee
neilgee / markup.php
Last active February 23, 2017 01:14
Change Genesis Header Structure and Markup Output
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
@bryanwillis
bryanwillis / functions.php
Last active January 11, 2016 02:37
MBI Staffing Genesis functions.php
<?php
include_once (get_template_directory() . '/lib/init.php');
load_child_theme_textdomain('mbi', apply_filters('child_theme_textdomain', get_stylesheet_directory() . '/languages', 'mbi'));
define('BW_CONTENT_ASSETS_DIR', trailingslashit(trailingslashit(content_url()) . 'assets'));
define('BW_CHILD_NAME', __('MBI STAFFING', 'mbi'));
define('BW_CHILD_URL', 'http://mbistaffing.com');
define('BW_CHILD_VERSION', '1.0.0');
define('BW_CHILD_FILE_PATH', get_stylesheet_directory());
define('BW_CHILD_FILE_URL', get_stylesheet_directory_uri());