Skip to content

Instantly share code, notes, and snippets.

View davidakennedy's full-sized avatar

David A. Kennedy davidakennedy

View GitHub Profile
@davidakennedy
davidakennedy / import.php
Last active October 20, 2023 02:08
A PHP script to convert Markdown files with front matter to Kirby CMS text files.
<?php
// Get files.
$directory = "/Users/dk/Desktop/articles/"; // Replace with the actual directory path
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(
$directory,
RecursiveDirectoryIterator::SKIP_DOTS
),
RecursiveIteratorIterator::SELF_FIRST
@davidakennedy
davidakennedy / a11y-theme-review.txt
Created February 14, 2016 21:37
A collection of review template responses for WordPress theme reviews.
Hi there!
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/
Required
Anything in this section will need to be fixed before the theme can be approved.
Keyboard Navigation
@davidakennedy
davidakennedy / .jshintrc
Last active August 29, 2015 14:17
A Gulp setup for all your WordPress/Gulp project needs.
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es3": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
@davidakennedy
davidakennedy / .jshintrc
Last active August 29, 2015 14:17
A Gulp setup for all your Gulp project needs.
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es3": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,