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
/* ======================================================================== | |
// Multi Select | |
// ========================================================================*/ | |
/* ------------------------------------------------------------------------ | |
// Sortable | |
// ------------------------------------------------------------------------*/ | |
function multiSelectSortableAfterInit(that, container){ |
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 acf_form_field_load( $field ) { | |
$field['choices'] = array(); | |
$forms = RGFormsModel::get_forms( null, 'title' ); | |
$field['choices'][''] = '- Select Form -'; | |
foreach ( $forms as $form ) { | |
$field['choices'][ $form->id ] = $form->title; | |
} | |
return $field; | |
} |
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
figure { display: table; } | |
figcaption { display: table-caption; caption-side: bottom ; } |
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 createFunctionWithTimeout(callback, opt_timeout) { | |
var called = false; | |
function fn() { | |
if (!called) { | |
called = true; | |
callback(); | |
} | |
} | |
setTimeout(fn, opt_timeout || 1000); | |
return fn; |
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
if fetch(:stage) == 'production' | |
set :application, 'example.com' | |
else | |
set :application, 'staging.example.com' | |
end | |
set :repo_url, '[email protected]:example/example.com.git' | |
# Branch options | |
# Prompts for the branch name (defaults to current branch) |
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
add_filter('template_include', function(){ | |
if(is_tax('taxonomy-name')) | |
$template = get_query_template('archive-post-type'); | |
return $template; | |
}); |
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
body.is-reveal-open { | |
overflow: visible; | |
} | |
.reveal-overlay { | |
overflow-y: hidden; | |
} |
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
## Description Add the below To any Foundation 6 theme and change the iniialUlClass to whatever your tab ul class is. | |
## Author : Daniel Coull <ttechitsolutions@gmail.com> | |
var tabsToAccordian = { | |
initialUlClass: '.easytabs', | |
accordian: null, | |
tabs:null, |
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
# deploy.rb from https://github.com/roots/bedrock-capistrano modified by FEW Agency, https://github.com/fewagency/ | |
# FEW-comment: from Capistrano doc: | |
# Here we'd set the name of the application, must be in a format that's safe for | |
# filenames on your target operating system. | |
set :application, 'APPLICATIONNAME' | |
# FEW-comment: use the SSH url for the repo from GitHub | |
set :repo_url, '[email protected]:USER/REPO.git' |
OlderNewer