WordPress Charts and Graphs Lite - Version 3.0.3

Version Description

  • 2017-11-16
Download this release

Release Info

Developer codeinwp
Plugin Icon WordPress Charts and Graphs Lite
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v3.0.2 - 2017-10-10
3
  **Changes:**
4
  * Fix dependency for composer dependencies.
1
 
2
+ ### v3.0.3 - 2017-11-16
3
+ **Changes:**
4
+ * Adds compatibility with WordPress 4.9.
5
+
6
  ### v3.0.2 - 2017-10-10
7
  **Changes:**
8
  * Fix dependency for composer dependencies.
classes/Visualizer/Module/Frontend.php CHANGED
@@ -169,13 +169,14 @@ class Visualizer_Module_Frontend extends Visualizer_Module {
169
  * @param array $atts The array of shortcode attributes.
170
  */
171
  public function renderChart( $atts ) {
 
172
  $atts = shortcode_atts(
173
  array(
174
  'id' => false, // chart id
175
- 'class' => false, // chart class
176
- 'series' => false, // series filter hook
177
- 'data' => false, // data filter hook
178
- 'settings' => false, // data filter hook
179
  ), $atts
180
  );
181
 
@@ -239,7 +240,7 @@ class Visualizer_Module_Frontend extends Visualizer_Module {
239
  'visualizer-render', 'visualizer', array(
240
  'charts' => $this->_charts,
241
  'map_api_key' => get_option( 'visualizer-map-api-key' ),
242
- 'rest_url' => rest_url( 'visualizer/v' . VISUALIZER_REST_VERSION . '/action/#id#/#type#/' ),
243
  'i10n' => array(
244
  'copied' => __( 'Copied!', 'visualizer' ),
245
  ),
169
  * @param array $atts The array of shortcode attributes.
170
  */
171
  public function renderChart( $atts ) {
172
+ global $wp_version;
173
  $atts = shortcode_atts(
174
  array(
175
  'id' => false, // chart id
176
+ 'class' => false, // chart class
177
+ 'series' => false, // series filter hook
178
+ 'data' => false, // data filter hook
179
+ 'settings' => false, // data filter hook
180
  ), $atts
181
  );
182
 
240
  'visualizer-render', 'visualizer', array(
241
  'charts' => $this->_charts,
242
  'map_api_key' => get_option( 'visualizer-map-api-key' ),
243
+ 'rest_url' => version_compare( $wp_version, '4.7.0', '>=' ) ? rest_url( 'visualizer/v' . VISUALIZER_REST_VERSION . '/action/#id#/#type#/' ) : '',
244
  'i10n' => array(
245
  'copied' => __( 'Copied!', 'visualizer' ),
246
  ),
classes/Visualizer/Plugin.php CHANGED
@@ -28,7 +28,7 @@
28
  class Visualizer_Plugin {
29
 
30
  const NAME = 'visualizer';
31
- const VERSION = '3.0.2';
32
 
33
  // custom post types
34
  const CPT_VISUALIZER = 'visualizer';
28
  class Visualizer_Plugin {
29
 
30
  const NAME = 'visualizer';
31
+ const VERSION = '3.0.3';
32
 
33
  // custom post types
34
  const CPT_VISUALIZER = 'visualizer';
classes/Visualizer/Render/Sidebar.php CHANGED
@@ -157,7 +157,7 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
157
 
158
  self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
159
  self::_renderSectionStart();
160
- self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the','visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
161
 
162
  $example = '
163
  {
@@ -192,20 +192,24 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
192
  * @access protected
193
  */
194
  protected function _renderActionSettings() {
 
 
195
  self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), false );
196
  self::_renderCheckboxItem(
197
  esc_html__( 'Print', 'visualizer' ),
198
  'actions[]',
199
  isset( $this->actions ) && in_array( 'print', $this->actions ) ? true : false,
200
  'print',
201
- esc_html__( 'To enable printing the data.', 'visualizer' )
 
202
  );
203
  self::_renderCheckboxItem(
204
  esc_html__( 'CSV', 'visualizer' ),
205
  'actions[]',
206
  isset( $this->actions ) && in_array( 'csv;application/csv', $this->actions ) ? true : false,
207
  'csv;application/csv',
208
- esc_html__( 'To enable downloading the data as a CSV.', 'visualizer' )
 
209
  );
210
 
211
  $disabled = ! ( class_exists( 'PHPExcel' ) && extension_loaded( 'zip' ) && extension_loaded( 'xml' ) && version_compare( PHP_VERSION, '5.2.0', '>' ) );
@@ -214,15 +218,16 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
214
  'actions[]',
215
  isset( $this->actions ) && in_array( 'xls;application/vnd.ms-excel', $this->actions ) ? true : false,
216
  'xls;application/vnd.ms-excel',
217
- $disabled ? '<span class="viz-section-error">' . esc_html__( 'Enable the ZIP and XML extensions to use this setting.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as an Excel spreadsheet.', 'visualizer' ),
218
- $disabled
219
  );
220
  self::_renderCheckboxItem(
221
  esc_html__( 'Copy', 'visualizer' ),
222
  'actions[]',
223
  isset( $this->actions ) && in_array( 'copy', $this->actions ) ? true : false,
224
  'copy',
225
- esc_html__( 'To enable copying the data to the clipboard.', 'visualizer' )
 
226
  );
227
  self::_renderSectionEnd();
228
  }
@@ -663,7 +668,7 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
663
  echo '<div class="viz-section-item">';
664
  echo '<a class="more-info" href="javascript:;">[?]</a>';
665
  echo '<b>', $title, '</b>';
666
- echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ($value == $default ? 'checked' : ''), ' ', ($disabled ? 'disabled=disabled' : ''), '>';
667
  echo '<p class="viz-section-description">', $desc, '</p>';
668
  echo '</div>';
669
  }
157
 
158
  self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
159
  self::_renderSectionStart();
160
+ self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the', 'visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
161
 
162
  $example = '
163
  {
192
  * @access protected
193
  */
194
  protected function _renderActionSettings() {
195
+ global $wp_version;
196
+ $disable_actions = version_compare( $wp_version, '4.7.0', '<' );
197
  self::_renderSectionStart( esc_html__( 'Actions', 'visualizer' ), false );
198
  self::_renderCheckboxItem(
199
  esc_html__( 'Print', 'visualizer' ),
200
  'actions[]',
201
  isset( $this->actions ) && in_array( 'print', $this->actions ) ? true : false,
202
  'print',
203
+ $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable printing the data.', 'visualizer' ),
204
+ $disable_actions
205
  );
206
  self::_renderCheckboxItem(
207
  esc_html__( 'CSV', 'visualizer' ),
208
  'actions[]',
209
  isset( $this->actions ) && in_array( 'csv;application/csv', $this->actions ) ? true : false,
210
  'csv;application/csv',
211
+ $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as a CSV.', 'visualizer' ),
212
+ $disable_actions
213
  );
214
 
215
  $disabled = ! ( class_exists( 'PHPExcel' ) && extension_loaded( 'zip' ) && extension_loaded( 'xml' ) && version_compare( PHP_VERSION, '5.2.0', '>' ) );
218
  'actions[]',
219
  isset( $this->actions ) && in_array( 'xls;application/vnd.ms-excel', $this->actions ) ? true : false,
220
  'xls;application/vnd.ms-excel',
221
+ $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : ( $disabled ? '<span class="viz-section-error">' . esc_html__( 'Enable the ZIP and XML extensions to use this setting.', 'visualizer' ) . '</span>' : esc_html__( 'To enable downloading the data as an Excel spreadsheet.', 'visualizer' ) ),
222
+ $disable_actions || $disabled
223
  );
224
  self::_renderCheckboxItem(
225
  esc_html__( 'Copy', 'visualizer' ),
226
  'actions[]',
227
  isset( $this->actions ) && in_array( 'copy', $this->actions ) ? true : false,
228
  'copy',
229
+ $disable_actions ? '<span class="viz-section-error">' . esc_html__( 'Upgrade to at least WordPress 4.7 to use this.', 'visualizer' ) . '</span>' : esc_html__( 'To enable copying the data to the clipboard.', 'visualizer' ),
230
+ $disable_actions
231
  );
232
  self::_renderSectionEnd();
233
  }
668
  echo '<div class="viz-section-item">';
669
  echo '<a class="more-info" href="javascript:;">[?]</a>';
670
  echo '<b>', $title, '</b>';
671
+ echo '<input type="checkbox" class="control-check" value="', $default, '" name="', $name, '" ', ( $value == $default ? 'checked' : '' ), ' ', ( $disabled ? 'disabled=disabled' : '' ), '>';
672
  echo '<p class="viz-section-description">', $desc, '</p>';
673
  echo '</div>';
674
  }
classes/Visualizer/Render/Sidebar/Graph.php CHANGED
@@ -426,12 +426,12 @@ abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar
426
  '%s<br><br>%s<br><br>%s',
427
  esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
428
  sprintf(
429
- esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
430
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
431
  '</a>'
432
  ),
433
  sprintf(
434
- esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
435
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
436
  '</a>'
437
  )
@@ -455,12 +455,12 @@ abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar
455
  '%s<br><br>%s<br><br>%s',
456
  esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ),
457
  sprintf(
458
- esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
459
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
460
  '</a>'
461
  ),
462
  sprintf(
463
- esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
464
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
465
  '</a>'
466
  )
426
  '%s<br><br>%s<br><br>%s',
427
  esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
428
  sprintf(
429
+ esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
430
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
431
  '</a>'
432
  ),
433
  sprintf(
434
+ esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
435
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
436
  '</a>'
437
  )
455
  '%s<br><br>%s<br><br>%s',
456
  esc_html__( 'Enter custom format pattern to apply to vertical axis labels.', 'visualizer' ),
457
  sprintf(
458
+ esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
459
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
460
  '</a>'
461
  ),
462
  sprintf(
463
+ esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
464
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
465
  '</a>'
466
  )
classes/Visualizer/Render/Sidebar/Type/Geo.php CHANGED
@@ -73,7 +73,7 @@ class Visualizer_Render_Sidebar_Type_Geo extends Visualizer_Render_Sidebar {
73
 
74
  self::_renderSectionStart( esc_html__( 'Region', 'visualizer' ), false );
75
  self::_renderSectionDescription(
76
- esc_html__( 'Configure the region area to display on the map. (Surrounding areas will be displayed as well.) Can be one of the following:' , 'visualizer' ) .
77
  '<ul>' .
78
  '<li>' . esc_html__( "'world' - A map of the entire world.", 'visualizer' ) . '</li>' .
79
  '<li>' . sprintf( esc_html__( "A continent or a sub-continent, specified by its %s code, e.g., '011' for Western Africa.", 'visualizer' ), '<a href="https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart#Continent_Hierarchy" target="_blank">3-digit</a>' ) . '</li>' .
73
 
74
  self::_renderSectionStart( esc_html__( 'Region', 'visualizer' ), false );
75
  self::_renderSectionDescription(
76
+ esc_html__( 'Configure the region area to display on the map. (Surrounding areas will be displayed as well.) Can be one of the following:', 'visualizer' ) .
77
  '<ul>' .
78
  '<li>' . esc_html__( "'world' - A map of the entire world.", 'visualizer' ) . '</li>' .
79
  '<li>' . sprintf( esc_html__( "A continent or a sub-continent, specified by its %s code, e.g., '011' for Western Africa.", 'visualizer' ), '<a href="https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart#Continent_Hierarchy" target="_blank">3-digit</a>' ) . '</li>' .
classes/Visualizer/Render/Sidebar/Type/Pie.php CHANGED
@@ -65,12 +65,12 @@ class Visualizer_Render_Sidebar_Type_Pie extends Visualizer_Render_Sidebar {
65
  '%s<br><br>%s<br><br>%s',
66
  esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
67
  sprintf(
68
- esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.','visualizer' ),
69
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
70
  '</a>'
71
  ),
72
  sprintf(
73
- esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.','visualizer' ),
74
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
75
  '</a>'
76
  )
65
  '%s<br><br>%s<br><br>%s',
66
  esc_html__( 'Enter custom format pattern to apply to horizontal axis labels.', 'visualizer' ),
67
  sprintf(
68
+ esc_html__( 'For number axis labels, this is a subset of the decimal formatting %1$sICU pattern set%2$s. For instance, $#,###.## will display values $1,234.56 for value 1234.56. Pay attention that if you use #&#37;&#37; percentage format then your values will be multiplied by 100.', 'visualizer' ),
69
  '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">',
70
  '</a>'
71
  ),
72
  sprintf(
73
+ esc_html__( 'For date axis labels, this is a subset of the date formatting %1$sICU date and time format%2$s.', 'visualizer' ),
74
  '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">',
75
  '</a>'
76
  )
css/media.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- Version: 3.0.2
3
  */
4
  #visualizer-library-view {
5
  padding: 30px 10px 10px 30px;
1
  /*
2
+ Version: 3.0.3
3
  */
4
  #visualizer-library-view {
5
  padding: 30px 10px 10px 30px;
index.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Visualizer: Charts and Graphs Lite
5
  Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
6
  Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
7
- Version: 3.0.2
8
  Author: Themeisle
9
  Author URI: http://themeisle.com
10
  License: GPL v2.0 or later
4
  Plugin Name: Visualizer: Charts and Graphs Lite
5
  Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
6
  Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
7
+ Version: 3.0.3
8
  Author: Themeisle
9
  Author URI: http://themeisle.com
10
  License: GPL v2.0 or later
readme.md CHANGED
@@ -2,7 +2,7 @@
2
  **Contributors:** [codeinwp](https://profiles.wordpress.org/codeinwp), [marius2012](https://profiles.wordpress.org/marius2012), [marius_codeinwp](https://profiles.wordpress.org/marius_codeinwp), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [themeisle](https://profiles.wordpress.org/themeisle), [Madalin_ThemeIsle](https://profiles.wordpress.org/Madalin_ThemeIsle), [rozroz](https://profiles.wordpress.org/rozroz)
3
  **Tags:** chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
4
  **Requires at least:** 3.5
5
- **Tested up to:** 4.8
6
  **Stable tag:** trunk
7
  **License:** GPL v2.0 or later
8
  **License URI:** http://www.opensource.org/licenses/gpl-license.php
@@ -144,6 +144,11 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
144
  5. Charts library
145
 
146
  ## Changelog ##
 
 
 
 
 
147
  ### 3.0.2 - 2017-10-10 ###
148
 
149
  * Fix dependency for composer dependencies.
2
  **Contributors:** [codeinwp](https://profiles.wordpress.org/codeinwp), [marius2012](https://profiles.wordpress.org/marius2012), [marius_codeinwp](https://profiles.wordpress.org/marius_codeinwp), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [themeisle](https://profiles.wordpress.org/themeisle), [Madalin_ThemeIsle](https://profiles.wordpress.org/Madalin_ThemeIsle), [rozroz](https://profiles.wordpress.org/rozroz)
3
  **Tags:** chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
4
  **Requires at least:** 3.5
5
+ **Tested up to:** 4.9
6
  **Stable tag:** trunk
7
  **License:** GPL v2.0 or later
8
  **License URI:** http://www.opensource.org/licenses/gpl-license.php
144
  5. Charts library
145
 
146
  ## Changelog ##
147
+ ### 3.0.3 - 2017-11-16 ###
148
+
149
+ * Adds compatibility with WordPress 4.9.
150
+
151
+
152
  ### 3.0.2 - 2017-10-10 ###
153
 
154
  * Fix dependency for composer dependencies.
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle,rozroz
3
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
4
  Requires at least: 3.5
5
- Tested up to: 4.8
6
  Stable tag: trunk
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
@@ -144,6 +144,11 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
144
  5. Charts library
145
 
146
  == Changelog ==
 
 
 
 
 
147
  = 3.0.2 - 2017-10-10 =
148
 
149
  * Fix dependency for composer dependencies.
2
  Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle,rozroz
3
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
4
  Requires at least: 3.5
5
+ Tested up to: 4.9
6
  Stable tag: trunk
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
144
  5. Charts library
145
 
146
  == Changelog ==
147
+ = 3.0.3 - 2017-11-16 =
148
+
149
+ * Adds compatibility with WordPress 4.9.
150
+
151
+
152
  = 3.0.2 - 2017-10-10 =
153
 
154
  * Fix dependency for composer dependencies.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8::getLoader();
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInitfac664167514586c3088e7acb934a540::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInit4e9647794ceae72b97c67aad7cd8b083::getLoader();
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php CHANGED
@@ -22,21 +22,21 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
22
  * @var array $options_plugin The main options list for plugins.
23
  */
24
  private $options_plugin = array(
25
- 'I only needed the plugin for a short period' => array(
26
  'id' => 1,
27
  ),
28
- 'The plugin broke my site' => array(
29
  'id' => 2,
30
  ),
31
- 'I found a better plugin' => array(
32
  'id' => 3,
33
  'type' => 'text',
34
  'placeholder' => 'What\'s the plugin\'s name?',
35
  ),
36
- 'The plugin suddenly stopped working' => array(
37
  'id' => 4,
38
  ),
39
- 'I no longer need the plugin' => array(
40
  'id' => 5,
41
  'type' => 'textarea',
42
  'placeholder' => 'If you could improve one thing about our product, what would it be?',
@@ -50,13 +50,13 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
50
  * @var array $options_theme The main options list for themes.
51
  */
52
  private $options_theme = array(
53
- 'I don\'t know how to make it look like demo' => array(
54
  'id' => 7,
55
  ),
56
- 'It lacks options' => array(
57
  'id' => 8,
58
  ),
59
- 'Is not working with a plugin that I need' => array(
60
  'id' => 9,
61
  'type' => 'text',
62
  'placeholder' => 'What is the name of the plugin',
@@ -409,10 +409,10 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
409
 
410
  $list = '';
411
  foreach ( $options as $title => $attributes ) {
412
- $id = $attributes['id'];
413
  $list .= '<li ti-option-id="' . $id . '"><input type="radio" name="ti-deactivate-option" id="' . $key . $id . '"><label for="' . $key . $id . '">' . str_replace( '{theme}', $this->product->get_name(), $title ) . '</label>';
414
  if ( array_key_exists( 'type', $attributes ) ) {
415
- $list .= '<div>';
416
  $placeholder = array_key_exists( 'placeholder', $attributes ) ? $attributes['placeholder'] : '';
417
  switch ( $attributes['type'] ) {
418
  case 'text':
@@ -431,7 +431,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
431
  . '<ul class="ti-list">' . $list . '</ul>'
432
  . '<div class="actions">'
433
  . get_submit_button(
434
- $button_submit_before , 'secondary', $this->product->get_key() . 'ti-deactivate-yes', false, array(
435
  'data-after-text' => $button_submit,
436
  )
437
  )
22
  * @var array $options_plugin The main options list for plugins.
23
  */
24
  private $options_plugin = array(
25
+ 'I only needed the plugin for a short period' => array(
26
  'id' => 1,
27
  ),
28
+ 'The plugin broke my site' => array(
29
  'id' => 2,
30
  ),
31
+ 'I found a better plugin' => array(
32
  'id' => 3,
33
  'type' => 'text',
34
  'placeholder' => 'What\'s the plugin\'s name?',
35
  ),
36
+ 'The plugin suddenly stopped working' => array(
37
  'id' => 4,
38
  ),
39
+ 'I no longer need the plugin' => array(
40
  'id' => 5,
41
  'type' => 'textarea',
42
  'placeholder' => 'If you could improve one thing about our product, what would it be?',
50
  * @var array $options_theme The main options list for themes.
51
  */
52
  private $options_theme = array(
53
+ 'I don\'t know how to make it look like demo' => array(
54
  'id' => 7,
55
  ),
56
+ 'It lacks options' => array(
57
  'id' => 8,
58
  ),
59
+ 'Is not working with a plugin that I need' => array(
60
  'id' => 9,
61
  'type' => 'text',
62
  'placeholder' => 'What is the name of the plugin',
409
 
410
  $list = '';
411
  foreach ( $options as $title => $attributes ) {
412
+ $id = $attributes['id'];
413
  $list .= '<li ti-option-id="' . $id . '"><input type="radio" name="ti-deactivate-option" id="' . $key . $id . '"><label for="' . $key . $id . '">' . str_replace( '{theme}', $this->product->get_name(), $title ) . '</label>';
414
  if ( array_key_exists( 'type', $attributes ) ) {
415
+ $list .= '<div>';
416
  $placeholder = array_key_exists( 'placeholder', $attributes ) ? $attributes['placeholder'] : '';
417
  switch ( $attributes['type'] ) {
418
  case 'text':
431
  . '<ul class="ti-list">' . $list . '</ul>'
432
  . '<div class="actions">'
433
  . get_submit_button(
434
+ $button_submit_before, 'secondary', $this->product->get_key() . 'ti-deactivate-yes', false, array(
435
  'data-after-text' => $button_submit,
436
  )
437
  )
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-factory.php CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Factory' ) ) :
21
  /**
22
  * @var array $instances collection of the instances that are registered with the factory
23
  */
24
- private $_instances = array();
25
 
26
  /**
27
  * ThemeIsle_SDK_Feedback_Factory constructor.
@@ -32,8 +32,8 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Factory' ) ) :
32
  public function __construct( $product_object, $feedback_types ) {
33
  if ( $product_object instanceof ThemeIsle_SDK_Product && $feedback_types && is_array( $feedback_types ) ) {
34
  foreach ( $feedback_types as $type ) {
35
- $class = 'ThemeIsle_SDK_Feedback_' . ucwords( $type );
36
- $instance = new $class( $product_object );
37
  $this->_instances[ $type ] = $instance;
38
  $instance->setup_hooks();
39
  }
21
  /**
22
  * @var array $instances collection of the instances that are registered with the factory
23
  */
24
+ private $_instances = array();
25
 
26
  /**
27
  * ThemeIsle_SDK_Feedback_Factory constructor.
32
  public function __construct( $product_object, $feedback_types ) {
33
  if ( $product_object instanceof ThemeIsle_SDK_Product && $feedback_types && is_array( $feedback_types ) ) {
34
  foreach ( $feedback_types as $type ) {
35
+ $class = 'ThemeIsle_SDK_Feedback_' . ucwords( $type );
36
+ $instance = new $class( $product_object );
37
  $this->_instances[ $type ] = $instance;
38
  $instance->setup_hooks();
39
  }
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-translate.php CHANGED
@@ -789,18 +789,20 @@ The process is easy, and you can join by following the link below!';
789
  function can_notify() {
790
  if ( ! $this->product->is_wordpress_available() ) {
791
  $this->disable();
792
-
793
  return false;
794
  }
795
  $show = get_option( $this->product->get_key() . '_translate_flag', 'yes' );
796
  if ( 'no' === $show ) {
797
  return false;
798
  }
799
- $lang = get_user_locale();
800
  if ( 'en_US' === $lang ) {
801
  return false;
802
  }
803
  $languages = $this->get_translations();
 
 
 
804
  if ( ! isset( $languages['translations'] ) ) {
805
  return false;
806
  }
@@ -817,6 +819,21 @@ The process is easy, and you can join by following the link below!';
817
  return true;
818
  }
819
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
  /**
821
  * Shows the notification
822
  */
@@ -914,7 +931,7 @@ The process is easy, and you can join by following the link below!';
914
  * @return void|string Html code of the notification.
915
  */
916
  function get_html( $key ) {
917
- $lang = get_user_locale();
918
  $link = $this->get_locale_paths( $lang );
919
  $heading = apply_filters( $this->product->get_key() . '_feedback_translate_heading', $this->heading );
920
  $product = $this->product->get_friendly_name();
789
  function can_notify() {
790
  if ( ! $this->product->is_wordpress_available() ) {
791
  $this->disable();
 
792
  return false;
793
  }
794
  $show = get_option( $this->product->get_key() . '_translate_flag', 'yes' );
795
  if ( 'no' === $show ) {
796
  return false;
797
  }
798
+ $lang = $this->get_user_locale();
799
  if ( 'en_US' === $lang ) {
800
  return false;
801
  }
802
  $languages = $this->get_translations();
803
+ if ( ! is_array( $languages ) ) {
804
+ return false;
805
+ }
806
  if ( ! isset( $languages['translations'] ) ) {
807
  return false;
808
  }
819
  return true;
820
  }
821
 
822
+ /**
823
+ * Get the user's locale.
824
+ */
825
+ private function get_user_locale() {
826
+ global $wp_version;
827
+ if ( version_compare( $wp_version, '4.7.0', '>=' ) ) {
828
+ return get_user_locale();
829
+ }
830
+ $user = wp_get_current_user();
831
+ if ( $user ) {
832
+ $locale = $user->locale;
833
+ }
834
+ return $locale ? $locale : get_locale();
835
+ }
836
+
837
  /**
838
  * Shows the notification
839
  */
931
  * @return void|string Html code of the notification.
932
  */
933
  function get_html( $key ) {
934
+ $lang = $this->get_user_locale();
935
  $link = $this->get_locale_paths( $lang );
936
  $heading = apply_filters( $this->product->get_key() . '_feedback_translate_heading', $this->heading );
937
  $product = $this->product->get_friendly_name();
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback.php CHANGED
@@ -34,7 +34,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback' ) ) :
34
  */
35
  public function __construct( $product_object ) {
36
  if ( $product_object instanceof ThemeIsle_SDK_Product ) {
37
- $this->product = $product_object;
38
  }
39
  $this->setup_hooks();
40
  }
@@ -52,12 +52,12 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback' ) ) :
52
  * @param string $attributes The attributes of the post body.
53
  */
54
  protected function call_api( $attributes ) {
55
- $slug = $this->product->get_slug();
56
  $version = $this->product->get_version();
57
- $attributes['slug'] = $slug;
58
  $attributes['version'] = $version;
59
 
60
- $response = wp_remote_post(
61
  $this->feedback_url, array(
62
  'body' => $attributes,
63
  )
@@ -70,8 +70,8 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback' ) ) :
70
  * @param array $options The options array.
71
  */
72
  function randomize_options( $options ) {
73
- $new = array();
74
- $keys = array_keys( $options );
75
  shuffle( $keys );
76
 
77
  foreach ( $keys as $key ) {
34
  */
35
  public function __construct( $product_object ) {
36
  if ( $product_object instanceof ThemeIsle_SDK_Product ) {
37
+ $this->product = $product_object;
38
  }
39
  $this->setup_hooks();
40
  }
52
  * @param string $attributes The attributes of the post body.
53
  */
54
  protected function call_api( $attributes ) {
55
+ $slug = $this->product->get_slug();
56
  $version = $this->product->get_version();
57
+ $attributes['slug'] = $slug;
58
  $attributes['version'] = $version;
59
 
60
+ $response = wp_remote_post(
61
  $this->feedback_url, array(
62
  'body' => $attributes,
63
  )
70
  * @param array $options The options array.
71
  */
72
  function randomize_options( $options ) {
73
+ $new = array();
74
+ $keys = array_keys( $options );
75
  shuffle( $keys );
76
 
77
  foreach ( $keys as $key ) {
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php CHANGED
@@ -60,7 +60,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
60
  /**
61
  * @var array $allowed_authors The allowed authors.
62
  */
63
- private $allowed_authors = array( 'proteusthemes.com', 'anarieldesign.com' );
64
  /**
65
  * @var bool $requires_license Either user needs to activate it with license.
66
  */
60
  /**
61
  * @var array $allowed_authors The allowed authors.
62
  */
63
+ private $allowed_authors = array( 'proteusthemes.com', 'anarieldesign.com', 'prothemedesign.com' );
64
  /**
65
  * @var bool $requires_license Either user needs to activate it with license.
66
  */
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-rollback.php CHANGED
@@ -195,7 +195,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Rollback' ) ) :
195
  'package' => $rollback['url'],
196
  );
197
 
198
- $temp_object = (object) $temp_array;
199
  $plugin_transient->response[ $plugin_folder . '/' . $plugin_file ] = $temp_object;
200
  set_site_transient( 'update_plugins', $plugin_transient );
201
 
195
  'package' => $rollback['url'],
196
  );
197
 
198
+ $temp_object = (object) $temp_array;
199
  $plugin_transient->response[ $plugin_folder . '/' . $plugin_file ] = $temp_object;
200
  set_site_transient( 'update_plugins', $plugin_transient );
201
 
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget.php CHANGED
@@ -29,7 +29,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Widget' ) ) :
29
  */
30
  public function __construct( $product_object ) {
31
  if ( $product_object instanceof ThemeIsle_SDK_Product ) {
32
- $this->product = $product_object;
33
  }
34
  $this->setup_hooks();
35
  }
29
  */
30
  public function __construct( $product_object ) {
31
  if ( $product_object instanceof ThemeIsle_SDK_Product ) {
32
+ $this->product = $product_object;
33
  }
34
  $this->setup_hooks();
35
  }
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widgets-factory.php CHANGED
@@ -27,8 +27,8 @@ if ( ! class_exists( 'ThemeIsle_SDK_Widgets_Factory' ) ) :
27
  public function __construct( $product_object, $widgets ) {
28
  if ( $product_object instanceof ThemeIsle_SDK_Product && $widgets && is_array( $widgets ) ) {
29
  foreach ( $widgets as $widget ) {
30
- $class = 'ThemeIsle_SDK_Widget_' . str_replace( ' ', '_', ucwords( str_replace( '_', ' ', $widget ) ) );
31
- $instance = new $class( $product_object );
32
  $instance->setup_hooks();
33
  }
34
  }
27
  public function __construct( $product_object, $widgets ) {
28
  if ( $product_object instanceof ThemeIsle_SDK_Product && $widgets && is_array( $widgets ) ) {
29
  foreach ( $widgets as $widget ) {
30
+ $class = 'ThemeIsle_SDK_Widget_' . str_replace( ' ', '_', ucwords( str_replace( '_', ' ', $widget ) ) );
31
+ $instance = new $class( $product_object );
32
  $instance->setup_hooks();
33
  }
34
  }
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit9bcd436c52290a0aeb2e7568b8347e2c
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequire9bcd436c52290a0aeb2e7568b8347e2c($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequire9bcd436c52290a0aeb2e7568b8347e2c($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit611687ce89c67fd97edfe5af65d1afe8', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire611687ce89c67fd97edfe5af65d1afe8($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire611687ce89c67fd97edfe5af65d1afe8($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInitfac664167514586c3088e7acb934a540 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitfac664167514586c3088e7acb934a540 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitfac664167514586c3088e7acb934a540', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitfac664167514586c3088e7acb934a540', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInit4e9647794ceae72b97c67aad7cd8b083 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit4e9647794ceae72b97c67aad7cd8b083', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit4e9647794ceae72b97c67aad7cd8b083', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
vendor/composer/installed.json CHANGED
@@ -6,15 +6,15 @@
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
9
- "reference": "1a64ea86e864d07a99c0f6fe89d3a1370df47c35"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/1a64ea86e864d07a99c0f6fe89d3a1370df47c35",
14
- "reference": "1a64ea86e864d07a99c0f6fe89d3a1370df47c35",
15
  "shasum": ""
16
  },
17
- "time": "2017-09-27 13:25:43",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
9
+ "reference": "a05ab89594381a935573300f0aafdae8c28cefe5"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/a05ab89594381a935573300f0aafdae8c28cefe5",
14
+ "reference": "a05ab89594381a935573300f0aafdae8c28cefe5",
15
  "shasum": ""
16
  },
17
+ "time": "2017-11-13 10:52:46",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {