Parcourir la source

Merge pull request #508 from neojp/master

Replace mixed spaces to tabs and make sure everything is indented correcly.
Eddie Machado il y a 12 ans
Parent
commit
47a7b6db25
4 fichiers modifiés avec 233 ajouts et 233 suppressions
  1. 3 3
      library/admin.php
  2. 114 114
      library/bones.php
  3. 51 51
      library/custom-post-type.php
  4. 65 65
      library/js/scripts.js

+ 3 - 3
library/admin.php

@@ -24,7 +24,7 @@ function disable_default_dashboard_widgets() {
 	remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'core' );  // Incoming Links Widget
 	remove_meta_box( 'dashboard_plugins', 'dashboard', 'core' );         // Plugins Widget
 
-	// remove_meta_box('dashboard_quick_press', 'dashboard', 'core' );  // Quick Press Widget
+	// remove_meta_box('dashboard_quick_press', 'dashboard', 'core' );   // Quick Press Widget
 	remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'core' );   // Recent Drafts Widget
 	remove_meta_box( 'dashboard_primary', 'dashboard', 'core' );         //
 	remove_meta_box( 'dashboard_secondary', 'dashboard', 'core' );       //
@@ -56,8 +56,8 @@ function bones_rss_dashboard_widget() {
 	if ( function_exists( 'fetch_feed' ) ) {
 		include_once( ABSPATH . WPINC . '/feed.php' );               // include the required file
 		$feed = fetch_feed( 'http://themble.com/feed/rss/' );        // specify the source feed
-		$limit = $feed->get_item_quantity(7);                      // specify number of items
-		$items = $feed->get_items(0, $limit);                      // create an array of items
+		$limit = $feed->get_item_quantity(7);                        // specify number of items
+		$items = $feed->get_items(0, $limit);                        // create an array of items
 	}
 	if ($limit == 0) echo '<div>The RSS Feed is either empty or unavailable.</div>';   // fallback message
 	else foreach ($items as $item) { ?>

+ 114 - 114
library/bones.php

@@ -21,33 +21,33 @@ add_action( 'after_setup_theme', 'bones_ahoy', 16 );
 
 function bones_ahoy() {
 
-    // launching operation cleanup
-    add_action( 'init', 'bones_head_cleanup' );
-    // remove WP version from RSS
-    add_filter( 'the_generator', 'bones_rss_version' );
-    // remove pesky injected css for recent comments widget
-    add_filter( 'wp_head', 'bones_remove_wp_widget_recent_comments_style', 1 );
-    // clean up comment styles in the head
-    add_action( 'wp_head', 'bones_remove_recent_comments_style', 1 );
-    // clean up gallery output in wp
-    add_filter( 'gallery_style', 'bones_gallery_style' );
-
-    // enqueue base scripts and styles
-    add_action( 'wp_enqueue_scripts', 'bones_scripts_and_styles', 999 );
-    // ie conditional wrapper
-
-    // launching this stuff after theme setup
-    bones_theme_support();
-
-    // adding sidebars to Wordpress (these are created in functions.php)
-    add_action( 'widgets_init', 'bones_register_sidebars' );
-    // adding the bones search form (created in functions.php)
-    add_filter( 'get_search_form', 'bones_wpsearch' );
-
-    // cleaning up random code around images
-    add_filter( 'the_content', 'bones_filter_ptags_on_images' );
-    // cleaning up excerpt
-    add_filter( 'excerpt_more', 'bones_excerpt_more' );
+	// launching operation cleanup
+	add_action( 'init', 'bones_head_cleanup' );
+	// remove WP version from RSS
+	add_filter( 'the_generator', 'bones_rss_version' );
+	// remove pesky injected css for recent comments widget
+	add_filter( 'wp_head', 'bones_remove_wp_widget_recent_comments_style', 1 );
+	// clean up comment styles in the head
+	add_action( 'wp_head', 'bones_remove_recent_comments_style', 1 );
+	// clean up gallery output in wp
+	add_filter( 'gallery_style', 'bones_gallery_style' );
+
+	// enqueue base scripts and styles
+	add_action( 'wp_enqueue_scripts', 'bones_scripts_and_styles', 999 );
+	// ie conditional wrapper
+
+	// launching this stuff after theme setup
+	bones_theme_support();
+
+	// adding sidebars to Wordpress (these are created in functions.php)
+	add_action( 'widgets_init', 'bones_register_sidebars' );
+	// adding the bones search form (created in functions.php)
+	add_filter( 'get_search_form', 'bones_wpsearch' );
+
+	// cleaning up random code around images
+	add_filter( 'the_content', 'bones_filter_ptags_on_images' );
+	// cleaning up excerpt
+	add_filter( 'excerpt_more', 'bones_excerpt_more' );
 
 } /* end bones ahoy */
 
@@ -90,29 +90,29 @@ function bones_rss_version() { return ''; }
 
 // remove WP version from scripts
 function bones_remove_wp_ver_css_js( $src ) {
-    if ( strpos( $src, 'ver=' ) )
-        $src = remove_query_arg( 'ver', $src );
-    return $src;
+	if ( strpos( $src, 'ver=' ) )
+		$src = remove_query_arg( 'ver', $src );
+	return $src;
 }
 
 // remove injected CSS for recent comments widget
 function bones_remove_wp_widget_recent_comments_style() {
-   if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {
-      remove_filter( 'wp_head', 'wp_widget_recent_comments_style' );
-   }
+	if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {
+		remove_filter( 'wp_head', 'wp_widget_recent_comments_style' );
+	}
 }
 
 // remove injected CSS from recent comments widget
 function bones_remove_recent_comments_style() {
-  global $wp_widget_factory;
-  if (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) {
-    remove_action( 'wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style') );
-  }
+	global $wp_widget_factory;
+	if (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) {
+		remove_action( 'wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style') );
+	}
 }
 
 // remove injected CSS from gallery
 function bones_gallery_style($css) {
-  return preg_replace( "!<style type='text/css'>(.*?)</style>!s", '', $css );
+	return preg_replace( "!<style type='text/css'>(.*?)</style>!s", '', $css );
 }
 
 
