Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
⌘ ~/Sites/vip/ (master) ./bin/vip-init
_ __(_)___ ____ ___ __(_)____/ /_______/ /_____ ______/ /_
| | / / / __ \ / __ `/ / / / / ___/ //_/ ___/ __/ __ `/ ___/ __/
| |/ / / /_/ / / /_/ / /_/ / / /__/ ,< (__ ) /_/ /_/ / / / /_
|___/_/ .___/ \__, /\__,_/_/\___/_/|_/____/\__/\__,_/_/ \__/
/_/ /_/
Enter your password to continue:
⌘ ~/Sites/vip/ (master) ./bin/vip-init
_ __(_)___ ____ ___ __(_)____/ /_______/ /_____ ______/ /_
| | / / / __ \ / __ `/ / / / / ___/ //_/ ___/ __/ __ `/ ___/ __/
| |/ / / /_/ / / /_/ / /_/ / / /__/ ,< (__ ) /_/ /_/ / / / /_
|___/_/ .___/ \__, /\__,_/_/\___/_/|_/____/\__/\__,_/_/ \__/
/_/ /_/
Enter your password to continue:
<div class="span4 sidebar">
<div class="box">
<div class="inner">
<div class="heading">Refine Search</div>
<h4>Current Filters</h4>
<ul class="unstyled">
<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>