See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Matteo | |
* Date: 04/07/2018 | |
* Time: 12:52 | |
*/ | |
/** | |
* Class ACFToArray |
// Changes Gravity Forms Ajax Spinner (next, back, submit) to a transparent image | |
// this allows you to target the css and create a pure css spinner like the one used below in the style.css file of this gist. | |
add_filter( 'gform_ajax_spinner_url', 'spinner_url', 10, 2 ); | |
function spinner_url( $image_src, $form ) { | |
return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder | |
} |
// Remove Google Fonts from Oxygen | |
remove_action('wp_head', 'add_web_font',0); |
<!-- DNS preconnect --> | |
<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="preconnect" href="//ajax.googleapis.com"> | |
<link rel="dns-prefetch" href="https://fonts.gstatic.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> | |
<link rel="dns-prefetch" href="https://use.fontawesome.com"> | |
<link rel="preconnect" href="https://use.fontawesome.com" crossorigin> | |
<link rel="preconnect" href="//cdnjs.cloudflare.com"> | |
<link rel="preconnect" href="//www.googletagmanager.com"> | |
<link rel="preconnect" href="//www.google-analytics.com"> |
<?php | |
/** | |
* Save Gravity Form field data to post meta by adding a class to any field. | |
* Meta is mapped so that it is readable by Advanced Custom Fields | |
* Format class as… | |
* post_meta-{meta_key} -- for simple fields & writing lists as array to single meta record | |
* post_meta-{meta_key}-.3 -- for multi-input fields | |
* post_meta-{repeater_key}-1.{meta_key} -- for list fields mapped to meta readable by ACF | |
*/ | |
// Run this function after the Gravity Form has created a post |
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
// Gutenberg Color Palette | |
// These are merged Bootstrap 4 $theme-colors from global variables. | |
// The compiled rules are also read and cached in 'functions.php' | |
// so they don't need to be registered manually. | |
$gutenberg-colors: map-merge( ( | |
'dark' : #1A1A1A, | |
'green' : #68b678, | |
'red' : #E2574D, | |
), $theme-colors ); |
// | |
<?php | |
if ( has_post_thumbnail() ) { | |
echo wp_get_attachment_image(get_post_thumbnail_id($post->ID), '', false, array('class' => 'featured-image')); | |
} else { | |
echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) | |
. '/library/images/thumbnail-default.jpg" alt="default thumb" class="featured-image"/>'; | |
} | |
?> |
const sql = require("../util/sql"); | |
const Discord = require("discord.js") | |
const tools = require("../util/tools"); | |
const challonge = require("challonge"); | |
const Mong = require("../util/mong").Mong; | |
const {ObjectID} = require("mongodb"); | |
const challongeClient = challonge.createClient({ | |
apiKey:"***" | |
}); |
<?php | |
$flexible_content = ''; | |
if( have_rows('partials', get_queried_object_id()) ): | |
while( have_rows('partials', get_queried_object_id()) ): the_row(); | |
$row_layouts = [ | |
'example-1', | |
'example-2', | |
'example-3', | |
]; |