@@ -122,42 +122,42 @@ SCRIPTS & ENQUEUEING
 
 // loading modernizr and jquery, and reply script
 function bones_scripts_and_styles() {
-  global $wp_styles; // call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way
-  if (!is_admin()) {
+	global $wp_styles; // call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way
+	if (!is_admin()) {
 
-    // modernizr (without media query polyfill)
-    wp_register_script( 'bones-modernizr', get_stylesheet_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false );
+		// modernizr (without media query polyfill)
+		wp_register_script( 'bones-modernizr', get_stylesheet_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false );
 
-    // register main stylesheet
-    wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/style.css', array(), '', 'all' );
+		// register main stylesheet
+		wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/style.css', array(), '', 'all' );
 
-    // ie-only style sheet
-    wp_register_style( 'bones-ie-only', get_stylesheet_directory_uri() . '/library/css/ie.css', array(), '' );
+		// ie-only style sheet
+		wp_register_style( 'bones-ie-only', get_stylesheet_directory_uri() . '/library/css/ie.css', array(), '' );
 
-    // comment reply script for threaded comments
-    if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
-		wp_enqueue_script( 'comment-reply' );
-    }
+		// comment reply script for threaded comments
+		if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
+			wp_enqueue_script( 'comment-reply' );
+		}
 
-    //adding scripts file in the footer
-    wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true );
+		//adding scripts file in the footer
+		wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true );
 
-    // enqueue styles and scripts
-    wp_enqueue_script( 'bones-modernizr' );
-    wp_enqueue_style( 'bones-stylesheet' );
-    wp_enqueue_style( 'bones-ie-only' );
+		// enqueue styles and scripts
+		wp_enqueue_script( 'bones-modernizr' );
+		wp_enqueue_style( 'bones-stylesheet' );
+		wp_enqueue_style( 'bones-ie-only' );
 
