Permalink
Browse files

remove new post and new pages links from front end view

  • Loading branch information...
marpa committed Jun 3, 2012
1 parent ea2cadc commit 029459d5ec8eada6a332434b3da2c1d3cf89a6b2
View
@@ -37,21 +37,6 @@
</div>
<?php endif; ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: left; width: 58%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php"><?php _e( 'New Post', '2010-translucence' ); ?></a>
- </div>
-<?php endif; ?>
-
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page"><?php _e( 'New Page', '2010-translucence' ); ?></a>
- </div>
-<?php endif; ?>
-
-
<div style="display: block;">
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
@@ -25,14 +25,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
@@ -25,14 +25,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
View
@@ -24,14 +24,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
View
@@ -23,13 +23,6 @@
<?php print translucence_get_breadcrumbs($post); ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <!-- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a> -->
- </div>
-<?php endif; ?>
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
@@ -23,14 +23,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
View
@@ -24,14 +24,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
View
@@ -24,14 +24,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page">New Page</a>
- </div>
-<?php endif; ?>
-
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
View
@@ -27,15 +27,6 @@
<?php print translucence_toggle_links(); ?>
<?php print translucence_get_breadcrumbs($post); ?>
-
-<?php /* display link to new post if user is at least an author */?>
-<?php if (current_user_can( 'edit_posts' ) && !is_archive() && !is_search()) : ?>
- <div class='post-link' style="float: right; width: 40%;">
- <a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page"><?php _e( 'New Page', '2010-translucence' ); ?></a>
- </div>
-<?php endif; ?>
-
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

0 comments on commit 029459d

Please sign in to comment.