~antivirtel/brs-wp/trunk

« back to all changes in this revision

Viewing changes to wp-content/plugins/google/lib/class_wdgpo_admin_form_renderer.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:
141
141
                );
142
142
        }
143
143
 
 
144
        function create_footer_render_box () {
 
145
                echo $this->_create_checkbox('footer_render');
 
146
                echo '<div><small>' . __('Using the WordPress defaults, the needed scripts will be added to your <code>head</code>. Use this option to load the scripts in your footer, after the bulk of your page has lareadt been loaded.', 'wdgpo') . '</small></div>';
 
147
                echo '<div><small>' . __('Note that this method is a bit less reliable then the default one, as it depends on your theme doing the right thing.', 'wdgpo') . '</small></div>';
 
148
        }
 
149
 
 
150
        function create_gplus_page_id_box () {
 
151
                $opt = $this->_get_option();
 
152
                $page_id = esc_attr(@$opt['gplus_page_id']);
 
153
                echo "<input type='text' name='wdgpo[gplus_page_id]' class='widefat' value='{$page_id}' />";
 
154
                echo '<div><small>' . __('Your Google+ page ID is the long number at the end of your page URL.', 'wdgpo') . '</small></div>';
 
155
        }
 
156
 
 
157
        function create_enable_analytics_box () {
 
158
                echo $this->_create_checkbox('analytics_integration');
 
159
                echo '<div><small>' . __('Enabling this option will allow you to track your +1s in Google Analytics.', 'wdgpo') . '</small></div>';
 
160
                echo '<div><small>' . __('<b>Note:</b> your site will need to have Google Analytics already set up for this to work.', 'wdgpo') . '</small></div>';
 
161
        }
 
162
 
 
163
        function create_analytics_category_box () {
 
164
                $opt = $this->_get_option();
 
165
                $category = @$opt['analytics_category'] ? $opt['analytics_category'] : 'Google +1';
 
166
                $category = esc_attr($category);
 
167
                echo "<input type='text' name='wdgpo[analytics_category]' class='widefat' value='{$category}' />";
 
168
                echo '<div><small>' . __('Your +1 clicks will be added to this category.', 'wdgpo') . '</small></div>';
 
169
        }
 
170
 
144
171
}
 
 
b'\\ No newline at end of file'