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
/* custom css */ | |
@import url(../style.css); /* call the parent css */ | |
body { | |
background: #282a36; /* Old browsers */ | |
background: -moz-linear-gradient(top, #282a36 25%, #282b3d 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(25%,#282a36), color-stop(100%,#282b3d)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #282a36 25%,#282b3d 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #282a36 25%,#282b3d 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, #282a36 25%,#282b3d 100%); /* IE10+ */ |
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
// change this: | |
<a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register', 'event_espresso'); ?></a> | |
// to this: | |
<a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Register for', 'event_espresso'); echo stripslashes_deep($event_name); ?></a> |
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 if ( 'post_type' == get_post_type() ) : | |
$term_list = get_the_terms( $post->ID, 'custom_taxonomy' ); // get the taxonomy terms | |
if ( count($term_list) > 2 ) { // if there are more than 2 terms, use a comma, e.g.: this, this, that | |
$sep = __( ', ', 'textdomain' ); | |
} elseif ( count($term_list) === 2 ) { // if there are EXACTLY 2 terms, use an "and", e.g.: this and that | |
$sep = __( ' and ', 'textdomain' ); | |
} else { // there there is only one (or no) terms, don't use anything | |
$sep = null; | |
} | |
$sep_num = 1; // we'll use this as a counter later |
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
function skematik_hack_remove_profile() { | |
/* remove the skematik profile link */ | |
remove_action( 'skematik_nav_profile_dropdown', 'skematik_account_profile_link'); | |
} | |
add_action( 'init', 'skematik_hack_remove_profile' ); | |
function skematik_hack_ee_profile_dropdown() { | |
$my_events = '<li><a href="' . home_url() . '/my-events/">' . __( 'My Events' ) . '</a></li>'; | |
$edit_profile = '<li><a href="' . home_url() . '/my-profile/">' . __( 'My Profile' ) . '</a></li>'; | |
echo $my_events . $edit_profile; |
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: Pluralsight plugin development demo | |
Description: This is a demonstration plugin for the Introduction to WordPress Plugin Development course on Pluralsight. | |
Author: Chris Reynolds | |
Version: 1.0 | |
*/ | |
function ps_plugindev_options_page() { | |
?> |
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: Updated Blog Metrics | |
Version: 1.3 | |
Plugin URI: https://github.com/jazzsequence/updated-blog-metrics | |
Description: Based on Joost de Valk's <a href="http://yoast.com/wordpress/blog-metrics/" target="_blank">Blog Metrics</a> plugin, provides author metrics over the past year rather than just the past 30 days. | |
Author: jazzsequence | |
Author URI: http://www.arcanepalette.com/ | |
Copyright 2007-2009 Chris Reynolds (email : chris@jazzsequence.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
add_action( 'add_meta_boxes', 'my_remove_meta_boxes', 0 ); | |
function my_remove_meta_boxes(){ | |
global $wp_meta_boxes; | |
unset( $wp_meta_boxes['post']['side']['core']['tagsdiv-post_tag'] ); | |
add_meta_box( 'tagsdiv-post_tag', 'Example title', 'post_tags_meta_box', 'post', 'normal', 'core', array( 'taxonomy' => 'post_tag' )); | |
//print '<pre>';print_r( $wp_meta_boxes['post'] );print '<pre>'; | |
} |
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
#menu-posts-book-review .wp-menu-image { | |
background: none!important; | |
} | |
#menu-posts-book-review .wp-menu-image:before { | |
font-family: 'Genericons'!important; /* this assumes you've loaded Genericons in your admin */ | |
content: '\f444'; /* replace this with your icon */ | |
font-size: 20px; | |
position: relative; | |
left: 5px; /* positions the icon */ | |
top: 4px; /* positions the icon */ |
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
if ( has_term('', 'my-tax') ) { | |
// do stuff with 'my-tax' posts | |
// http://codex.wordpress.org/Function_Reference/has_term | |
} |
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
<snippet> | |
<content><![CDATA[ | |
<?xml version="1.0" encoding="utf-8"?> | |
<module xmlns="http://pluralsight.com/sapphire/module/2007/11"> | |
<author>${1:author-name}</author> | |
<title>${2:module-title}</title> | |
<description>${3:module-description}</description> | |
<clips> | |
<clip href="${4:course-slug}-${5:module-number}${6:module-clip}.wmv" title="${11:clip $6 title}" /> | |
<clip href="${4:course-slug}-${5:module-number}${7:module-clip}.wmv" title="${12:clip $7 title}" /> |