1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10: $plugin_is_filter = 600 | THEME_PLUGIN;
11: $plugin_description = gettext("Places a Google Site Verification metatag into the header of your site’s pages.");
12: $plugin_author = "Stephen Billard (sbillard)";
13: $option_interface = 'googleVerifyOptions';
14:
15: if (getOption('google-site-verification')) {
16: zp_register_filter('theme_head', 'googleVerifyHead');
17: }
18:
19: 20: 21: 22:
23: class googleVerifyOptions {
24:
25: 26: 27: 28: 29:
30: function __construct() {
31: setOptionDefault('google-site-verification', '');
32: }
33:
34: 35: 36: 37: 38:
39: function getOptionsSupported() {
40: return array(gettext('Verification content') => array('key' => 'google-site-verification', 'type' => OPTION_TYPE_TEXTBOX,
41: 'desc' => gettext('Insert the <em>content</em> portion of the meta tag supplied by Google.'))
42: );
43: }
44:
45: function handleOption($option, $currentValue) {
46:
47: }
48:
49: }
50:
51: function googleVerifyHead() {
52: ?>
53: <meta name="google-site-verification" content="<?php echo getOption('google-site-verification') ?>" />
54: <?php
55: }
56: ?>