__( 'Primary Menu', 'woothemes' ) ) );
register_nav_menus( array( 'secondary-menu' => __( 'Secondary Menu', 'woothemes' ) ) );
register_nav_menus( array( 'top-menu' => __( 'Top Menu', 'woothemes' ) ) );
register_nav_menus( array( 'footer-menu' => __( 'Footer Menu', 'woothemes' ) ) );
}
/*-----------------------------------------------------------------------------------*/
/* Page navigation */
/*-----------------------------------------------------------------------------------*/
if (!function_exists( 'woo_pagenav')) {
function woo_pagenav() {
global $woo_options;
// If the user has set the option to use simple paging links, display those. By default, display the pagination.
if ( array_key_exists( 'woo_pagination_type', $woo_options ) && $woo_options[ 'woo_pagination_type' ] == 'simple' ) {
if ( get_next_posts_link() || get_previous_posts_link() ) {
?>
'. __( '
← Older posts', 'woothemes' ) . '' ); ?>
'. __( 'Newer posts
→', 'woothemes' ) . '' ); ?>
_x('Slides', 'post type general name', 'woothemes', 'woothemes'),
'singular_name' => _x('Slide', 'post type singular name', 'woothemes'),
'add_new' => _x('Add New', 'slide', 'woothemes'),
'add_new_item' => __('Add New Slide', 'woothemes'),
'edit_item' => __('Edit Slide', 'woothemes'),
'new_item' => __('New Slide', 'woothemes'),
'view_item' => __('View Slide', 'woothemes'),
'search_items' => __('Search Slides', 'woothemes'),
'not_found' => __('No slides found', 'woothemes'),
'not_found_in_trash' => __('No slides found in Trash', 'woothemes'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => false,
'publicly_queryable' => false,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_icon' => get_template_directory_uri() .'/functions/images/option-icon-slider.png',
'menu_position' => null,
'supports' => array('title','editor','thumbnail'/*'author','thumbnail','excerpt','comments'*/)
);
register_post_type('slide',$args);
}
/*-----------------------------------------------------------------------------------*/
/* END */
/*-----------------------------------------------------------------------------------*/
?>