Skip to content

Instantly share code, notes, and snippets.

View qstudio's full-sized avatar

Ray qstudio

View GitHub Profile
<?php
namespace q\theme\context;
// willow ##
use q\willow; // to extend ##
// register class to render ##
\q\theme\context\ui::run();
<?php
// filter Willow Config ##
// Priority -- Willow = 1, Q Plugin = 10, Extension = 10, Parent Theme = 100, Child Theme = 1000 ##
\add_filter( 'willow/config/load',
function( $args ){
$source = null; // context source ##
return self::filter( $args, $source );
}
, 1, 1 );
<?php
// return an array ##
return [ 'global' => [
'config' => [
// run ALL contexts ##
'run' => true,

Public Form

Build out all required form fields and add recaptacha <script>, passing "key":

form.html

<script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_key }}"></script>
<div class="g-recaptcha" id="g-recaptcha"
	data-sitekey="{{ recaptcha_key }}"
<?php
// return an array ##
return [ 'global' => [
'config' => [
// run context->task ##
'run' => true,
{
"name": "q-grunt",
"version": "1.0.0",
"description": "Q : Global Grunt",
"author": "Q Studio",
"homepage": "https://qstudio.us",
"repository": {
"type": "git",
"url": "qstudio/q"
},
'use strict';
module.exports = function(grunt) {
// run -- https://github.com/shama/grunt-hub ##
// grunt hub:all:watch
// OR
// npm run q:dev
// OR
// npm run q:deploy
'use strict';
module.exports = function(grunt) {
// root path to mode_modules - crude, but stable ##
var $root_path = '../../../';
// Load Tasks ##
grunt.loadTasks( $root_path+'node_modules/grunt-contrib-clean/tasks' ); // Clean ##
grunt.loadTasks( $root_path+'node_modules/grunt-contrib-watch/tasks'); // Watcher ##
{"javascript_path":["C:\\xampp\\htdocs\\project\\www\\wp-content\\themes\\theme\\library\\_source\\js\\module\\file.js"]}
'use strict';
module.exports = function(grunt) {
// root path to mode_modules - crude, but stable ##
var $root_path = '../../../';
// Load Tasks ##
grunt.loadTasks( $root_path+'node_modules/grunt-contrib-uglify/tasks'); // UGLIFY / Minify JS ##