This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_head', 'ja_custom_cpt_icons' ); | |
function ja_custom_cpt_icons() { ?> | |
<style type="text/css" media="screen"> | |
#menu-posts-portfolio .wp-menu-image { | |
background: url(<?php echo plugin_dir_url( __FILE__ ); ?>images/portfolio-icon.png) no-repeat 6px 6px !important; | |
} | |
#menu-posts-portfolio:hover .wp-menu-image, #menu-posts-portfolio.wp-has-current-submenu .wp-menu-image { | |
background-position:6px -16px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub makequotes() | |
mc = "a" | |
For i = 2 To Cells(Rows.Count, mc).End(xlUp).Row | |
If Cells(i, mc) <> "" And Left(Cells(i, mc), 1) <> """" Then | |
Cells(i, mc).Value = """" & Cells(i, mc) & """" | |
End If | |
Next i | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove 'hentry' from post_class() | |
*/ | |
function ja_remove_hentry( $class ) { | |
$class = array_diff( $class, array( 'hentry' ) ); | |
return $class; | |
} | |
add_filter( 'post_class', 'ja_remove_hentry' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* User stylesheet for Techmeme.com */ | |
body { | |
font-family: "Helvetica Neue", Helvetica, arial; | |
background: #bbbbcc; | |
} | |
cite, | |
.drhed, | |
h2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('do_meta_boxes', 'be_rotator_image_metabox' ); | |
/** | |
* Move Featured Image Metabox on 'rotator' post type | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/move-featured-image-metabox | |
*/ | |
function be_rotator_image_metabox() { | |
remove_meta_box( 'postimagediv', 'rotator', 'side' ); | |
add_meta_box('postimagediv', __('Custom Image'), 'post_thumbnail_meta_box', 'rotator', 'normal', 'high'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress TinyMCE Media Upload | |
Plugin URI: http://wordpress.org/extend/plugins/bbpress-tinymce-media-upload-for-administrators/ | |
Description: Enables the Media Upload button on the front-end TinyMCE editor for admin users. | |
Version: 1.0 | |
Author: Jared Atchison | |
Author URI: http://jaredatchison.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress New Topic Notifications | |
Plugin URI: http://wordpress.org/extend/bbpress-new-topic-notifications | |
Description: Send notification emails to specific users when a new bbPress topic or reply is posted. | |
Version: 1.2 | |
Author: jaredatch | |
Author URI: http://jaredatchison.com | |
Much of this plugin was adapted fron Notifly! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tweak the query | |
*/ | |
function ja_query_tweaks( $query ) { | |
if( $query->is_post_type_archive( 'program-partners' ) ) { | |
$query->query_vars['orderby'] = 'title'; | |
$query->query_vars['order'] = 'ASC'; // Can be ASC or DESC | |
// $query->query_vars['posts_per_page'] = -1; uncomment to show ALL on first page | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
// Mobile navigation | |
$('#prim-selector, #sec-selector').change(function(){ | |
if ($(this).val()!='') { | |
window.location.href=$(this).val(); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Check useragent string for mobile device | |
* | |
* @return boolean if mobile device is detected | |
*/ | |
function ja_is_mobile() { | |
$useragent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; | |
if ( preg_match( '/(alcatel|amoi|android|avantgo|blackberry|benq|cell|cricket|docomo|elaine|htc|iemobile|iphone|ipad|ipaq|ipod|j2me|java|lg|midp|mini|mmp|mobi|motorola|nec-|nokia|palm|panasonic|philips|phone|sagem|sharp|sie-|smartphone|sony|symbian|t-mobile|telus|up\.browser|up\.link|vodafone|wap|wm5|webos|wireless|xda|xoom|zte)/i', $useragent ) ) { | |
return true; |