This file contains 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 | |
/** | |
* AJAC filter posts by taxonomy term | |
*/ | |
function vb_filter_posts() { | |
if( !isset( $_POST['nonce'] ) || !wp_verify_nonce( $_POST['nonce'], 'bobz' ) ) | |
die('Permission denied'); | |
/** |
This file contains 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 | |
/** | |
* Enqueue JS file | |
* Be sure to update path to js | |
* | |
* @link https://gist.github.com/Bobz-zg/16578c3c173abfe2b22daffd67f6f1e0 | |
* | |
*/ | |
function ajax_filter_posts_scripts() { |
This file contains 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($) { | |
$('.tax-filter').click( function(event) { | |
// Prevent default action - opening tag page | |
if (event.preventDefault) { | |
event.preventDefault(); | |
} else { | |
event.returnValue = false; | |
} | |
This file contains 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 new rewrite rule | |
*/ | |
function create_new_url_querystring() { | |
add_rewrite_rule( | |
'blog/([^/]*)$', | |
'index.php?name=$matches[1]', | |
'top' | |
); |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$icons-svg: ( | |
sprite: (width: 132px, height: 88px, svgPath: '../images/sprite.svg'), | |
facebook: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: 0px), | |
linkedin: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: 0px), | |
pinterest: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: -43.9px), | |
twitter: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: -43.9px), |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$icons-svg: ( | |
sprite: (width: 132px, height: 88px, svgPath: '../images/sprite.svg'), | |
facebook: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: 0px), | |
linkedin: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: 0px), | |
pinterest: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: -43.9px), | |
twitter: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: -43.9px), |
This file contains 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 vb_acf_load_gforms( $field ) { | |
global $wpdb; | |
$sql = "SELECT * FROM {$wpdb->prefix}rg_form"; | |
$forms = $wpdb->get_results( $sql ); | |
$field['choices'] = array(); | |
if( $forms ) : |
This file contains 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
@import "compass"; | |
// Core variables and mixins | |
@import "../vendor/bootstrap-sass/lib/variables"; | |
@import "../vendor/bootstrap-sass/lib/mixins"; | |
// Reset | |
@import "../vendor/bootstrap-sass/lib/normalize"; | |
@import "../vendor/bootstrap-sass/lib/print"; |
This file contains 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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "assets/css" | |
sass_dir = "assets/sass" | |
images_dir = "assets/img" | |
javascripts_dir = "assets/js" | |
fonts_dir = "assets/fonts" | |
output_style = :expanded |
This file contains 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
{ | |
"name": "roots", | |
"version": "7.0.0", | |
"author": "Ben Word <ben@benword.com>", | |
"homepage": "http://roots.io", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/roots/roots.git" | |
}, | |
"bugs": { |