PluginProbe
Catch Web Tools / 0.1
Catch Web Tools v0.1
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / admin / modules / webmaster.php

webmaster.php in Catch Web Tools 0.1, at admin/modules/webmaster.php

123 lines 7.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Admin
4 * @sub-package Admin Webmaster Display
5 */
6 ?>
7
8 <div id="catchwebtools" class="wrap">
9 <?php include ( 'header.php' ); ?>
10 <?php include ( 'navigation.php' ); ?>
11 <div id="webmaster">
12 <form method="post" action="options.php">
13 <?php settings_fields( 'webmaster-tools-group' ); ?>
14
15 <?php $settings = get_catchwebtools_options( 'catchwebtools_webmaster' ); ?>
16
17 <div class="option-container">
18 <h3 class="option-toggle option-active"><a href="#"><?php _e( 'Enable Webmaster Module', 'catchwebtools' ); ?></a></h3>
19
20 <div class="option-content inside open">
21 <table class="form-table">
22 <tbody>
23 <tr>
24 <th scope="row"><?php _e( 'Enable Webmaster Module', 'catchwebtools' ); ?></th>
25 <td>
26 <?php
27 $text = ( ! empty ( $settings['status'] ) && $settings['status'] ) ? 'checked' : '';
28 echo '<input type="checkbox" ' .$text. ' name="catchwebtools_webmaster[status]" value="1"/>&nbsp;&nbsp;'. __( 'Check to Enable', 'catchwebtools' );
29 ?>
30 </td>
31 </tr>
32 </tbody>
33 </table>
34
35 <?php submit_button('Save Changes'); ?>
36 </div>
37
38 <h3 class="option-toggle"><a href="#"><?php _e( 'Header and Footer Scripts', 'catchwebtools' ); ?></a></h3>
39
40 <div class="option-content inside">
41 <table class="form-table">
42 <tbody>
43 <tr>
44 <th scope="row">
45 <?php echo __( 'Enter scripts or code you would like output to', 'catchwebtools' ) . '<code>wp_head()</code>:'?>
46 </th>
47 <td>
48 <?php
49 $text = ( ! empty ( $settings['header'] ) ) ? esc_html( $settings['header'] ) : '';
50 echo '<textarea cols="80" rows="7" name="catchwebtools_webmaster[header]">' .$text. '</textarea>';
51 echo '<p class="description">'. __( 'The', 'catchwebtools' ) .'<code>wp_head()</code>'. __( 'hook executes immediately before the closing </head> tag in the document source.' , 'catchwebtools' ) .'</p>';
52 ?>
53 </td>
54 </tr>
55
56 <tr>
57 <th scope="row">
58 <?php echo __( 'Enter scripts or code you would like output to', 'catchwebtools' ) . '<code>wp_footer()</code>:'?>
59 </th>
60 <td>
61 <?php
62 $text = ( ! empty ( $settings['footer'] ) ) ? esc_html( $settings['footer'] ) : '';
63 echo '<textarea cols="80" rows="7" name="catchwebtools_webmaster[footer]">' .$text. '</textarea>';
64 echo '<p class="description">'. __( 'The', 'catchwebtools' ) .'<code>wp_footer()</code>'. __( 'hook executes immediately before the closing </body> tag in the document source.' , 'catchwebtools' ) .'</p>';
65 ?>
66 </td>
67 </tr>
68 </tbody>
69 </table>
70 <?php submit_button('Save Changes'); ?>
71 </div>
72
73 <h3 class="option-toggle"><a href="#"><?php _e( 'Site Verification', 'catchwebtools' ); ?></a></h3>
74
75 <div class="option-content inside">
76 <?php echo '<p class="description">'. __( 'You can use the boxes below to verify with different Webmaster Tools. If your site is already verified, you can skip this section. Enter the verify meta values for' , 'catchwebtools' ) .':</p>';?>
77
78 <table class="form-table">
79 <tbody>
80 <tr>
81 <th scope="row">
82 <a target="_blank" href="https://www.google.com/webmasters/tools/dashboard?hl=en&amp;siteUrl='<?php echo urlencode( get_bloginfo( 'url' ) )?>%2F"> <?php _e( 'Google Webmaster Tools', 'catchwebtools' )?> </a>
83 </th>
84 <td>
85 <?php
86 $text = ( ! empty ( $settings['google-site-verification'] ) ) ? esc_attr( $settings['google-site-verification'] ) : '';
87 echo '<input type="text" size="80" name="catchwebtools_webmaster[google-site-verification]" value="' .$text. '" />' . __( 'Enter your Google ID number only', 'catchwebtools' ) ;
88 ?>
89 </td>
90 </tr>
91
92 <tr>
93 <th scope="row">
94 <a target="_blank" href="http://www.bing.com/webmaster/?rfp=1#/Dashboard/?url='<?php echo str_replace( 'http://', '', get_bloginfo( 'url' ) )?>"><?php _e( 'Bing Webmaster Tools', 'catchwebtools' )?></a>
95 </th>
96 <td>
97 <?php
98 $text = ( ! empty ( $settings['msvalidate.01'] ) ) ? esc_attr( $settings['msvalidate.01'] ) : '';
99 echo '<input type="text" size="80" name="catchwebtools_webmaster[msvalidate.01]" value="' .$text. '" />'. __( 'Enter your Bing ID number only', 'catchwebtools' ) ;
100 ?>
101 </td>
102 </tr>
103
104 <tr>
105 <th scope="row">
106 <a target="_blank" href="http://www.alexa.com/pro/subscription"><?php _e( 'Alexa Verification ID', 'catchwebtools' )?></a>
107 </th>
108 <td>
109 <?php
110 $text = ( ! empty ( $settings['alexaVerifyID'] ) ) ? esc_attr( $settings['alexaVerifyID'] ) : '';
111 echo '<input type="text" size="80" name="catchwebtools_webmaster[alexaVerifyID]" value="' .$text. '" />'. __( 'Enter your Alexa ID number only', 'catchwebtools' ) ;
112 ?>
113 </td>
114 </tr>
115 </tbody>
116 </table>
117
118 <?php submit_button('Save Changes'); ?>
119 </div>
120 </div>
121 </form>
122 </div><!-- #webmaster -->
123 </div><!-- .wrap -->