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
/* eslint no-unused-vars:off */ | |
var fusionHelperEl = { | |
/** | |
* Find an element. | |
* | |
* @param {string|Object} selector - The css selector of the element. | |
* If object then it can either be document or an element. | |
* @param {Object} parent - The parent element, or undefined for document. | |
* @return {Object} - returns the fusionHelperEl object to allow chaining methods. | |
*/ |
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 | |
/** | |
* Plugin Name: parent-theme-mods-loader | |
*/ | |
add_action( | |
'customize_register', | |
/** | |
* Hooks in customize_register to load our control, register settings and do what needs to be done. | |
* |
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 | |
/** | |
* Requires ariColor: https://aristath.github.io/ariColor/ | |
*/ | |
add_action( 'wp', function() { | |
if ( ! class_exists( 'ariColor' ) ) { | |
return; | |
} | |
$colors = []; |
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
var Colour = function( rgba ) { | |
var rgbaString = ''; | |
if ( 'transparent' === rgba ) { | |
rgba = [ 0, 0, 0, 0 ]; | |
} else if ( 'string' === typeof rgba ) { | |
rgbaString = rgba; | |
rgba = rgbaString.match( /rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/ ); | |
if ( rgba ) { | |
rgba.shift(); |
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
Anonymous UUID: DEC44D6A-D5F1-35D4-FC46-A6E021923230 | |
Tue Jul 24 11:20:44 2018 | |
*** Panic Report *** | |
Machine-check capabilities: 0x0000000000000c0a | |
family: 6 model: 70 stepping: 1 microcode: 25 | |
signature: 0x40661 | |
Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz | |
10 error-reporting banks |
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
$wpe_common = WpeCommon::instance(); | |
foreach ( array( 'trashed_post', 'delete_post', 'edit_post', 'publish_page', 'publish_post', 'save_post' ) as $hook ) { | |
remove_action( $hook, array( $wpe_common, 'purge_varnish_cache' ) ); | |
} |
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_filter( 'bbp_current_author_ip', function() { | |
return '127.0.0.1'; | |
} ); | |
add_filter( 'get_post_metadata', function( $metadata, $object_id, $meta_key, $single ) { | |
if ( isset( $meta_key ) && '_bbp_author_ip' === $meta_key ) { | |
return ''; |
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 | |
/** | |
* GDPR-Compliance class. | |
* | |
* @since 1.0 | |
* @author Aristeides Stathopoulos @aristath | |
*/ | |
/** | |
* The Fusion_CS_GDPR object. |
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 | |
/** | |
* Returns the URL for an option. | |
* If no option is defined, return all. | |
* | |
* @param string $option The key of the item for which we want to get the URL. | |
* @return string|array Returns string if $option is defined. Returns array if option is false. | |
*/ | |
function my_cool_theme_get_radiobutton_option( $option = 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
const { __ } = wp.i18n; // Import __() from wp.i18n | |
const { registerBlockType, RichText, UrlInput, InspectorControls, PanelColor, ColorPalette } = wp.blocks; | |
/** | |
* This class registers a custom block type, by creating the | |
* controls and updating the values automatically. It also allows passing a single | |
* render function to avoid repetitive code in edit and update. | |
*/ | |
class MyCustomComponent{ |