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 | |
wp_load_translations_early(); | |
$protocol = wp_get_server_protocol(); | |
header( "$protocol 503 Service Unavailable", true, 503 ); | |
header( 'Content-Type: text/html; charset=utf-8' ); | |
header( 'Retry-After: 30' ); | |
?> | |
<!DOCTYPE html> | |
<html> |
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_action('admin_footer', function(){ | |
echo " | |
<script> | |
jQuery.fn.extend({ | |
live: function (event, callback) { | |
if (this.selector) { | |
jQuery(document).on(event, this.selector, callback); | |
} |
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
DEST='host:path' | |
COMPILE_COMMAND='yarn production' |
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 | |
/** | |
* Split a postcode | |
* @param string $postcode | |
* @return array containing both outer and inner postcodes | |
*/ | |
function split_postcode($postcode) | |
{ | |
// remove spaces to be safe |
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
$( '.stat-counter' ).each(function() { | |
/** | |
* | |
* Get Vars from Data Attributes | |
* | |
*/ | |
var numFrom = $(this).data('from'); // starting no. | |
var numTo = $(this).data('to'); // end no. |
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
.*form_key.* | |
.*media/catalog.* | |
.*product_compare.* | |
.*media/wysiwyg.* | |
.*skin/frontend.* | |
.*wishlist/index.* | |
.*?p=.* |
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
let mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for the application as well as bundling up all the JS files. |
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 | |
// ========================================================================== | |
// Mailchimp | |
// ========================================================================== | |
// | |
// Send user to mailchimp | |
// -------------------------------------------------------------------------- | |
public function sendToMailchimp(Request $request) | |
{ | |
// customer info |
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
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEg4ySyLhF0/GCaN82gbCeFuu0mZ/z8nN6ufq0filP1FY0Kp3BheWxvYWTFAvV7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwZTMyNGIyMmUxMTc0ZmM2MDlhMzdjZGEwNmMyNzg1YmFlZDI2NjdmY2ZjOWNkZWFlN2VhZDFmOGE1M2Y1MTU4ZDBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwZTMyNGIyMmUxMTc0ZmM2MDlhMzdjZGEwNmMyNzg1YmFlZDI2NjdmY2ZjOWNkZWFlN2VhZDFmOGE1M2Y1MTU4ZDBhIiwidWlkIjoiOWZhNTQxODgxYWQwNWFhNDQ0ZGMxYzlhZjlhZDNhMTkiLCJ1c2VybmFtZSI6Im1hdHRzYW5kZXJzIn0sInNlcnZpY2UiOnsibmFtZSI6ImdpdGh1YiIsInVzZXJuYW1lIjoibWF0dHNhbmRlcnN1ayJ9LCJ0eXBlIjoid2ViX3NlcnZpY2VfYmluZGluZyIsInZlcnNpb24iOjF9LCJ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