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( 'init', 'create_book_taxonomies', 0 ); | |
//create two taxonomies, genres and writers for the post type "book" | |
function create_book_taxonomies() | |
{ | |
// Add new taxonomy, make it hierarchical (like categories) | |
$labels = array( | |
'name' => _x( 'Genres', 'taxonomy general name' ), | |
'singular_name' => _x( 'Genre', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Genres' ), |
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
#colorbox, | |
#cboxOverlay, | |
#cboxWrapper { position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} | |
#cboxOverlay { position:fixed; width:100%; height:100%;} | |
#cboxMiddleLeft, | |
#cboxBottomLeft {clear:left;} | |
#cboxContent { position:relative;} | |
#cboxLoadedContent { overflow:auto;} | |
#cboxTitle { margin:0;} | |
#cboxLoadingOverlay, |
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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" > <![endif]--> | |
<!--[if IE 7 ]> <html class="ie ie7 no-js" > <![endif]--> | |
<!--[if IE 8 ]> <html class="ie ie8 no-js" > <![endif]--> | |
<!--[if IE 9 ]> <html class="ie ie9 no-js" > <![endif]--> | |
<!--[if gt IE 9]><!--><html class="no-js" ><!--<![endif]--> | |
<head> |
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
/** | |
* Nice Tabs | |
*/ | |
.tabrow { | |
position: relative; | |
text-align: center; | |
list-style: none; | |
margin: 0; | |
padding: 0; |
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 () { | |
var channels = {}; | |
this.subscribe = function (channel, subscription) { | |
if (!channels[channel]) channels[channel] = []; | |
channels[channel].push(subscription); | |
}; | |
this.publish = function (channel) { | |
if (!channels[channel]) return; |
NewerOlder