Skip to content

Instantly share code, notes, and snippets.

View chrisaldrich's full-sized avatar

Chris Aldrich chrisaldrich

View GitHub Profile
@chrisaldrich
chrisaldrich / homepage-flexbox-menu.html
Last active May 19, 2019 17:16
Code for generating the flexbox menu of post kinds on my homepage
/* Code for the itemized menu on my homepage */
<ul class="flex-menu">
<li class="flex-item">[icon name="file-text" class="" unprefixed_class=""] <a title="Longerform content (Traditional blog)" href="/kind/article/">Articles</a></li>
<li class="flex-item">[icon name="sticky-note" class="" unprefixed_class=""] <a title="Status updates and short notes" href="/kind/note/">Notes</a></li>
<li class="flex-item">[icon name="reply" class="" unprefixed_class=""] <a title="Replies to content on other sites" href="/kind/reply/">Replies</a></li>
<li class="flex-item">[icon name="microphone" class="" unprefixed_class=""] <a title="My short podcast episodes on various topics" href="/category/microcast/">Microcast</a></li>
<li class="flex-item">[icon name="location-arrow" class="" unprefixed_class=""] <a title="Places I've visited" href="/category/checkin/">Checkins</a></li>
<li class="flex-item">[icon name="music" class="" unprefixed_class=""] <a title="Audio files I've found interesting" href="/type/audio">A
@chrisaldrich
chrisaldrich / kind-acquisition.php
Created April 20, 2018 02:20
View template for Post Kinds Plugin for WordPress
<?php
/*
* Acquisition Template
*
*/
$mf2_post = new MF2_Post( get_the_ID() );
$cite = $mf2_post->fetch();
if ( ! $cite ) {
return;
@chrisaldrich
chrisaldrich / kind-follow.php
Created April 19, 2018 23:24
Template for the follow kind for Post Kinds Plugin for WordPress
<?php
/*
* Follow Template
*
*/
$mf2_post = new MF2_Post( get_the_ID() );
$cite = $mf2_post->fetch();
if ( ! $cite ) {
return;
/* Tweaks to post kinds */
#kind-all .svg-icon {
fill: currentColor;
padding-left: 2px;
padding-right: 2px;
width: 48px;
height: 48px;
vertical-align: middle;
top: -0.0625em;
color: grey;
@chrisaldrich
chrisaldrich / tweet-status.php
Created January 25, 2017 20:06 — forked from cdevroe/tweet-status.php
Publish posts, statuses, images, to Twitter from WordPress
<?php
/**
* Plugin Name: Tweet Statuses
* Description: A simple plugin that will tweet a status when published.
* Author: Colin Devroe
* Author URI: http://cdevroe.com/
* Version: 0.1.0
*
* TwitterAPIExchange is here: http://github.com/j7mbo/twitter-api-php
*/
@chrisaldrich
chrisaldrich / keybase.md
Created August 24, 2016 17:49
Keybase.io Gist

Keybase proof

I hereby claim:

  • I am chrisaldrich on github.
  • I am chrisaldrich (https://keybase.io/chrisaldrich) on keybase.
  • I have a public key whose fingerprint is 1B01 E63A 0E9D 6B26 83AE 2ADF 2F2D 7FAE CFC5 1FB6

To claim this, I am signing this object: