This file contains hidden or 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
case ( is_tax( $my_taxonomies ) ): | |
global $wp_query; | |
if ( in_array( $wp_query->query_vars['taxonomy'], $my_taxonomies ) ) { | |
foreach ( $my_taxonomies as $taxonomy ) { | |
load_template( MY_PLUGIN_DIR . 'theme/archive-' . $k['type'] . '.php' ); | |
// load_template( MY_PLUGIN_DIR . 'theme/taxonomy-' . $my_taxonomies. '.php' ); | |
} | |
} | |
exit; |
This file contains hidden or 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
#!/bin/bash | |
if [ ${PWD##*/} == task-tracker ]; then | |
echo `git notes show` | |
fi |
This file contains hidden or 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
[color] | |
ui = auto | |
interactive = true |
This file contains hidden or 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
foreach( $this->post_type as $wtf ) { | |
$my_cpt = get_post_types( array( 'name' => $wtf['type']), 'objects' ); | |
if ( is_tax( $wtf['taxonomies'] ) ) { | |
global $wp_query; | |
if ( in_array( $wp_query->query_vars['taxonomy'], $wtf['taxonomies'] ) ) { | |
if ( file_exists( MY_PLUGIN_DIR . 'theme/custom/' . $wtf['type'] . '-taxonomy.php' ) ) { | |
load_template( MY_PLUGIN_DIR . 'theme/custom/' . $wtf['type'] . '-taxonomy.php' ); | |
} elseif ( file_exists( MY_PLUGIN_DIR . 'theme/default/taxonomy.php' ) ) { | |
load_template( MY_PLUGIN_DIR . 'theme/default/taxonomy.php' ); |
This file contains hidden or 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
###### | |
# | |
# NOTE, you must reload your profile for these changes to take effect | |
# [your name ~] source .bash_profile | |
# color codes: http://www.funtoo.org/en/articles/linux/tips/prompt/ | |
# | |
###### | |
###### | |
# |
This file contains hidden or 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
$_GLOBALS['task'] = new CustomPostType(); | |
$_GLOBALS['task']->post_type = array( | |
array( | |
'name' => 'Task', | |
'type' => 'task', | |
'supports' => array( | |
'title', | |
'editor', | |
'author', | |
'comments' |
This file contains hidden or 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
interface ICustomPostType { | |
public function registerPostType( $param=array() ); | |
public function registerTaxonomy( $param=array() ); | |
// @todo http://codex.wordpress.org/Function_Reference/locate_template | |
public function templateRedirect(); | |
public function regsiterActivation(); | |
// public function regsiterDeactivation(); | |
// public function baseStyleSheet( $param=array() ); |
This file contains hidden or 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
public function registerPostType( $args=NULL ) { | |
foreach ( $this->post_type as $post_type ) { | |
if ( !empty( $post_type['taxonomies'] ) ) | |
$taxonomies = $post_type['taxonomies']; | |
. | |
. | |
. | |
. |
This file contains hidden or 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
class CustomPostType extends CustomPostTypeBase { | |
/** | |
* Every thing that is "custom" to our CPT goes here. | |
*/ | |
public function __construct() { | |
$this->dependencies['script'] = array( | |
'jquery', | |
'jquery-ui-core', |
This file contains hidden or 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] | |
name = Zane M. Kolnik | |
email = [email protected] |
OlderNewer