P2 Theme

add title and edit link (dashboard edit) to lists and single post:
inc/entry.php, ln 26

<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

inc/entry.php, ln 51

				if ( current_user_can( 'edit_post', get_the_ID() ) ) : ?> | <a href="<?php echo ( get_edit_post_link( get_the_ID() ) ); ?>" class="edit-post-link" rel="<?php the_ID(); ?>"><?php _e( 'Edit', 'p2' ); ?></a> <?php edit_post_link('[edit2]', '| <span style="font:italic 12px serif;">', '</span>'); ?>

(XXX not working yet) prevent new title when using front-end edit:
functions.php, ln 222:

function p2_the_title( $before = '&lt;h2&gt;', $after = '&lt;/h2&gt;', $echo = true ) {
	global $post;
if ( ! $post-&gt;post_title ) :

front-end editor seems to be visual: messes up code.

Comments

Leave a Reply