Turns this:
[
'subtitle',
'video' => [
'type' => 'oembed',
],
'quote',
'quote_author',
| <?php | |
| $forms = get_posts(['post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1]); | |
| if (empty($forms)) { | |
| return []; | |
| } | |
| return array_combine(wp_list_pluck($forms, 'ID'), wp_list_pluck($forms, 'post_title')); |
| @keyframes highlight { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 100% { | |
| opacity: 0; | |
| } | |
| } | |
| .footnotes li, |
| /** | |
| * 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. |
Turns this:
[
'subtitle',
'video' => [
'type' => 'oembed',
],
'quote',
'quote_author',
| <?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']); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <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> |
| .some-component { | |
| :not(.reduced-motion) & { | |
| animation: animation-name 3s linear infinite; | |
| } | |
| } |
I hereby claim:
To claim this, I am signing this object: