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
/** | |
* Gutenberg block type. | |
* WPMVC block for gutenberg. | |
* | |
* @author Alejandro Mostajo <http://about.me/amostajo> | |
* @copyright 10Quality <http://www.10quality.com> | |
* @license MIT | |
* @package WPMVC\MyApp | |
* @version 1.0.0 | |
*/ |
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 | |
namespace MyApp\Controllers; | |
use WPMVC\MVC\Controller; | |
/** | |
* BlockController controller. | |
* | |
* |
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
// Support ACF Intl Tel Address when in conditional group | |
jQuery(document).ready(function ($) { | |
$('[data-hiddeninput]').each(function() { | |
if ( $(this).is(":visible") ) { | |
$(this).prop('disabled', false); | |
$(this).removeAttr('disabled'); | |
} else { | |
$(this).prop('disabled'); | |
$(this).attr('disabled', 'disabled'); |
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 | |
function revert_react() { | |
wp_deregister_script( 'react' ); | |
wp_enqueue_script( 'react', '//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.min.js', null, '0.13.3', true ); | |
} | |
add_action('wp_enqueue_scripts', 'revert_react', 999); |
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
// GULP PACKAGES | |
// Most packages are lazy loaded | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
browserSync = require('browser-sync').create(), | |
filter = require('gulp-filter'), | |
touch = require('gulp-touch-cmd'), | |
plugin = require('gulp-load-plugins')(); | |
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 | |
// CPTUI - Enable Non-Public Post Types | |
function enable_non_public_post_types( $args ) { | |
return array(); | |
} | |
add_filter( 'cptui_attach_post_types_to_taxonomy', 'enable_non_public_post_types' ); |
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 | |
function admin_scripts() { | |
// Adding Yoast Copy from Original Script | |
wp_register_script( 'yoastcopy-js', get_template_directory_uri() . '/assets/js/yoastcopy.js', array( 'jquery' ), '0.0.1', true ); | |
wp_enqueue_script('yoastcopy-js'); | |
} | |
add_action( 'admin_enqueue_scripts', 'admin_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($) { | |
// Gravity Forms no-js support on Ajax | |
if ( $('.gform_wrapper form[data-target]').length ) { | |
$('.gform_wrapper form[data-target]').attr('target', $('.gform_wrapper form[data-target]').data('target')); | |
} | |
if ( $(".gform_wrapper input[name='nojs_gform_ajax']").length ) { | |
$(".gform_wrapper input[name='nojs_gform_ajax']").attr('name', 'gform_ajax'); | |
} |
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
'use strict'; | |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
!function ($) { | |
// Custom Window Loaded Check | |
window.loaded = 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 | |
/** PHP SCSS Compiler | |
* @retrofit - https://github.com/ConnectThink/WP-SCSS | |
* @uses - http://leafo.github.io/scssphp | |
**/ | |
if ( ! class_exists( 'scssc' ) ) { | |
include_once( get_template_directory() . '/vendor/scssphp/scss.inc.php' ); | |
} elseif ( class_exists( 'Wp_Scss' ) ) { | |
// Add Admin notice to indicate WP-SCSS Plugin should be removed. | |
function wp_scss_installed_error_notice() { |
NewerOlder