Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="49" valign="top">
<p align="right">
<strong> </strong>
</p>
</td>
<td width="71" valign="top">
<p>
@whyisjake
whyisjake / editor.php
Created November 2, 2013 00:21
Let an editor add users.
<?php
/**
* Let editor manage users
*/
function make_allow_editor_to_add_users() {
$edit_editor = get_role( 'editor' );
$edit_editor->add_cap( 'list_users' );
$edit_editor->add_cap( 'create_users' );
$edit_editor->add_cap( 'delete_users' );
<?php
function make_remove_likes() {
global $post;
if ( get_post_type() == 'projects' ) {
remove_filter( 'the_content', 'sharing_display', 1 );
remove_filter( 'the_content', 'post_likes', 1 );
}
}
add_filter( 'the_content', 'make_remove_likes' );
diff --git a/includes/slideshow.php b/includes/slideshow.php
index 7c0e4c4..96b2e22 100644
--- a/includes/slideshow.php
+++ b/includes/slideshow.php
@@ -164,16 +164,16 @@ function make_bs_slideshow() {
if (isset($image->post_excerpt)) {
$output .= '<p>' . $image->post_excerpt . '</p>';
}
- $output .= '</div>';
+ $output .= '</div><!-- .carousel-caption -->';
<?php
// Get our current authors info
$author = get_queried_object();
// Contains the username which should match the Gravatar account URL.
$gravatar_login = $author->data->user_login;
// Get all the Coauthor Plus data
$coauthor = array_shift( get_coauthors() );
<div class="logo span2">
<?php if ( is_front_page() || is_home() ) : ?>
<h1><a href="<?php echo home_url(); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/make-logo.png" /></a></h1>
<?php else : ?>
<h2><a href="<?php echo home_url(); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/make-logo.png" /></a></h2>
<?php endif; ?>
</div>
<form action="http://newsletter.makezine.com/t/r/s/trcidk/" method="post">
<p>
<label for="fieldName">Name</label><br />
<input id="fieldName" name="cm-name" type="text" />
</p>
<p>
<label for="fieldEmail">Email</label><br />
<input id="fieldEmail" name="cm-trcidk-trcidk" type="email" required />
</p>
<p>
@whyisjake
whyisjake / livestream.html
Last active December 23, 2015 07:19
Live Stream Homepage
<h1 style="text-align:center;" class="red">World Maker Faire New York: Live</h1>
[ustream id=6783644 live=1 hwaccel=1 version=3 width=940 height=529]
<div class="row">
<div class="span6">
<h2 style="text-align:center;"><a class="red" href="http://makerfaire.com/location/innovation-stage/" title="Innovation Stage">Innovation Stage</a></h2>
[ustream id=33074077 live=1 hwaccel=1 version=3 width=460 height=297]
</div>
<div class="span6">
<h2 style="text-align:center;"><a class="red" href="http://makerfaire.com/location/innovation-stage/" title="Innovation Stage">Innovation Stage</a></h2>
[ustream id=33074077 live=1 hwaccel=1 version=3 width=460 height=297]
<csinclude record="cs_lay/93" field="pre" current="comm" page="faire" faire="ba11" nav="bayarea/2011" show_sponsors="y" newsletter="yes"/>
<csif cond="{cs.cgi.x-date}" eq="2011-05-22">
<h2>Maker Faire Bay Area 2011 At-a-Glance Sunday May 22, 2011</h2>
<p><strong>View&nbsp;&nbsp;</strong>
<a href="http://makerfaire.com/bayarea/2011/schedule/grid.csp">Saturday</a>
|
<div id="maincol-wide-800">
<div class="clr"></div>
<div class="content">
<a name="content"></a>
<table class="blog" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top"><div>
<table class="contentpaneopen">
<tbody><tr>
<td valign="top" colspan="2">
<script type="text/javascript">