I hereby claim:
- I am danielpost on github.
- I am danielpost (https://keybase.io/danielpost) on keybase.
- I have a public key ASCuupmXsGBf5Ty9o_cgesJEsf40Y_LcbynZIB_xnJicxgo
To claim this, I am signing this object:
<?php | |
$reusable_checkbox_field = array( | |
'type' => 'checkbox', | |
'choices' => array( | |
'red' => __('Red', THEME_SLUG), | |
'white' => __('White', THEME_SLUG), | |
'blue' => __('Blue', THEME_SLUG), | |
), | |
); |
<?php | |
/** | |
* Adds a Base64 encoded version of the Featured Image thumbnail | |
* to post meta | |
* | |
* @param int $post_id ID of the post that's being updated. | |
*/ | |
function dp_add_base64_featured_image_thumb($post_id) { | |
// If this is just a revision, don't do anything. | |
if (wp_is_post_revision($post_id)) { |
I hereby claim:
To claim this, I am signing this object:
.some-component { | |
:not(.reduced-motion) & { | |
animation: animation-name 3s linear infinite; | |
} | |
} |
<button aria-pressed="false" aria-label="Toggle something">I'm a toggle button!</button> | |
<button aria-checked="false" role="switch" aria-label="Switch something">I'm a switch!</button> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
namespace Bahama; | |
class Core { | |
public function setup() { | |
add_action('after_setup_theme', [$this, 'i18n']); | |
add_action('after_setup_theme', [$this, 'theme_setup']); | |
add_action('wp_enqueue_scripts', [$this, 'scripts']); | |
add_action('wp_enqueue_scripts', [$this, 'styles']); |
Turns this:
[
'subtitle',
'video' => [
'type' => 'oembed',
],
'quote',
'quote_author',
/** | |
* Make Hugo's footnotes accessible. | |
*/ | |
/** | |
* Add a title to the footnotes wrapper. | |
* | |
* @param {Element} footnotes - Footnotes wrapper. | |
* @param {String} title - Text for the title element. | |
* @param {String} id - ID for the title element. |