~antivirtel/brs-wp/trunk

« back to all changes in this revision

Viewing changes to wp-content/plugins/google/lib/class_wdgpo_admin_pages.php

  • Committer: Bortnyák Roland
  • Date: 2011-11-19 15:41:19 UTC
  • Revision ID: antivirtel@gmail.com-20111119154119-2yncj84gb2gaqs2t
Google +1 (WPMU) 1.2-re frissítése.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                        $goback = add_query_arg('settings-updated', 'true',  wp_get_referer());
31
31
                        wp_redirect($goback);
32
32
                }
33
 
                add_submenu_page('settings.php', 'Google +1', 'Google +1', 'manage_network_options', 'wdgpo', array($this, 'create_admin_page'));
 
33
                add_submenu_page('settings.php', 'Google+', 'Google+', 'manage_network_options', 'wdgpo', array($this, 'create_admin_page'));
34
34
        }
35
35
 
36
36
        function register_settings () {
44
44
                add_settings_field('wdgpo_skip_post_types', __('Do <strong>NOT</strong> Google +1 box for these post types', 'wdgpo'), array($form, 'create_skip_post_types_box'), 'wdgpo_options_page', 'wdgpo_settings');
45
45
                add_settings_field('wdgpo_language', __('Language', 'wdgpo'), array($form, 'create_language_box'), 'wdgpo_options_page', 'wdgpo_settings');
46
46
                add_settings_field('wdgpo_front_page', __('Show +1 on Front Page', 'wdgpo'), array($form, 'create_front_page_box'), 'wdgpo_options_page', 'wdgpo_settings');
 
47
                add_settings_field('wdgpo_footer_render', __('Add scripts to my footer', 'wdgpo'), array($form, 'create_footer_render_box'), 'wdgpo_options_page', 'wdgpo_settings');
 
48
 
 
49
                add_settings_section('wdgpo_gplus_pages', __('Google+ Pages integration', 'wdgpo'), create_function('', ''), 'wdgpo_options_page');
 
50
                add_settings_field('wdgpo_gplus_page_id', __('My Google+ page ID', 'wdgpo'), array($form, 'create_gplus_page_id_box'), 'wdgpo_options_page', 'wdgpo_gplus_pages');
 
51
 
 
52
                add_settings_section('wdgpo_analytics', __('Google Analytics integration', 'wdgpo'), create_function('', ''), 'wdgpo_options_page');
 
53
                add_settings_field('wdgpo_analytics_enable', __('Enable Google Analytics integration', 'wdgpo'), array($form, 'create_enable_analytics_box'), 'wdgpo_options_page', 'wdgpo_analytics');
 
54
                add_settings_field('wdgpo_analytics_category', __('Analytics category', 'wdgpo'), array($form, 'create_analytics_category_box'), 'wdgpo_options_page', 'wdgpo_analytics');
47
55
        }
48
56
 
49
57
        function create_blog_admin_menu_entry () {
50
 
                add_options_page('Google +1', 'Google +1', 'manage_options', 'wdgpo', array($this, 'create_admin_page'));
 
58
                add_options_page('Google+', 'Google+', 'manage_options', 'wdgpo', array($this, 'create_admin_page'));
51
59
        }
52
60
 
53
61
        function create_admin_page () {
63
71
                        add_action('admin_menu', array($this, 'create_blog_admin_menu_entry'));
64
72
                }
65
73
 
66
 
 
 
74
                // Register the shortcodes, so Membership picks them up
 
75
                $rpl = new Wdgpo_Codec; $rpl->register();
67
76
        }
68
77
}
 
 
b'\\ No newline at end of file'