This file contains hidden or 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
import { get } from "lodash"; | |
function __get(obj, val, def) { | |
const items = val.split("|"); | |
if (!items.length) return _.get(obj, val, def); | |
const tpl = items.shift(); | |
let value; | |
let index = 0; | |
while (!value && index < items.length) { | |
value = get(obj, `${tpl}.${items[index]}`); |
This file contains hidden or 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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
This file contains hidden or 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 the MailHog to your wordpress projects | |
* By Khalid Ahmada | |
* MailHog @see https://github.com/mailhog/MailHog | |
*/ | |
class WP_MAILHOG | |
{ | |
function __construct() |
This file contains hidden or 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($){ | |
var wpcf7Elm = document.querySelector( '.wpcf7' ); | |
function handlerEventProcess(event){ | |
var hiddensubmit = $(wpcf7Elm).find('form').find('.js-hide-bloc'); | |
if(hiddensubmit.length){ | |
hiddensubmit.removeClass('js-hide-bloc'); |