Version Description
- Getting ready for Responsive 2 release - http://content.cyberchimps.com/responsive-2-migration
Download this release
Release Info
Developer | cyberchimps |
Plugin | Responsive Add Ons |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- readme.txt +9 -2
- responsive-add-ons.php +120 -12
- responsive-theme/wp-updates-theme.php +67 -0
- templates/settings.php +9 -17
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: cyberchimps
|
|
3 |
Donate Link: http://cyberchimps.com
|
4 |
Tags: google, yahoo, bing, analytics, verification
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -43,6 +43,10 @@ that it was important to make it inclusive rather than exclusive.
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
|
|
46 |
= 1.0.5 =
|
47 |
* Bug fixes
|
48 |
|
@@ -65,6 +69,9 @@ that it was important to make it inclusive rather than exclusive.
|
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
|
|
|
|
|
|
68 |
= 1.0.5 =
|
69 |
* Bug fixes
|
70 |
|
3 |
Donate Link: http://cyberchimps.com
|
4 |
Tags: google, yahoo, bing, analytics, verification
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.0.6 - 10 June 2014 =
|
47 |
+
* Add Responsive 2 Support
|
48 |
+
* Add option to choose between Responsive 1 and 2 - http://content.cyberchimps.com/responsive-2-migration
|
49 |
+
|
50 |
= 1.0.5 =
|
51 |
* Bug fixes
|
52 |
|
69 |
|
70 |
== Upgrade Notice ==
|
71 |
|
72 |
+
= 1.0.6 =
|
73 |
+
* Getting ready for Responsive 2 release - http://content.cyberchimps.com/responsive-2-migration
|
74 |
+
|
75 |
= 1.0.5 =
|
76 |
* Bug fixes
|
77 |
|
responsive-add-ons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Responsive Add Ons
|
4 |
Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
Description: Added functionality for the responsive theme
|
6 |
-
Version: 1.0.
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
@@ -35,6 +35,7 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
35 |
public function __construct() {
|
36 |
|
37 |
add_action( 'admin_init', array( &$this, 'admin_init' ) );
|
|
|
38 |
add_action( 'admin_menu', array( &$this, 'add_menu' ) );
|
39 |
add_action( 'wp_head', array( &$this, 'responsive_head' ) );
|
40 |
add_action( 'plugins_loaded', array( &$this, 'responsive_addons_translations' ) );
|
@@ -59,20 +60,43 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
59 |
|
60 |
/**
|
61 |
* Hook into WP admin_init
|
|
|
62 |
*/
|
63 |
-
public function admin_init() {
|
64 |
|
65 |
// Check if the theme being used is Responsive. If True then add settings to Responsive settings, else set up a settings page
|
66 |
if( $this->is_responsive() ) {
|
67 |
add_filter( 'responsive_option_sections_filter', array( &$this, 'responsive_option_sections' ), 10, 1 );
|
68 |
add_filter( 'responsive_options_filter', array( &$this, 'responsive_options' ), 10, 1 );
|
69 |
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
$this->init_settings();
|
73 |
}
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/**
|
77 |
* Create plugin translations
|
78 |
*/
|
@@ -85,7 +109,11 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
85 |
* Settings
|
86 |
*/
|
87 |
public function init_settings() {
|
88 |
-
register_setting(
|
|
|
|
|
|
|
|
|
89 |
|
90 |
}
|
91 |
|
@@ -94,10 +122,14 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
94 |
*/
|
95 |
public function add_menu() {
|
96 |
// Hides Menu options if the current theme is responsive
|
97 |
-
if(
|
98 |
-
add_options_page(
|
99 |
-
'
|
100 |
-
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
}
|
103 |
|
@@ -141,6 +173,9 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
141 |
return $new;
|
142 |
}
|
143 |
|
|
|
|
|
|
|
144 |
public function responsive_options( $options ) {
|
145 |
|
146 |
$new_options = array(
|
@@ -174,23 +209,96 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
174 |
),
|
175 |
array(
|
176 |
'title' => __( 'Site Statistics Tracker', 'responsive-addons' ),
|
177 |
-
'subtitle' => '<span class="info-box information help-links">' . __( 'Leave blank if plugin handles your webmaster tools', 'responsive-addons' ) . '</span>' . '<a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>' . '<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">Guide</a>',
|
178 |
-
|
179 |
'type' => 'textarea',
|
180 |
'id' => 'site_statistics_tracker',
|
181 |
'class' => array( 'site-tracker' ),
|
182 |
'description' => __( 'Google Analytics, StatCounter, any other or all of them.', 'responsive-addons' ),
|
183 |
'placeholder' => ''
|
184 |
),
|
185 |
-
|
186 |
)
|
187 |
);
|
188 |
|
189 |
$new = array_merge( $options, $new_options );
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
return $new;
|
192 |
}
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
/**
|
195 |
* Add to wp head
|
196 |
*/
|
3 |
Plugin Name: Responsive Add Ons
|
4 |
Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
Description: Added functionality for the responsive theme
|
6 |
+
Version: 1.0.6
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
35 |
public function __construct() {
|
36 |
|
37 |
add_action( 'admin_init', array( &$this, 'admin_init' ) );
|
38 |
+
add_action( 'after_setup_theme', array( &$this, 'after_setup_theme' ) );
|
39 |
add_action( 'admin_menu', array( &$this, 'add_menu' ) );
|
40 |
add_action( 'wp_head', array( &$this, 'responsive_head' ) );
|
41 |
add_action( 'plugins_loaded', array( &$this, 'responsive_addons_translations' ) );
|
60 |
|
61 |
/**
|
62 |
* Hook into WP admin_init
|
63 |
+
* Responsive 1.x settings
|
64 |
*/
|
65 |
+
public function admin_init( $options ) {
|
66 |
|
67 |
// Check if the theme being used is Responsive. If True then add settings to Responsive settings, else set up a settings page
|
68 |
if( $this->is_responsive() ) {
|
69 |
add_filter( 'responsive_option_sections_filter', array( &$this, 'responsive_option_sections' ), 10, 1 );
|
70 |
add_filter( 'responsive_options_filter', array( &$this, 'responsive_options' ), 10, 1 );
|
71 |
|
72 |
+
$stop_responsive2 = isset( $this->options['stop_responsive2'] ) ? $this->options['stop_responsive2'] : '';
|
73 |
+
|
74 |
+
// Check if stop_responsive2 toggle is on, if on then include update class from wp-updates.com
|
75 |
+
if( 1 == $stop_responsive2 ) {
|
76 |
+
// Notify user of theme update on "Updates" page in Dashboard.
|
77 |
+
require_once( plugin_dir_path( __FILE__ ) . '/responsive-theme/wp-updates-theme.php' );
|
78 |
+
new WPUpdatesThemeUpdater_797( 'http://wp-updates.com/api/2/theme', 'responsive' );
|
79 |
+
}
|
80 |
+
|
81 |
+
} else {
|
82 |
$this->init_settings();
|
83 |
}
|
84 |
}
|
85 |
|
86 |
+
/**
|
87 |
+
* Hook into WP after_setup_theme
|
88 |
+
* Responsive 2.x settings
|
89 |
+
*/
|
90 |
+
public function after_setup_theme() {
|
91 |
+
|
92 |
+
// Check if the theme being used is Responsive. If True then add settings to Responsive settings, else set up a settings page
|
93 |
+
if( $this->is_responsive() ) {
|
94 |
+
|
95 |
+
add_filter( 'responsive_option_options_filter', array( $this, 'responsive_theme_options_set' ) );
|
96 |
+
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
/**
|
101 |
* Create plugin translations
|
102 |
*/
|
109 |
* Settings
|
110 |
*/
|
111 |
public function init_settings() {
|
112 |
+
register_setting(
|
113 |
+
'responsive_addons',
|
114 |
+
'responsive_addons_options',
|
115 |
+
array( &$this, 'responsive_addons_sanitize' )
|
116 |
+
);
|
117 |
|
118 |
}
|
119 |
|
122 |
*/
|
123 |
public function add_menu() {
|
124 |
// Hides Menu options if the current theme is responsive
|
125 |
+
if( ! $this->is_responsive() ) {
|
126 |
+
add_options_page(
|
127 |
+
__( 'Responsive Add Ons', 'responsive-addons' ),
|
128 |
+
__( 'Responsive Add Ons', 'responsive-addons' ),
|
129 |
+
'manage_options',
|
130 |
+
'responsive_addons',
|
131 |
+
array( &$this, 'plugin_settings_page' )
|
132 |
+
);
|
133 |
}
|
134 |
}
|
135 |
|
173 |
return $new;
|
174 |
}
|
175 |
|
176 |
+
/*
|
177 |
+
* Responsive 1.x Settings
|
178 |
+
*/
|
179 |
public function responsive_options( $options ) {
|
180 |
|
181 |
$new_options = array(
|
209 |
),
|
210 |
array(
|
211 |
'title' => __( 'Site Statistics Tracker', 'responsive-addons' ),
|
212 |
+
'subtitle' => '<span class="info-box information help-links">' . __( 'Leave blank if plugin handles your webmaster tools', 'responsive-addons' ) . '</span>' . '<a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>' . '<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">' . __( 'Guide', 'responsive-addons' ) . '</a>',
|
213 |
+
'heading' => '',
|
214 |
'type' => 'textarea',
|
215 |
'id' => 'site_statistics_tracker',
|
216 |
'class' => array( 'site-tracker' ),
|
217 |
'description' => __( 'Google Analytics, StatCounter, any other or all of them.', 'responsive-addons' ),
|
218 |
'placeholder' => ''
|
219 |
),
|
|
|
220 |
)
|
221 |
);
|
222 |
|
223 |
$new = array_merge( $options, $new_options );
|
224 |
|
225 |
+
// Add stop_responsive2 options only to Responsive theme.
|
226 |
+
if( $this->is_responsive() ) {
|
227 |
+
$new['theme_elements'][] = array(
|
228 |
+
'title' => __( 'Disable Responsive 2 Updates', 'responsive-addons' ),
|
229 |
+
'subtitle' => '',
|
230 |
+
'heading' => '',
|
231 |
+
'type' => 'checkbox',
|
232 |
+
'id' => 'stop_responsive2',
|
233 |
+
'description' => __( 'check to disable', 'responsive' ),
|
234 |
+
);
|
235 |
+
}
|
236 |
+
|
237 |
return $new;
|
238 |
}
|
239 |
|
240 |
+
/*
|
241 |
+
* Responsive 2.x Settings
|
242 |
+
*/
|
243 |
+
public function responsive_theme_options_set( $options ) {
|
244 |
+
|
245 |
+
$new_options['webmaster'] = array(
|
246 |
+
'title' => __( 'Webmaster Tools', 'responsive-addons' ),
|
247 |
+
'fields' => array(
|
248 |
+
array(
|
249 |
+
'title' => __( 'Google Site Verification', 'responsive-addons' ),
|
250 |
+
'subtitle' => '',
|
251 |
+
'heading' => '',
|
252 |
+
'type' => 'text',
|
253 |
+
'id' => 'google_site_verification',
|
254 |
+
'description' => __( 'Enter your Google ID number only', 'responsive-addons' ),
|
255 |
+
'placeholder' => '',
|
256 |
+
'default' => '',
|
257 |
+
'validate' => 'text'
|
258 |
+
),
|
259 |
+
array(
|
260 |
+
'title' => __( 'Bing Site Verification', 'responsive-addons' ),
|
261 |
+
'subtitle' => '',
|
262 |
+
'heading' => '',
|
263 |
+
'type' => 'text',
|
264 |
+
'id' => 'bing_site_verification',
|
265 |
+
'description' => __( 'Enter your Bing ID number only', 'responsive-addons' ),
|
266 |
+
'placeholder' => '',
|
267 |
+
'default' => '',
|
268 |
+
'validate' => 'text'
|
269 |
+
),
|
270 |
+
array(
|
271 |
+
'title' => __( 'Yahoo Site Verification', 'responsive-addons' ),
|
272 |
+
'subtitle' => '',
|
273 |
+
'heading' => '',
|
274 |
+
'type' => 'text',
|
275 |
+
'id' => 'yahoo_site_verification',
|
276 |
+
'description' => __( 'Enter your Yahoo ID number only', 'responsive-addons' ),
|
277 |
+
'placeholder' => '',
|
278 |
+
'default' => '',
|
279 |
+
'validate' => 'text'
|
280 |
+
),
|
281 |
+
array(
|
282 |
+
'title' => __( 'Site Statistics Tracker', 'responsive-addons' ),
|
283 |
+
'subtitle' => '<span class="info-box information help-links">' . __( 'Leave blank if plugin handles your webmaster tools', 'responsive-addons' ) . '</span>' . '<a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>' . '<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">' . __( 'Guide', 'responsive-addons' ) . '</a>',
|
284 |
+
'heading' => '',
|
285 |
+
'type' => 'textarea',
|
286 |
+
'id' => 'site_statistics_tracker',
|
287 |
+
'class' => array( 'site-tracker' ),
|
288 |
+
'description' => __( 'Google Analytics, StatCounter, any other or all of them.', 'responsive-addons' ),
|
289 |
+
'placeholder' => '',
|
290 |
+
'default' => '',
|
291 |
+
'validate' => 'js'
|
292 |
+
),
|
293 |
+
|
294 |
+
)
|
295 |
+
);
|
296 |
+
|
297 |
+
$new_options = array_merge( $options, $new_options );
|
298 |
+
|
299 |
+
return $new_options;
|
300 |
+
}
|
301 |
+
|
302 |
/**
|
303 |
* Add to wp head
|
304 |
*/
|
responsive-theme/wp-updates-theme.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
WPUpdates Theme Updater Class
|
4 |
+
http://wp-updates.com
|
5 |
+
v2.0
|
6 |
+
|
7 |
+
Example Usage:
|
8 |
+
require_once('wp-updates-theme.php');
|
9 |
+
new WPUpdatesThemeUpdater_797( 'http://wp-updates.com/api/2/theme', basename(get_template_directory()) );
|
10 |
+
*/
|
11 |
+
|
12 |
+
if( !class_exists('WPUpdatesThemeUpdater_797') ) {
|
13 |
+
class WPUpdatesThemeUpdater_797 {
|
14 |
+
|
15 |
+
var $api_url;
|
16 |
+
var $theme_id = 797;
|
17 |
+
var $theme_slug;
|
18 |
+
var $license_key;
|
19 |
+
|
20 |
+
function __construct( $api_url, $theme_slug, $license_key = null ) {
|
21 |
+
$this->api_url = $api_url;
|
22 |
+
$this->theme_slug = $theme_slug;
|
23 |
+
|
24 |
+
add_filter( 'pre_set_site_transient_update_themes', array(&$this, 'check_for_update') );
|
25 |
+
|
26 |
+
// This is for testing only!
|
27 |
+
//set_site_transient('update_themes', null);
|
28 |
+
}
|
29 |
+
|
30 |
+
function check_for_update( $transient ) {
|
31 |
+
if (empty($transient->checked)) return $transient;
|
32 |
+
|
33 |
+
$request_args = array(
|
34 |
+
'id' => $this->theme_id,
|
35 |
+
'slug' => $this->theme_slug,
|
36 |
+
'version' => $transient->checked[$this->theme_slug]
|
37 |
+
);
|
38 |
+
if ($this->license_key) $request_args['license'] = $this->license_key;
|
39 |
+
|
40 |
+
$request_string = $this->prepare_request( 'theme_update', $request_args );
|
41 |
+
$raw_response = wp_remote_post( $this->api_url, $request_string );
|
42 |
+
|
43 |
+
$response = null;
|
44 |
+
if( !is_wp_error($raw_response) && ($raw_response['response']['code'] == 200) )
|
45 |
+
$response = unserialize($raw_response['body']);
|
46 |
+
|
47 |
+
if( !empty($response) ) // Feed the update data into WP updater
|
48 |
+
$transient->response[$this->theme_slug] = $response;
|
49 |
+
|
50 |
+
return $transient;
|
51 |
+
}
|
52 |
+
|
53 |
+
function prepare_request( $action, $args ) {
|
54 |
+
global $wp_version;
|
55 |
+
|
56 |
+
return array(
|
57 |
+
'body' => array(
|
58 |
+
'action' => $action,
|
59 |
+
'request' => serialize($args),
|
60 |
+
'api-key' => md5(home_url())
|
61 |
+
),
|
62 |
+
'user-agent' => 'WordPress/'. $wp_version .'; '. home_url()
|
63 |
+
);
|
64 |
+
}
|
65 |
+
|
66 |
+
}
|
67 |
+
}
|
templates/settings.php
CHANGED
@@ -21,7 +21,7 @@ if( !defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
?>
|
23 |
<div class="wrap">
|
24 |
-
<h2
|
25 |
|
26 |
<form method="POST" action="options.php">
|
27 |
<?php settings_fields( 'responsive_addons' );
|
@@ -29,33 +29,27 @@ if( !defined( 'ABSPATH' ) ) {
|
|
29 |
|
30 |
$options = get_option( 'responsive_addons_options' );
|
31 |
?>
|
32 |
-
<h3 class="subheading"
|
33 |
<table class="form-table">
|
34 |
<tr>
|
35 |
<th><?php _e( 'Google Site Verification', 'responsive-addons' ) ?></th>
|
36 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[google_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
37 |
-
'responsive_addons_options[google_site_verification]' ); ?>"
|
38 |
-
|
39 |
-
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[google_site_verification]' ); ?>"><?php _e( 'Enter your Google ID number only',
|
40 |
-
'responsive-addons' ) ?></label></td>
|
41 |
</tr>
|
42 |
|
43 |
<tr>
|
44 |
<th><?php _e( 'Bing Site Verification', 'responsive-addons' ) ?></th>
|
45 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[bing_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
46 |
-
'responsive_addons_options[bing_site_verification]' ); ?>"
|
47 |
-
|
48 |
-
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[bing_site_verification]' ); ?>"><?php _e( 'Enter your Bing ID number only',
|
49 |
-
'responsive-addons' ) ?></label></td>
|
50 |
</tr>
|
51 |
|
52 |
<tr>
|
53 |
<th><?php _e( 'Yahoo Site Verification', 'responsive-addons' ) ?></th>
|
54 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[yahoo_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
55 |
-
'responsive_addons_options[yahoo_site_verification]' ); ?>"
|
56 |
-
|
57 |
-
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[yahoo_site_verification]' ); ?>"><?php _e( 'Enter your Yahoo ID number only',
|
58 |
-
'responsive-addons' ) ?></label></td>
|
59 |
</tr>
|
60 |
|
61 |
<tr>
|
@@ -64,14 +58,12 @@ if( !defined( 'ABSPATH' ) ) {
|
|
64 |
<br/><a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>
|
65 |
<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">Guide</a>
|
66 |
</th>
|
67 |
-
<td><textarea id="<?php echo esc_attr( 'responsive_addons_options[site_statistics_tracker]' ); ?>" class="large-text" cols="50" rows="15" name="<?php echo esc_attr(
|
68 |
-
'responsive_addons_options[site_statistics_tracker]' ); ?>"><?php echo ( !empty( $options['site_statistics_tracker'] ) ) ? esc_html( $options['site_statistics_tracker'] ) : ''; ?></textarea>
|
69 |
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[site_statistics_tracker]' ); ?>">
|
70 |
<?php _e( 'Google Analytics, StatCounter, any other or all of them.', 'responsive-addons' ) ?>
|
71 |
</label></td>
|
72 |
</tr>
|
73 |
|
74 |
-
|
75 |
</table>
|
76 |
<?php submit_button(); ?>
|
77 |
</form>
|
21 |
}
|
22 |
?>
|
23 |
<div class="wrap">
|
24 |
+
<h2><?php _e( 'Responsive Settings', 'responsive-addons' ) ?></h2>
|
25 |
|
26 |
<form method="POST" action="options.php">
|
27 |
<?php settings_fields( 'responsive_addons' );
|
29 |
|
30 |
$options = get_option( 'responsive_addons_options' );
|
31 |
?>
|
32 |
+
<h3 class="subheading"><?php _e( 'Webmaster Settings', 'responsive-addons' ) ?></h3>
|
33 |
<table class="form-table">
|
34 |
<tr>
|
35 |
<th><?php _e( 'Google Site Verification', 'responsive-addons' ) ?></th>
|
36 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[google_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
37 |
+
'responsive_addons_options[google_site_verification]' ); ?>" value="<?php echo ( !empty( $options['google_site_verification'] ) ) ? esc_html( $options['google_site_verification'] ) : ''; ?>"/>
|
38 |
+
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[google_site_verification]' ); ?>"><?php _e( 'Enter your Google ID number only', 'responsive-addons' ) ?></label></td>
|
|
|
|
|
39 |
</tr>
|
40 |
|
41 |
<tr>
|
42 |
<th><?php _e( 'Bing Site Verification', 'responsive-addons' ) ?></th>
|
43 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[bing_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
44 |
+
'responsive_addons_options[bing_site_verification]' ); ?>" value="<?php echo ( !empty( $options['bing_site_verification'] ) ) ? esc_html( $options['bing_site_verification'] ) : ''; ?>"/>
|
45 |
+
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[bing_site_verification]' ); ?>"><?php _e( 'Enter your Bing ID number only', 'responsive-addons' ) ?></label></td>
|
|
|
|
|
46 |
</tr>
|
47 |
|
48 |
<tr>
|
49 |
<th><?php _e( 'Yahoo Site Verification', 'responsive-addons' ) ?></th>
|
50 |
<td><input id="<?php echo esc_attr( 'responsive_addons_options[yahoo_site_verification]' ); ?>" class="regular-text" type="text" name="<?php echo esc_attr(
|
51 |
+
'responsive_addons_options[yahoo_site_verification]' ); ?>" value="<?php echo ( !empty( $options['yahoo_site_verification'] ) ) ? esc_html( $options['yahoo_site_verification'] ) : ''; ?>"/>
|
52 |
+
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[yahoo_site_verification]' ); ?>"><?php _e( 'Enter your Yahoo ID number only', 'responsive-addons' ) ?></label></td>
|
|
|
|
|
53 |
</tr>
|
54 |
|
55 |
<tr>
|
58 |
<br/><a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>
|
59 |
<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">Guide</a>
|
60 |
</th>
|
61 |
+
<td><textarea id="<?php echo esc_attr( 'responsive_addons_options[site_statistics_tracker]' ); ?>" class="large-text" cols="50" rows="15" name="<?php echo esc_attr( 'responsive_addons_options[site_statistics_tracker]' ); ?>"><?php echo ( !empty( $options['site_statistics_tracker'] ) ) ? esc_html( $options['site_statistics_tracker'] ) : ''; ?></textarea>
|
|
|
62 |
<label class="description" for="<?php echo esc_attr( 'responsive_addons_options[site_statistics_tracker]' ); ?>">
|
63 |
<?php _e( 'Google Analytics, StatCounter, any other or all of them.', 'responsive-addons' ) ?>
|
64 |
</label></td>
|
65 |
</tr>
|
66 |
|
|
|
67 |
</table>
|
68 |
<?php submit_button(); ?>
|
69 |
</form>
|