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 | |
// enqueue these scripts and styles before admin_head | |
wp_enqueue_script( 'jquery-ui-dialog' ); // jquery and jquery-ui should be dependencies, didn't check though... | |
wp_enqueue_style( 'wp-jquery-ui-dialog' ); | |
?> | |
<!-- The modal / dialog box, hidden somewhere near the footer --> | |
<div id="my-dialog" class="hidden" style="max-width:800px"> | |
<h3>Dialog content</h3> | |
<p>This is some terribly exciting content inside this dialog. Don't you agree?</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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Home</title> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<style> | |
body { | |
font-family: sans-serif; | |
} |
This file has been truncated, but you can view the full file.
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
(function(Qi,Pu){typeof exports=="object"&&typeof module<"u"?Pu(exports):typeof define=="function"&&define.amd?define(["exports"],Pu):(Qi=typeof globalThis<"u"?globalThis:Qi||self,Pu(Qi.labelbaker=Qi.labelbaker||{}))})(this,function(Qi){"use strict";const Pu="";var Xx=(A,t,e)=>{if(!t.has(A))throw TypeError("Cannot "+e)},Im=(A,t,e)=>{if(t.has(A))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(A):t.set(A,e)},Tu=(A,t,e)=>(Xx(A,t,"access private method"),e),Yx=Math.PI/180;function Jx(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const is=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Wt={_global:is,version:"8.4.2",isBrowser:Jx(),isUnminified:/param/.test(function(A){}.toString()),dblClickWindow:400,getAngle(A){return Wt.angleDeg?A*Yx:A},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseLis |
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
#!/usr/bin/env sh | |
# Original author: Michalis Georgiou <mechmg93@gmail.comr> | |
# Modified by Andrew http://www.webupd8.org <andrew@webupd8.org> | |
# Current version by Kassius Iacchus https://github.com/iacchus/ | |
# Depends on: `wget` | |
# | |
# Install `wget` on Debian/Ubuntu with: | |
# apt install wget |
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
{ | |
"plugins": ["."], | |
"config": { | |
"WP_DEBUG": true, | |
"WP_DEBUG_LOG": true, | |
"SCRIPT_DEBUG": true, | |
"WP_DEBUG_DISPLAY": true, | |
"WP_PHP_BINARY": "php" | |
}, | |
"mappings": { |
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
version: "3.7" | |
services: | |
traefik: | |
image: traefik:v2.0 | |
command: --providers.docker | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:rw | |
web1: |
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
version: "3.3" | |
services: | |
db: | |
container_name: 'wordpress-database' | |
image: 'mysql:5.7' | |
volumes: | |
- './database/mysql:/var/lib/mysql' | |
ports: | |
- 18766:3306 | |
environment: |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
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() { | |
if (/Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
function setActive() { | |
setTimeout(function() { | |
var hash = window.location.hash.substr(1); | |
if (hash) { |
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 bm = editor.BlockManager; | |
var blocks = bm.getAll(); | |
bm.render(blocks.filter( | |
block => { | |
let blockName = block.attributes.label; | |
return blockName.toLowerCase().includes(text); | |
})); |
NewerOlder