mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Don't show view switcher for hierarhical post types. They don't support it yet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e668e72c84
commit
85740b35de
@ -362,13 +362,18 @@ if ( $is_trash && current_user_can($post_type_object->cap->edit_others_posts) )
|
||||
);
|
||||
echo $page_links_text;
|
||||
?></div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( !$post_type_object->hierarchical ) {
|
||||
?>
|
||||
|
||||
<div class="view-switch">
|
||||
<a href="<?php echo esc_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" width="20" height="20" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a>
|
||||
<a href="<?php echo esc_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" width="20" height="20" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user