Skip to content

Instantly share code, notes, and snippets.

View jp1971's full-sized avatar

Jameson Proctor jp1971

View GitHub Profile
<?php
// Headshot
function xqum_image_left( $atts, $content = null ){
return"
<div class='xqum-image-left'>
$content
</div>";
}
@jp1971
jp1971 / hero-home.css
Last active September 7, 2018 15:29
Home Hero
.home-hero
.success-story-detail-hero
position: relative
[centered-image]
margin: 0
height: 100%
overflow: hidden
position: absolute
top: 0
@jp1971
jp1971 / aska_hours.html
Created August 18, 2016 13:28
Aska Hours
<ul>
<li>
<p class="desc" style="font-weight: bold;">Dining room</p>
<p class="desc">Dinner<br />
Tuesday through Saturday<br />
(Sunday & Monday closed)<br />
Reservations required
</p>
</li>
<li>
<div>Basics:</div>
<div>
<ul>
<li>Dual "pingable" envelope generator's total envelope time is set by a "ping"
<br>
</li>
<li>Tap tempo button or incoming clock sets the ping time
<br>
</li>
<li>Envelope time is a multiple or division of the ping time (from /8 to x8) set by Ping Div/Mult knob and CV
{% for tweet in tweets %}
<p class="twitter">{{ tweet.text|twitterfy }}</p>
{% endfor %}
add_filter( 'timber_context', 'ob_add_to_timber_context' );
function ob_add_to_timber_context( $data ){
// Get Tweets
$data['tweets'] = getTweets( 3, 'obieawards', array( 'include_rts' => true ) );
}
<script type="text/javascript">
var bg_player;
videojs( 'performPlayer' ).ready( function() {
bg_player = this;
bg_player.ga();
} );
{# et_disable_header is a notional ACF field name #}
{# You can use whatever name you'd like #}
{% if function( 'get_field', 'et_disable_header' ) == true %}
{% extends "index-alt.twig" %}
{% else %}
{% extends "index.twig" %}
{% endif %}
@jp1971
jp1971 / guest_authors_extend
Created June 6, 2012 21:32
Extending guest author profiles
//From functions_thought_catalog.php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* Let's add a meta box for author links to the guest authors profile pages
*
*/
add_action( 'add_meta_boxes', 'coauthors_add_on_the_web_box' );
function coauthors_add_on_the_web_box() {
add_meta_box(
@jp1971
jp1971 / guest_authors_from_users.php
Created May 9, 2012 21:11
Create guest authors from users
<?php
//Quick and dirty for the sake of initial testing
require_once('wp-load.php');
function create_coauthors_from_users() {
global $wpdb;
global $coauthors_plus;