349 | | <?php |
350 | | if ( isset( $_GET['addnew'] ) ) { |
351 | | ?> |
352 | | <a href="widgets.php" class="button alignleft"><?php _e( 'Cancel' ); ?></a> |
353 | | <?php |
354 | | } else { |
355 | | submit_button( __( 'Delete' ), 'alignleft', 'removewidget', false ); |
356 | | } |
357 | | submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); |
358 | | ?> |
359 | | <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr( $widget_id ); ?>" /> |
360 | | <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr( $id_base ); ?>" /> |
361 | | <input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr( $multi_number ); ?>" /> |
362 | | <?php wp_nonce_field( "save-delete-widget-$widget_id" ); ?> |
363 | | <br class="clear" /> |
| 349 | <div class="alignleft"> |
| 350 | <?php if ( ! isset( $_GET['addnew'] ) ) : ?> |
| 351 | <input type="submit" name="removewidget" id="removewidget" class="button-link button-link-delete widget-control-remove" value="<?php _e( 'Delete' ); ?>" /> |
| 352 | <span class="widget-control-close-wrapper"> |
| 353 | | |
| 354 | <a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); ?></a> |
| 355 | </span> |
| 356 | <?php else : ?> |
| 357 | <a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); ?></a> |
| 358 | <?php endif; ?> |
| 359 | </div> |
| 360 | <?php submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); ?> |
| 361 | <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr( $widget_id ); ?>" /> |
| 362 | <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr( $id_base ); ?>" /> |
| 363 | <input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr( $multi_number ); ?>" /> |
| 364 | <?php wp_nonce_field( "save-delete-widget-$widget_id" ); ?> |
| 365 | <br class="clear" /> |