I hereby claim:
- I am jancbeck on github.
- I am jancbeck (https://keybase.io/jancbeck) on keybase.
- I have a public key ASBC8CHbwPT11Jz5cP_InKjVuD8YZTxpWsJGqPTkiBWy6go
To claim this, I am signing this object:
<?php | |
class kirbytextExtended extends kirbytext { | |
function __construct($text=false, $markdown=true, $smartypants=true) { | |
parent::__construct($text, $markdown, $smartypants); | |
// define custom tags | |
$this->addTags('figure'); |
<?php | |
/** | |
* Move this file to /site/snippets/ and rename it video.php | |
*/ | |
// stop without videos | |
if(empty($videos)) return; | |
// set some defaults |
<?php if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array ( | |
'key' => 'group_558c7f75de508', | |
'title' => 'Stories', | |
'fields' => array ( | |
array ( | |
'key' => 'field_558c7fe4df0bc', | |
'label' => 'Select artist', | |
'name' => 'select_artist', |
javascript:window.location='https://huffduffer.com/add?popup=true&page='+encodeURIComponent(location.href); |
<?php | |
function query_google_spreadsheets( $key, $query, $sheet_name = '' ) { | |
// queries a spreadsheet url and returns a clean array | |
$sheet_url = 'https://spreadsheets.google.com/tq?key='. $key .'&tq='. $query .'&sheet='. $sheet_name; | |
$str = file_get_contents( $sheet_url ); | |
// clean json string | |
$str = str_replace( "// Data table response\ngoogle.visualization.Query.setResponse(", '', $str ); | |
$str = rtrim( $str, ');' ); |
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8" /> | |
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement) /* removes no-js class */</script> | |
<title>Untitled Document</title> | |
</head> | |
<?php | |
require_once('highlight/geshi.php'); | |
kirbytext::$pre[] = function($kirbytext, $value) { | |
return preg_replace_callback('!```(.*?)```!is', function($code){ | |
$code = @$code[1]; | |
$lines = explode("\n", $code); |
/* | |
* Step 1: Execute `buildThemeList` to build the basic list of all themes. | |
* Step 2: Enter your Page Speed Insights API Key | |
* Step 3: Create minutely trigger for `getPageSpeeds`. | |
*/ | |
var apiKey = 'YOUR API KEY'; | |
var deleteOldSheets = true; | |
/* |
<?php add_action( 'wp_enqueue_scripts', function() { | |
if ( function_exists( 'is_woocommerce' ) && ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { | |
wp_dequeue_style( 'woocommerce_frontend_styles' ); | |
wp_dequeue_style( 'woocommerce_fancybox_styles' ); | |
wp_dequeue_style( 'woocommerce_chosen_styles' ); | |
wp_dequeue_style( 'woocommerce_prettyPhoto_css' ); | |
wp_dequeue_script( 'wc_price_slider' ); | |
wp_dequeue_script( 'wc-single-product' ); | |
wp_dequeue_script( 'wc-add-to-cart' ); |
I hereby claim:
To claim this, I am signing this object: