Responsive Add Ons - Version 1.0.5

Version Description

  • Bug fixes
Download this release

Release Info

Developer cyberchimps
Plugin Icon 128x128 Responsive Add Ons
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (2) hide show
  1. readme.txt +19 -13
  2. responsive-add-ons.php +26 -30
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
- Contributors: CyberChimps
3
  Donate Link: http://cyberchimps.com
4
  Tags: google, yahoo, bing, analytics, verification
5
- Requires at least: 3.0.1
6
- Tested up to: 3.6
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,6 +43,9 @@ that it was important to make it inclusive rather than exclusive.
43
 
44
  == Changelog ==
45
 
 
 
 
46
  = 1.0.4 =
47
  * Language Updates
48
  * Links to forum and guides
@@ -62,19 +65,22 @@ that it was important to make it inclusive rather than exclusive.
62
 
63
  == Upgrade Notice ==
64
 
65
- = 1.0.0 =
66
- * Initial set up and release
67
-
68
- = 1.0.1 =
69
  * Bug fixes
70
 
71
- = 1.0.2 =
72
- * Bug fixes
 
73
 
74
  = 1.0.3 =
75
  * Bug Fixes
76
  * Added styling to textarea
77
 
78
- = 1.0.4 =
79
- * Language Updates
80
- * Links to forum and guides
 
 
 
 
 
1
  === Plugin Name ===
2
+ 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.8
7
+ Stable tag: 1.0.5
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.5 =
47
+ * Bug fixes
48
+
49
  = 1.0.4 =
50
  * Language Updates
51
  * Links to forum and guides
65
 
66
  == Upgrade Notice ==
67
 
68
+ = 1.0.5 =
 
 
 
69
  * Bug fixes
70
 
71
+ = 1.0.4 =
72
+ * Language Updates
73
+ * Links to forum and guides
74
 
75
  = 1.0.3 =
76
  * Bug Fixes
77
  * Added styling to textarea
78
 
79
+ = 1.0.2 =
80
+ * Bug fixes
81
+
82
+ = 1.0.1 =
83
+ * Bug fixes
84
+
85
+ = 1.0.0 =
86
+ * Initial set up and release
responsive-add-ons.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Responsive Add Ons
4
- Plugin URI: http://cyberchimps.com
5
  Description: Added functionality for the responsive theme
6
- Version: 1.0.4
7
  Author: CyberChimps
8
  Author URI: http://www.cyberchimps.com
9
  License: GPL2
@@ -12,7 +12,7 @@ License: GPL2
12
  Copyright 2013 CyberChimps (email : support@cyberchimps.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
- it under the terms of the GNU General Public License, version 2, as
16
  published by the Free Software Foundation.
17
 
18
  This program is distributed in the hope that it will be useful,
@@ -38,6 +38,8 @@ if( !class_exists( 'Responsive_Addons' ) ) {
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' ) );
 
 
41
 
42
  $this->options = get_option( 'responsive_theme_options' );
43
  $this->plugin_options = get_option( 'responsive_addons_options' );
@@ -120,8 +122,7 @@ if( !class_exists( 'Responsive_Addons' ) ) {
120
 
121
  if( $theme->Name == 'Responsive' || $theme->Template == 'responsive' || $theme->Name == 'Responsive Pro' || $theme->Template == 'responsivepro' ) {
122
  return true;
123
- }
124
- else {
125
  return false;
126
  }
127
  }
@@ -173,9 +174,7 @@ if( !class_exists( 'Responsive_Addons' ) ) {
173
  ),
174
  array(
175
  'title' => __( 'Site Statistics Tracker', 'responsive-addons' ),
176
- 'subtitle' => '<span class="info-box information help-links">' . __( 'Leave blank if plugin handles your webmaster tools', 'responsive-addons' ) . '</span>' .
177
- '<a style="margin:5px;" class="resp-addon-forum button" href="http://cyberchimps.com/forum/free/responsive/">Forum</a>' .
178
- '<a style="margin:5px;" class="resp-addon-guide button" href="http://cyberchimps.com/guide/responsive-add-ons/">Guide</a>',
179
  'heading' => '',
180
  'type' => 'textarea',
181
  'id' => 'site_statistics_tracker',
@@ -242,13 +241,31 @@ if( !class_exists( 'Responsive_Addons' ) ) {
242
 
243
  return $output;
244
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  }
246
  }
247
 
248
  /**
249
  * Initialize Plugin
250
  */
251
-
252
  if( class_exists( 'Responsive_Addons' ) ) {
253
 
254
  // Installation and uninstallation hooks
@@ -258,24 +275,3 @@ if( class_exists( 'Responsive_Addons' ) ) {
258
  // Initialise Class
259
  $responsive = new Responsive_Addons();
260
  }
261
-
262
- if( isset( $responsive ) ) {
263
- /**
264
- * Add settings link to plugin activate page
265
- *
266
- * @param $links
267
- *
268
- * @return mixed
269
- */
270
- function plugin_settings_link( $links ) {
271
- $settings_link = ( Responsive_Addons::is_responsive() ) ? '<a href="themes.php?page=theme_options">' . __( 'Settings',
272
- 'responsive-addons' ) . '</a>' : '<a href="options-general.php?page=responsive_addons">' . __( 'Settings',
273
- 'responsive-addons' ) . '</a>';
274
- array_unshift( $links, $settings_link );
275
-
276
- return $links;
277
- }
278
-
279
- $plugin = plugin_basename( __FILE__ );
280
- add_filter( "plugin_action_links_$plugin", 'plugin_settings_link' );
281
- }
1
  <?php
2
  /*
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.5
7
  Author: CyberChimps
8
  Author URI: http://www.cyberchimps.com
9
  License: GPL2
12
  Copyright 2013 CyberChimps (email : support@cyberchimps.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License, version 2, as
16
  published by the Free Software Foundation.
17
 
18
  This program is distributed in the hope that it will be useful,
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' ) );
41
+ $plugin = plugin_basename( __FILE__ );
42
+ add_filter( "plugin_action_links_$plugin", array( &$this, 'plugin_settings_link' ) );
43
 
44
  $this->options = get_option( 'responsive_theme_options' );
45
  $this->plugin_options = get_option( 'responsive_addons_options' );
122
 
123
  if( $theme->Name == 'Responsive' || $theme->Template == 'responsive' || $theme->Name == 'Responsive Pro' || $theme->Template == 'responsivepro' ) {
124
  return true;
125
+ } else {
 
126
  return false;
127
  }
128
  }
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
  'heading' => '',
179
  'type' => 'textarea',
180
  'id' => 'site_statistics_tracker',
241
 
242
  return $output;
243
  }
244
+
245
+ /**
246
+ * Add settings link to plugin activate page
247
+ *
248
+ * @param $links
249
+ *
250
+ * @return mixed
251
+ */
252
+ public function plugin_settings_link( $links ) {
253
+ if ( $this->is_responsive() ) {
254
+ $settings_link = '<a href="themes.php?page=theme_options">' . __( 'Settings', 'responsive-addons' ) . '</a>';
255
+ } else {
256
+ $settings_link = '<a href="options-general.php?page=responsive_addons">' . __( 'Settings', 'responsive-addons' ) . '</a>';
257
+ }
258
+ array_unshift( $links, $settings_link );
259
+
260
+ return $links;
261
+ }
262
+
263
  }
264
  }
265
 
266
  /**
267
  * Initialize Plugin
268
  */
 
269
  if( class_exists( 'Responsive_Addons' ) ) {
270
 
271
  // Installation and uninstallation hooks
275
  // Initialise Class
276
  $responsive = new Responsive_Addons();
277
  }