-    $wp_styles->add_data( 'bones-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet
+		$wp_styles->add_data( 'bones-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet
 
-    /*
-    I recommend using a plugin to call jQuery
-    using the google cdn. That way it stays cached
-    and your site will load faster.
-    */
-    wp_enqueue_script( 'jquery' );
-    wp_enqueue_script( 'bones-js' );
+		/*
+		I recommend using a plugin to call jQuery
+		using the google cdn. That way it stays cached
+		and your site will load faster.
+		*/
+		wp_enqueue_script( 'jquery' );
+		wp_enqueue_script( 'bones-js' );
 
-  }
+	}
 }
 
 /*********************
@@ -175,13 +175,13 @@ function bones_theme_support() {
 
 	// wp custom background (thx to @bransonwerner for update)
 	add_theme_support( 'custom-background',
-	    array(
-	    'default-image' => '',  // background image default
-	    'default-color' => '', // background color default (dont add the #)
-	    'wp-head-callback' => '_custom_background_cb',
-	    'admin-head-callback' => '',
-	    'admin-preview-callback' => ''
-	    )
+		array(
+		'default-image' => '',  // background image default
+		'default-color' => '', // background color default (dont add the #)
+		'wp-head-callback' => '_custom_background_cb',
+		'admin-head-callback' => '',
+		'admin-preview-callback' => ''
+		)
 	);
 
 	// rss thingy
@@ -224,36 +224,36 @@ MENUS & NAVIGATION
 // the main menu
 function bones_main_nav() {
 	// display the wp3 menu if available
-    wp_nav_menu(array(
-    	'container' => false,                           // remove nav container
-    	'container_class' => 'menu clearfix',           // class of container (should you choose to use it)
-    	'menu' => __( 'The Main Menu', 'bonestheme' ),  // nav name
-    	'menu_class' => 'nav top-nav clearfix',         // adding custom nav class
-    	'theme_location' => 'main-nav',                 // where it's located in the theme
-    	'before' => '',                                 // before the menu
-        'after' => '',                                  // after the menu
-        'link_before' => '',                            // before each link
-        'link_after' => '',                             // after each link
-        'depth' => 0,                                   // limit the depth of the nav
-    	'fallback_cb' => 'bones_main_nav_fallback'      // fallback function
+	wp_nav_menu(array(
+		'container' => false,                           // remove nav container
+		'container_class' => 'menu clearfix',           // class of container (should you choose to use it)
+		'menu' => __( 'The Main Menu', 'bonestheme' ),  // nav name
+		'menu_class' => 'nav top-nav clearfix',         // adding custom nav class
+		'theme_location' => 'main-nav',                 // where it's located in the theme
+		'before' => '',                                 // before the menu
+		'after' => '',                                  // after the menu
+		'link_before' => '',                            // before each link
+		'link_after' => '',                             // after each link
+		'depth' => 0,                                   // limit the depth of the nav
+		'fallback_cb' => 'bones_main_nav_fallback'      // fallback function
 	));
 } /* end bones main nav */
 
 // the footer menu (should you choose to use one)
 function bones_footer_links() {
 	// display the wp3 menu if available
-    wp_nav_menu(array(
-    	'container' => '',                              // remove nav container
-    	'container_class' => 'footer-links clearfix',   // class of container (should you choose to use it)
-    	'menu' => __( 'Footer Links', 'bonestheme' ),   // nav name
-    	'menu_class' => 'nav footer-nav clearfix',      // adding custom nav class
-    	'theme_location' => 'footer-links',             // where it's located in the theme
-    	'before' => '',                                 // before the menu
-        'after' => '',                                  // after the menu
-        'link_before' => '',                            // before each link
-        'link_after' => '',                             // after each link
-        'depth' => 0,                                   // limit the depth of the nav
-    	'fallback_cb' => 'bones_footer_links_fallback'  // fallback function
+	wp_nav_menu(array(
+		'container' => '',                              // remove nav container
+		'container_class' => 'footer-links clearfix',   // class of container (should you choose to use it)
+		'menu' => __( 'Footer Links', 'bonestheme' ),   // nav name
+		'menu_class' => 'nav footer-nav clearfix',      // adding custom nav class
+		'theme_location' => 'footer-links',             // where it's located in the theme
+		'before' => '',                                 // before the menu
+		'after' => '',                                  // after the menu
+		'link_before' => '',                            // before each link
+		'link_after' => '',                             // after each link
+		'depth' => 0,                                   // limit the depth of the nav
+		'fallback_cb' => 'bones_footer_links_fallback'  // fallback function
 	));
 } /* end bones footer link */
 
@@ -261,12 +261,12 @@ function bones_footer_links() {
 function bones_main_nav_fallback() {
 	wp_page_menu( array(
 		'show_home' => true,
-    	'menu_class' => 'nav top-nav clearfix',      // adding custom nav class
+		'menu_class' => 'nav top-nav clearfix',      // adding custom nav class
 		'include'     => '',
 		'exclude'     => '',
 		'echo'        => true,
-        'link_before' => '',                            // before each link
-        'link_after' => ''                             // after each link
+		'link_before' => '',                            // before each link
+		'link_after' => ''                             // after each link
 	) );
 }
 
@@ -288,18 +288,18 @@ function bones_related_posts() {
 		foreach( $tags as $tag ) { 
 			$tag_arr .= $tag->slug . ',';
 		}
-        $args = array(
-        	'tag' => $tag_arr,
-        	'numberposts' => 5, /* you can change this to show more */
-        	'post__not_in' => array($post->ID)
-     	);
-        $related_posts = get_posts( $args );
-        if($related_posts) {
-        	foreach ( $related_posts as $post ) : setup_postdata( $post ); ?>
-	           	<li class="related_post"><a class="entry-unrelated" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
-	        <?php endforeach; }
-	    else { ?>
-            <?php echo '<li class="no_related_post">' . __( 'No Related Posts Yet!', 'bonestheme' ) . '</li>'; ?>
+		$args = array(
+			'tag' => $tag_arr,
+			'numberposts' => 5, /* you can change this to show more */
+			'post__not_in' => array($post->ID)
+		);
+		$related_posts = get_posts( $args );
+		if($related_posts) {
+			foreach ( $related_posts as $post ) : setup_postdata( $post ); ?>
+				<li class="related_post"><a class="entry-unrelated" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
+			<?php endforeach; }
+		else { ?>
+			<?php echo '<li class="no_related_post">' . __( 'No Related Posts Yet!', 'bonestheme' ) . '</li>'; ?>
 		<?php }
 	}
 	wp_reset_query();
@@ -315,7 +315,7 @@ function bones_page_navi() {
 	global $wp_query;
 	$bignum = 999999999;
 	if ( $wp_query->max_num_pages <= 1 )
-	return;
+		return;
 	
 	echo '<nav class="pagination">';
 	
@@ -340,14 +340,14 @@ RANDOM CLEANUP ITEMS
 
 // remove the p from around imgs (http://css-tricks.com/snippets/wordpress/remove-paragraph-tags-from-around-images/)
 function bones_filter_ptags_on_images($content){
-   return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
+	return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
 }
 
 // This removes the annoying […] to a Read More link
 function bones_excerpt_more($more) {
 	global $post;
 	// edit here if you like
-return '...  <a class="excerpt-read-more" href="'. get_permalink($post->ID) . '" title="'. __( 'Read', 'bonestheme' ) . get_the_title($post->ID).'">'. __( 'Read more &raquo;', 'bonestheme' ) .'</a>';
+	return '...  <a class="excerpt-read-more" href="'. get_permalink($post->ID) . '" title="'. __( 'Read', 'bonestheme' ) . get_the_title($post->ID).'">'. __( 'Read more &raquo;', 'bonestheme' ) .'</a>';
 }
 
 /*

+ 51 - 51
library/custom-post-type.php

@@ -26,7 +26,7 @@ function bones_flush_rewrite_rules() {
 function custom_post_example() { 
 	// creating (registering) the custom type 
 	register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
-	 	// let's now add all the options for this post type
+		// let's now add all the options for this post type
 		array( 'labels' => array(
 			'name' => __( 'Custom Types', 'bonestheme' ), /* This is the Title of the Group */
 			'singular_name' => __( 'Custom Post', 'bonestheme' ), /* This is the individual type */
@@ -56,7 +56,7 @@ function custom_post_example() {
 			'hierarchical' => false,
 			/* the next one is important, it tells what's enabled in the post editor */
 			'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'sticky')
-	 	) /* end of options */
+		) /* end of options */
 	); /* end of register post type */
 	
 	/* this adds your post categories to your custom post type */
@@ -64,7 +64,7 @@ function custom_post_example() {
 	/* this adds your post tags to your custom post type */
 	register_taxonomy_for_object_type( 'post_tag', 'custom_type' );
 	
-} 
+}
 
 	// adding the function to the Wordpress init
 	add_action( 'init', 'custom_post_example');
@@ -75,55 +75,55 @@ function custom_post_example() {
 	*/
 	
 	// now let's add custom categories (these act like categories)
-    register_taxonomy( 'custom_cat', 
-    	array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
-    	array('hierarchical' => true,     /* if this is true, it acts like categories */             
-    		'labels' => array(
-    			'name' => __( 'Custom Categories', 'bonestheme' ), /* name of the custom taxonomy */
-    			'singular_name' => __( 'Custom Category', 'bonestheme' ), /* single taxonomy name */
-    			'search_items' =>  __( 'Search Custom Categories', 'bonestheme' ), /* search title for taxomony */
-    			'all_items' => __( 'All Custom Categories', 'bonestheme' ), /* all title for taxonomies */
-    			'parent_item' => __( 'Parent Custom Category', 'bonestheme' ), /* parent title for taxonomy */
-    			'parent_item_colon' => __( 'Parent Custom Category:', 'bonestheme' ), /* parent taxonomy title */
-    			'edit_item' => __( 'Edit Custom Category', 'bonestheme' ), /* edit custom taxonomy title */
-    			'update_item' => __( 'Update Custom Category', 'bonestheme' ), /* update title for taxonomy */
-    			'add_new_item' => __( 'Add New Custom Category', 'bonestheme' ), /* add new title for taxonomy */
-    			'new_item_name' => __( 'New Custom Category Name', 'bonestheme' ) /* name title for taxonomy */
-    		),
-    		'show_admin_column' => true, 
-    		'show_ui' => true,
-    		'query_var' => true,
-    		'rewrite' => array( 'slug' => 'custom-slug' ),
-    	)
-    );   
-    
+	register_taxonomy( 'custom_cat', 
+		array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
+		array('hierarchical' => true,     /* if this is true, it acts like categories */
+			'labels' => array(
+				'name' => __( 'Custom Categories', 'bonestheme' ), /* name of the custom taxonomy */
+				'singular_name' => __( 'Custom Category', 'bonestheme' ), /* single taxonomy name */
+				'search_items' =>  __( 'Search Custom Categories', 'bonestheme' ), /* search title for taxomony */
+				'all_items' => __( 'All Custom Categories', 'bonestheme' ), /* all title for taxonomies */
+				'parent_item' => __( 'Parent Custom Category', 'bonestheme' ), /* parent title for taxonomy */
+				'parent_item_colon' => __( 'Parent Custom Category:', 'bonestheme' ), /* parent taxonomy title */
+				'edit_item' => __( 'Edit Custom Category', 'bonestheme' ), /* edit custom taxonomy title */
+				'update_item' => __( 'Update Custom Category', 'bonestheme' ), /* update title for taxonomy */
+				'add_new_item' => __( 'Add New Custom Category', 'bonestheme' ), /* add new title for taxonomy */
+				'new_item_name' => __( 'New Custom Category Name', 'bonestheme' ) /* name title for taxonomy */
+			),
+			'show_admin_column' => true, 
+			'show_ui' => true,
+			'query_var' => true,
+			'rewrite' => array( 'slug' => 'custom-slug' ),
+		)
+	);
+	
 	// now let's add custom tags (these act like categories)
-    register_taxonomy( 'custom_tag', 
-    	array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
-    	array('hierarchical' => false,    /* if this is false, it acts like tags */                
-    		'labels' => array(
-    			'name' => __( 'Custom Tags', 'bonestheme' ), /* name of the custom taxonomy */
-    			'singular_name' => __( 'Custom Tag', 'bonestheme' ), /* single taxonomy name */
-    			'search_items' =>  __( 'Search Custom Tags', 'bonestheme' ), /* search title for taxomony */
-    			'all_items' => __( 'All Custom Tags', 'bonestheme' ), /* all title for taxonomies */
-    			'parent_item' => __( 'Parent Custom Tag', 'bonestheme' ), /* parent title for taxonomy */
-    			'parent_item_colon' => __( 'Parent Custom Tag:', 'bonestheme' ), /* parent taxonomy title */
-    			'edit_item' => __( 'Edit Custom Tag', 'bonestheme' ), /* edit custom taxonomy title */
-    			'update_item' => __( 'Update Custom Tag', 'bonestheme' ), /* update title for taxonomy */
-    			'add_new_item' => __( 'Add New Custom Tag', 'bonestheme' ), /* add new title for taxonomy */
-    			'new_item_name' => __( 'New Custom Tag Name', 'bonestheme' ) /* name title for taxonomy */
-    		),
-    		'show_admin_column' => true,
-    		'show_ui' => true,
-    		'query_var' => true,
-    	)
-    ); 
-    
-    /*
-    	looking for custom meta boxes?
-    	check out this fantastic tool:
-    	https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress
-    */
+	register_taxonomy( 'custom_tag', 
+		array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
+		array('hierarchical' => false,    /* if this is false, it acts like tags */
+			'labels' => array(
+				'name' => __( 'Custom Tags', 'bonestheme' ), /* name of the custom taxonomy */
+				'singular_name' => __( 'Custom Tag', 'bonestheme' ), /* single taxonomy name */
+				'search_items' =>  __( 'Search Custom Tags', 'bonestheme' ), /* search title for taxomony */
+				'all_items' => __( 'All Custom Tags', 'bonestheme' ), /* all title for taxonomies */
+				'parent_item' => __( 'Parent Custom Tag', 'bonestheme' ), /* parent title for taxonomy */
+				'parent_item_colon' => __( 'Parent Custom Tag:', 'bonestheme' ), /* parent taxonomy title */
+				'edit_item' => __( 'Edit Custom Tag', 'bonestheme' ), /* edit custom taxonomy title */
+				'update_item' => __( 'Update Custom Tag', 'bonestheme' ), /* update title for taxonomy */
+				'add_new_item' => __( 'Add New Custom Tag', 'bonestheme' ), /* add new title for taxonomy */
+				'new_item_name' => __( 'New Custom Tag Name', 'bonestheme' ) /* name title for taxonomy */
+			),
+			'show_admin_column' => true,
+			'show_ui' => true,
+			'query_var' => true,
+		)
+	);
+	
+	/*
+		looking for custom meta boxes?
+		check out this fantastic tool:
+		https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress
+	*/
 	
 
 ?>

+ 65 - 65
library/js/scripts.js

@@ -11,60 +11,60 @@ slow the page load.
 
 // IE8 ployfill for GetComputed Style (for Responsive Script below)
 if (!window.getComputedStyle) {
-    window.getComputedStyle = function(el, pseudo) {
-        this.el = el;
-        this.getPropertyValue = function(prop) {
-            var re = /(\-([a-z]){1})/g;
-            if (prop == 'float') prop = 'styleFloat';
-            if (re.test(prop)) {
-                prop = prop.replace(re, function () {
-                    return arguments[2].toUpperCase();
-                });
-            }
-            return el.currentStyle[prop] ? el.currentStyle[prop] : null;
-        }
-        return this;
-    }
+	window.getComputedStyle = function(el, pseudo) {
+		this.el = el;
+		this.getPropertyValue = function(prop) {
+			var re = /(\-([a-z]){1})/g;
+			if (prop == 'float') prop = 'styleFloat';
+			if (re.test(prop)) {
+				prop = prop.replace(re, function () {
+					return arguments[2].toUpperCase();
+				});
+			}
+			return el.currentStyle[prop] ? el.currentStyle[prop] : null;
+		}
+		return this;
+	}
 }
 
 // as the page loads, call these scripts
 jQuery(document).ready(function($) {
 
-    /*
-    Responsive jQuery is a tricky thing.
-    There's a bunch of different ways to handle
-    it, so be sure to research and find the one
-    that works for you best.
-    */
-    
-    /* getting viewport width */
-    var responsive_viewport = $(window).width();
-    
-    /* if is below 481px */
-    if (responsive_viewport < 481) {
-    
-    } /* end smallest screen */
-    
-    /* if is larger than 481px */
-    if (responsive_viewport > 481) {
-        
-    } /* end larger than 481px */
-    
-    /* if is above or equal to 768px */
-    if (responsive_viewport >= 768) {
-    
-        /* load gravatars */
-        $('.comment img[data-gravatar]').each(function(){
-            $(this).attr('src',$(this).attr('data-gravatar'));
-        });
-        
-    }
-    
-    /* off the bat large screen actions */
-    if (responsive_viewport > 1030) {
-        
-    }
-    
+	/*
+	Responsive jQuery is a tricky thing.
+	There's a bunch of different ways to handle
+	it, so be sure to research and find the one
+	that works for you best.
+	*/
+	
+	/* getting viewport width */
+	var responsive_viewport = $(window).width();
+	
+	/* if is below 481px */
+	if (responsive_viewport < 481) {
+	
+	} /* end smallest screen */
+	
+	/* if is larger than 481px */
+	if (responsive_viewport > 481) {
+	
+	} /* end larger than 481px */
+	
+	/* if is above or equal to 768px */
+	if (responsive_viewport >= 768) {
+	
+		/* load gravatars */
+		$('.comment img[data-gravatar]').each(function(){
+			$(this).attr('src',$(this).attr('data-gravatar'));
+		});
+		
+	}
+	
+	/* off the bat large screen actions */
+	if (responsive_viewport > 1030) {
+	
+	}
+	
 	
 	// add all your scripts here
 	
@@ -79,28 +79,28 @@ jQuery(document).ready(function($) {
 (function(w){
 	// This fix addresses an iOS bug, so return early if the UA claims it's something else.
 	if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){ return; }
-    var doc = w.document;
-    if( !doc.querySelector ){ return; }
-    var meta = doc.querySelector( "meta[name=viewport]" ),
-        initialContent = meta && meta.getAttribute( "content" ),
-        disabledZoom = initialContent + ",maximum-scale=1",
-        enabledZoom = initialContent + ",maximum-scale=10",
-        enabled = true,
+	var doc = w.document;
+	if( !doc.querySelector ){ return; }
+	var meta = doc.querySelector( "meta[name=viewport]" ),
+		initialContent = meta && meta.getAttribute( "content" ),
+		disabledZoom = initialContent + ",maximum-scale=1",
+		enabledZoom = initialContent + ",maximum-scale=10",
+		enabled = true,
 		x, y, z, aig;
-    if( !meta ){ return; }
-    function restoreZoom(){
-        meta.setAttribute( "content", enabledZoom );
-        enabled = true; }
-    function disableZoom(){
-        meta.setAttribute( "content", disabledZoom );
-        enabled = false; }
-    function checkTilt( e ){
+	if( !meta ){ return; }
+	function restoreZoom(){
+		meta.setAttribute( "content", enabledZoom );
+		enabled = true; }
+	function disableZoom(){
+		meta.setAttribute( "content", disabledZoom );
+		enabled = false; }
+	function checkTilt( e ){
 		aig = e.accelerationIncludingGravity;
 		x = Math.abs( aig.x );
 		y = Math.abs( aig.y );
 		z = Math.abs( aig.z );
 		// If portrait orientation and in one of the danger zones
-        if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
+		if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
 			if( enabled ){ disableZoom(); } }
 		else if( !enabled ){ restoreZoom(); } }
 	w.addEventListener( "orientationchange", restoreZoom, false );