PluginProbe
Catch Web Tools / 3.2
Catch Web Tools v3.2
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 3.2, at admin/modules/webmaster.php

195 lines 11.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if (! defined('ABSPATH')) exit;
5
6 /**
7 * @package Admin
8 * @sub-package Admin Webmaster Display
9 */
10 ?>
11
12 <?php include('header.php'); ?>
13 <div id="webmaster">
14 <div class="content-wrapper">
15 <div class="header">
16 <h3><?php esc_html_e('Webmaster Tools', 'catch-web-tools'); ?></h3>
17 </div> <!-- .header -->
18 <div class="content">
19 <form method="post" action="options.php">
20 <?php settings_fields('webmaster-tools-group'); ?>
21
22 <?php $settings = catchwebtools_get_options('catchwebtools_webmaster'); ?>
23
24 <div class="option-container">
25 <h3 class="option-toggle option-active"><a href="#"><?php esc_html_e('Enable Webmaster Module', 'catch-web-tools'); ?></a></h3>
26
27 <div class="option-content inside open">
28 <table class="form-table">
29 <tbody>
30 <tr>
31 <th scope="row"><?php esc_html_e('Enable Webmaster Module', 'catch-web-tools'); ?></th>
32 <td>
33 <?php
34 $text = (! empty($settings['status']) && $settings['status']) ? 'checked' : '';
35 echo '<input type="checkbox" ' . esc_attr($text) . ' name="catchwebtools_webmaster[status]" value="1"/>&nbsp;&nbsp;' . esc_html__('Check to Enable', 'catch-web-tools');
36 ?>
37 </td>
38 </tr>
39 </tbody>
40 </table>
41
42 <?php submit_button('Save Changes'); ?>
43 </div>
44
45 <h3 class="option-toggle"><a href="#"><?php esc_html_e('Feed Redirect / Custom Feeds', 'catch-web-tools'); ?></a></h3>
46
47 <div class="option-content inside">
48 <table class="form-table">
49 <tbody>
50 <tr>
51 <th scope="row"><?php esc_html_e('Enter your custom feed URL:', 'catch-web-tools'); ?></th>
52 <td>
53 <?php
54 $text = (! empty($settings['feed_uri'])) ? $settings['feed_uri'] : '';
55 ?>
56
57 <input type="text" name="catchwebtools_webmaster[feed_uri]" id="catchwebtools_webmaster[feed_uri]" value="<?php echo esc_attr($text); ?>" size="80" />
58
59 </td>
60 </tr>
61
62 <tr>
63 <th scope="row"><?php esc_html_e('Enter your custom comments feed URL:', 'catch-web-tools'); ?></th>
64 <td>
65 <?php
66 $text = (! empty($settings['comments_feed_uri'])) ? $settings['comments_feed_uri'] : '';
67 ?>
68
69 <input type="text" name="catchwebtools_webmaster[comments_feed_uri]" id="catchwebtools_webmaster[comments_feed_uri]" value="<?php echo esc_attr($text); ?>" size="80" />
70 </td>
71 </tr>
72 <tr>
73 <td colspan="2">
74 <p class="description"><?php printf(esc_html__('If your custom feed(s) are not handled by Feedblitz or Feedburner, do not use the redirect options.', 'catch-web-tools')); ?></p>
75 </td>
76 </tr>
77 </tbody>
78 </table>
79
80 <?php submit_button('Save Changes'); ?>
81 </div>
82
83 <h3 class="option-toggle"><a href="#"><?php esc_html_e('Header and Footer Scripts', 'catch-web-tools'); ?></a></h3>
84
85 <div class="option-content inside">
86 <table class="form-table">
87 <tbody>
88 <tr>
89 <th scope="row">
90 <?php echo esc_html__('Enter scripts or code you would like output to', 'catch-web-tools') . '<code>wp_head()</code>:' ?>
91 </th>
92 <td>
93 <?php
94 $text = (! empty($settings['header'])) ? $settings['header'] : '';
95 echo '<textarea cols="80" rows="7" name="catchwebtools_webmaster[header]">' . esc_textarea($text) . '</textarea>';
96 echo '<p class="description">' . esc_html__('The', 'catch-web-tools') . '<code>wp_head()</code>' . esc_html__('hook executes immediately before the closing </head> tag in the document source.', 'catch-web-tools') . '</p>';
97 ?>
98 </td>
99 </tr>
100
101 <tr>
102 <th scope="row">
103 <?php echo esc_html__('Enter scripts or code you would like output to', 'catch-web-tools') . '<code>wp_footer()</code>:' ?>
104 </th>
105 <td>
106 <?php
107 $text = (! empty($settings['footer'])) ? $settings['footer'] : '';
108 echo '<textarea cols="80" rows="7" name="catchwebtools_webmaster[footer]">' . esc_html($text) . '</textarea>';
109 echo '<p class="description">' . esc_html__('The', 'catch-web-tools') . '<code>wp_footer()</code>' . esc_html__('hook executes immediately before the closing </body> tag in the document source.', 'catch-web-tools') . '</p>';
110 ?>
111 </td>
112 </tr>
113 </tbody>
114 </table>
115 <?php submit_button('Save Changes'); ?>
116 </div>
117
118 <h3 class="option-toggle"><a href="#"><?php esc_html_e('Site Verification', 'catch-web-tools'); ?></a></h3>
119
120 <div class="option-content inside">
121 <?php echo '<p class="description">' . esc_html__('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', 'catch-web-tools') . ':</p>'; ?>
122
123 <table class="form-table">
124 <tbody>
125 <tr>
126 <th scope="row">
127 <a target="_blank" href="https://www.google.com/webmasters/tools/dashboard?hl=en&amp;siteUrl='<?php echo urlencode(get_bloginfo('url')) ?>%2F"> <?php esc_html_e('Google Webmaster Tools', 'catch-web-tools') ?> </a>
128 </th>
129 <td>
130 <?php
131 $text = (! empty($settings['google-site-verification'])) ? $settings['google-site-verification'] : '';
132 echo '<input type="text" size="80" name="catchwebtools_webmaster[google-site-verification]" value="' . esc_attr($text) . '" /><span>' . esc_html__('Enter your Google ID only', 'catch-web-tools') . '</span>';
133 ?>
134 </td>
135 </tr>
136
137 <tr>
138 <th scope="row">
139 <a target="_blank" href="https://www.bing.com/webmaster/?rfp=1#/Dashboard/?url='<?php echo esc_html(str_replace('http://', '', get_bloginfo('url'))) ?>"><?php esc_html_e('Bing Webmaster Tools', 'catch-web-tools') ?></a>
140 </th>
141 <td>
142 <?php
143 $text = (! empty($settings['msvalidate.01'])) ? $settings['msvalidate.01'] : '';
144 echo '<input type="text" size="80" name="catchwebtools_webmaster[msvalidate.01]" value="' . esc_attr($text) . '" /><span>' . esc_html__('Enter your Bing ID only', 'catch-web-tools') . '</span>';
145 ?>
146 </td>
147 </tr>
148
149 <tr>
150 <th scope="row">
151 <a target="_blank" href="https://www.alexa.com/pro/subscription"><?php esc_html_e('Alexa Verification ID', 'catch-web-tools') ?></a>
152 </th>
153 <td>
154 <?php
155 $text = (! empty($settings['alexaVerifyID'])) ? $settings['alexaVerifyID'] : '';
156 echo '<input type="text" size="80" name="catchwebtools_webmaster[alexaVerifyID]" value="' . esc_attr($text) . '" /><span>' . esc_html__('Enter your Alexa ID only', 'catch-web-tools') . '</span>';
157 ?>
158 </td>
159 </tr>
160
161 <tr>
162 <th scope="row">
163 <a target="_blank" href="https://help.pinterest.com/en/articles/confirm-your-website"><?php esc_html_e('Pinterest Site Verification', 'catch-web-tools') ?></a>
164 </th>
165 <td>
166 <?php
167 $text = (! empty($settings['p:domain_verify'])) ? $settings['p:domain_verify'] : '';
168 echo '<input type="text" size="80" name="catchwebtools_webmaster[p:domain_verify]" value="' . esc_attr($text) . '" /><span>' . esc_html__('Enter your Pinterest Site Verification ID only', 'catch-web-tools') . '</span>';
169 ?>
170 </td>
171 </tr>
172
173 <tr>
174 <th scope="row">
175 <a target="_blank" href="https://help.yandex.com/webmaster/service/rights.xml#how-to"><?php esc_html_e('Yandex Webmaster Tools', 'catch-web-tools') ?></a>
176 </th>
177 <td>
178 <?php
179 $text = (! empty($settings['yandexverify'])) ? $settings['yandexverify'] : '';
180 echo '<input type="text" size="80" name="catchwebtools_webmaster[yandexverify]" value="' . esc_attr($text) . '" /><span>' . esc_html__('Enter your Yandex Verification ID only', 'catch-web-tools') . '</span>';
181 ?>
182 </td>
183 </tr>
184 </tbody>
185 </table>
186
187 <?php submit_button('Save Changes'); ?>
188 </div>
189 </div>
190 </form>
191 </div><!-- .content -->
192 </div><!-- .content-wrapper -->
193 </div><!-- #customcss -->
194
195 <?php include('main-footer.php'); ?>