/wp-content/plugins/insert-headers-and-footers/views/settings.php

https://bitbucket.org/carloskikea/helpet · PHP · 57 lines · 53 code · 4 blank · 0 comment · 2 complexity · b07ab206474cff7cb5c2ea2839b0adfe MD5 · raw file

  1. <div class="wrap">
  2. <h2><?php echo $this->plugin->displayName; ?> &raquo; <?php _e( 'Settings', $this->plugin->name ); ?></h2>
  3. <?php
  4. if ( isset( $this->message ) ) {
  5. ?>
  6. <div class="updated fade"><p><?php echo $this->message; ?></p></div>
  7. <?php
  8. }
  9. if ( isset( $this->errorMessage ) ) {
  10. ?>
  11. <div class="error fade"><p><?php echo $this->errorMessage; ?></p></div>
  12. <?php
  13. }
  14. ?>
  15. <div id="poststuff">
  16. <div id="post-body" class="metabox-holder columns-2">
  17. <!-- Content -->
  18. <div id="post-body-content">
  19. <div id="normal-sortables" class="meta-box-sortables ui-sortable">
  20. <div class="postbox">
  21. <h3 class="hndle"><?php _e( 'Settings', $this->plugin->name ); ?></h3>
  22. <div class="inside">
  23. <form action="options-general.php?page=<?php echo $this->plugin->name; ?>" method="post">
  24. <p>
  25. <label for="ihaf_insert_header"><strong><?php _e( 'Scripts in Header', $this->plugin->name ); ?></strong></label>
  26. <textarea name="ihaf_insert_header" id="ihaf_insert_header" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_header']; ?></textarea>
  27. <?php _e( 'These scripts will be printed in the <code>&lt;head&gt;</code> section.', $this->plugin->name ); ?>
  28. </p>
  29. <p>
  30. <label for="ihaf_insert_footer"><strong><?php _e( 'Scripts in Footer', $this->plugin->name ); ?></strong></label>
  31. <textarea name="ihaf_insert_footer" id="ihaf_insert_footer" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_footer']; ?></textarea>
  32. <?php _e( 'These scripts will be printed above the <code>&lt;/body&gt;</code> tag.', $this->plugin->name ); ?>
  33. </p>
  34. <?php wp_nonce_field( $this->plugin->name, $this->plugin->name.'_nonce' ); ?>
  35. <p>
  36. <input name="submit" type="submit" name="Submit" class="button button-primary" value="<?php _e( 'Save', $this->plugin->name ); ?>" />
  37. </p>
  38. </form>
  39. </div>
  40. </div>
  41. <!-- /postbox -->
  42. </div>
  43. <!-- /normal-sortables -->
  44. </div>
  45. <!-- /post-body-content -->
  46. <!-- Sidebar -->
  47. <div id="postbox-container-1" class="postbox-container">
  48. <?php require_once( $this->plugin->folder . '/views/sidebar.php' ); ?>
  49. </div>
  50. <!-- /postbox-container -->
  51. </div>
  52. </div>
  53. </div>