Used whenever there is room to display a long form date. These are the prefered format whenever possible.
Sunday, January 10, 2010 - 9:30pm
l, F j, Y - g:ia
Sunday, January 10 - 9:30pm
<?php | |
define('SITE_EMAIL', 'no-reply@example.com'); | |
define('SITE_NAME', 'My Project'); | |
function send_password_reset($email, $name, $resetlink) { | |
require_once( 'swiftmailer/swift_required.php' ); | |
$subject = 'Resetting your password for ' . SITE_NAME; |
// inspired by https://gist.github.com/jshawl/6225945 | |
// Thanks @jshawl! | |
// now using grunt-sass to avoid Ruby dependency | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { // sass tasks | |
dist: { |
diff --git a/test-yikes-drag-drop.html b/test-yikes-drag-drop-withACF.html | |
index 90c9158..c3b6358 100644 | |
--- a/test-yikes-drag-drop.html | |
+++ b/test-yikes-drag-drop-withACF.html | |
@@ -34,10 +34,15 @@ img.emoji { | |
padding: 0 !important; | |
} | |
</style> | |
-<link rel='stylesheet' href='http://testwp.localhost/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l10n,buttons,wp-auth-check&ver=5.0.1' type='text/css' media='all' /> | |
+<link rel='stylesheet' href='http://testwp.localhost/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l10n,buttons,wp-auth-check,wp-color-picker&ver=5.0.1' type='text/css' media='all' /> |
<?php | |
/** | |
* Custom Walker to extract current sister-sub-menu | |
*/ | |
class Custom_Walker_Nav_Sister_Menu extends Walker_Nav_Menu { | |
var $found_parents = array(); | |
function start_el(&$output, $item, $depth, $args) { |
/*********** | |
RESPONSIVE CALCULATIONS | |
**********/ | |
// On the first time the page loads, or if the orientation changes | |
// (portrait to landscape, etc) call the recalculation script | |
$(window).on('load orientationchange', function(){ | |
responsive_calc(); | |
}); |
<?php | |
/* | |
Plugin Name: Test Event Filter | |
Plugin URI: https://squarecandy.net | |
Description: | |
Version: 1.0.0 | |
Author: Square Candy Design | |
Author URI: http://squarecandydesign.com | |
Text Domain: squarecandy | |
*/ |
<?php | |
$allowed_html = wp_kses_allowed_html( 'strip' ); | |
// empty array - strips all html | |
/* | |
Array(); | |
*/ |
# These are the only common ones ever used... | |
# If you need a reference for anything inbetween these: https://tools.ietf.org/html/rfc4632#page-7 | |
123.456.0.0/8 = 123.*.*.* | |
123.456.0.0/16 = 123.456.*.* | |
123.456.789.0/24 = 123.456.789.* | |
123.456.789.012/32 = 123.456.789.012 |
<?php | |
// This adds a hard coded Amazon affiliate tag to all amazon links in the_content | |
// Code adapted from the abandoned "Amazon Affiliate Tag" plugin | |
// https://wordpress.org/plugins/amazify/ by Maxime Bridon https://bridon.fr/ | |
function add_amazon_tag( $content ) { | |
// the affiliate tag for Peter Bregman | |
$affiliate_tag = 'yourtaghere-123'; | |
// regex to find any link |