PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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