@@ 90-95 (lines=6) @@ | ||
87 | ?> |
|
88 | <script type="text/javascript"> |
|
89 | jQuery( document ).ready( function( $ ) { |
|
90 | <?php if ( ! $post_type || 'post' == $post_type ) { ?> |
|
91 | $( '<option>' ) |
|
92 | .val( 'post2comic' ) |
|
93 | .text( <?php echo json_encode( __( 'Convert to Comic', 'jetpack' ) ); ?> ) |
|
94 | .appendTo( "select[name='action'], select[name='action2']" ); |
|
95 | <?php } ?> |
|
96 | <?php if ( ! $post_type || self::POST_TYPE == $post_type ) { ?> |
|
97 | $( '<option>' ) |
|
98 | .val( 'comic2post' ) |
|
@@ 96-101 (lines=6) @@ | ||
93 | .text( <?php echo json_encode( __( 'Convert to Comic', 'jetpack' ) ); ?> ) |
|
94 | .appendTo( "select[name='action'], select[name='action2']" ); |
|
95 | <?php } ?> |
|
96 | <?php if ( ! $post_type || self::POST_TYPE == $post_type ) { ?> |
|
97 | $( '<option>' ) |
|
98 | .val( 'comic2post' ) |
|
99 | .text( <?php echo json_encode( __( 'Convert to Post', 'jetpack' ) ); ?> ) |
|
100 | .appendTo( "select[name='action'], select[name='action2']" ); |
|
101 | <?php } ?> |
|
102 | ||
103 | $( '#message.jetpack-comic-post-type-conversion' ).remove().insertAfter( $( '.wrap h2:first' ) ).show(); |
|
104 | }); |