Skip to content

Commit ef202cc

Browse files
support for non Latin characters
2 parents 216b2fa + 4271131 commit ef202cc

File tree

16 files changed

+71
-137
lines changed

16 files changed

+71
-137
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ dist
1717
artifact
1818
composer.json
1919
composer.lock
20+
key.enc

.travis.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
language: php
22
php:
3-
- "7.1"
4-
- "7.0"
5-
- "5.6"
6-
- "5.5"
7-
- "5.4"
8-
- "5.3"
3+
- '7.1'
4+
- '7.0'
5+
- '5.6'
6+
- '5.5'
7+
- '5.4'
8+
- '5.3'
99
sudo: false
1010
matrix:
1111
include:
12-
- php: "5.6"
12+
- php: '5.6'
1313
install: true
1414
before_script: chmod +x bin/wraith.sh
1515
env: TEST_SUITE=Wraith_Visual_Regression_Testing WRAITH_FAIL=5
16-
script: ./bin/wraith.sh
16+
script: "./bin/wraith.sh"
1717
branches:
1818
except:
1919
- "/^*-v[0-9]/"
2020
env:
2121
matrix:
2222
- WP_VERSION=latest WP_MULTISITE=0
2323
global:
24-
- MASTER_BRANCH=master UPSTREAM_REPO=Codeinwp/visualizer STORE_URL=https://themeisle.com DEPLOY_BUILD=7.0
24+
- MASTER_BRANCH=master UPSTREAM_REPO=Codeinwp/visualizer STORE_URL=https://themeisle.com
25+
DEPLOY_BUILD=7.0
2526
before_install:
26-
- mkdir -p bin && cd bin
27-
- wget "$PIRATE_FLEET"load.sh
28-
- cd .. && chmod +x bin/load.sh
29-
- ". ./bin/load.sh"
27+
- mkdir -p bin && cd bin
28+
- wget "$PIRATE_FLEET"load.sh
29+
- cd .. && chmod +x bin/load.sh
30+
- ". ./bin/load.sh"
3031
install:
3132
- chmod +x bin/install-dependencies.sh
3233
- ". ./bin/install-dependencies.sh"
3334
script:
3435
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then grunt travis; fi;
3536
before_deploy:
37+
- openssl aes-256-cbc -K $encrypted_794a7a2c76e1_key -iv $encrypted_794a7a2c76e1_iv
38+
-in key.enc -out /tmp/key -d
3639
- chmod +x bin/prepare-deploy.sh
3740
- ". ./bin/prepare-deploy.sh"
3841
deploy:
@@ -48,7 +51,7 @@ deploy:
4851
on:
4952
branch: "$MASTER_BRANCH"
5053
repo: "$UPSTREAM_REPO"
51-
condition: $TRAVIS_PHP_VERSION = $DEPLOY_BUILD
54+
condition: "$TRAVIS_PHP_VERSION = $DEPLOY_BUILD"
5255
- provider: s3
5356
access_key_id: "$AWS_ACCESS_KEY"
5457
secret_access_key: "$AWS_SECRET_KEY"
@@ -61,7 +64,7 @@ deploy:
6164
on:
6265
repo: "$UPSTREAM_REPO"
6366
branch: "$MASTER_BRANCH"
64-
condition: $TRAVIS_PHP_VERSION = $DEPLOY_BUILD
67+
condition: "$TRAVIS_PHP_VERSION = $DEPLOY_BUILD"
6568
after_deploy:
6669
- chmod +x bin/deploy.sh
6770
- ". ./bin/deploy.sh"

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
### v2.1.3 - 2017-05-31
3+
**Changes:**
4+
5+
### v2.1.2 - 2017-05-30
6+
**Changes:**
7+
- Fixed priority issue with wp_enqueue_media
8+
- Added latest version of sdk
9+
210
### v2.1.1 - 2017-05-16
311
**Changes:**
412
- Fixed blinking chart issue.

classes/Visualizer/Module/Admin.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,13 @@ public function __construct( Visualizer_Plugin $plugin ) {
5454
$this->_addAction( 'load-post.php', 'enqueueMediaScripts' );
5555
$this->_addAction( 'load-post-new.php', 'enqueueMediaScripts' );
5656
$this->_addAction( 'admin_footer', 'renderTempaltes' );
57-
$this->_addAction( 'admin_enqueue_scripts', 'enqueueLibraryScripts', null, 9 );
57+
$this->_addAction( 'admin_enqueue_scripts', 'enqueueLibraryScripts', null, 8 );
5858
$this->_addAction( 'admin_menu', 'registerAdminMenu' );
5959
$this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' );
6060
$this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 );
6161
$this->_addFilter( 'plugin_row_meta', 'getPluginMetaLinks', 10, 2 );
62-
$this->_addAjaxAction( Visualizer_Plugin::ACTION_TRACK, 'visualizer_enable_track' );
6362
}
6463

65-
/**
66-
* Enable track ajax action.
67-
*/
68-
public function visualizer_enable_track() {
69-
check_admin_referer( Visualizer_Plugin::ACTION_TRACK, 'nonce' );
70-
$status = $_GET['status'];
71-
if ( $status == 'yes' ) {
72-
update_option( 'visualizer_logger_flag', 'yes' );
73-
} else {
74-
update_option( 'visualizer_logger_flag', 'no' );
75-
}
76-
wp_send_json_success( array( 'status' => $status ) );
77-
}
7864

7965
/**
8066
* Enqueues media scripts and styles.
@@ -384,11 +370,6 @@ public function renderLibraryPage() {
384370
'action' => Visualizer_Plugin::ACTION_EDIT_CHART,
385371
'library' => 'yes',
386372
), $ajaxurl ),
387-
'logger' => add_query_arg( array(
388-
'action' => Visualizer_Plugin::ACTION_TRACK,
389-
'library' => 'yes',
390-
'nonce' => wp_create_nonce( Visualizer_Plugin::ACTION_TRACK ),
391-
), $ajaxurl ),
392373
),
393374
) );
394375
// render library page

classes/Visualizer/Module/Setup.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@ public function __construct( Visualizer_Plugin $plugin ) {
4444

4545
$this->_addAction( 'init', 'setupCustomPostTypes' );
4646
$this->_addAction( 'plugins_loaded', 'loadTextDomain' );
47-
$this->_addFilter( 'visualizer_logger_flag', 'get_logger_flag', 10, 1 );
48-
}
49-
50-
/**
51-
* Either the tracking is active or not.
52-
*
53-
* @return bool The flag status.
54-
*/
55-
public function get_logger_flag() {
56-
$flag = get_option( 'visualizer_logger_flag', 'no' );
57-
58-
return ( $flag === 'yes' );
5947
}
6048

6149
/**

classes/Visualizer/Plugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class Visualizer_Plugin {
2929

3030
const NAME = 'visualizer';
31-
const VERSION = '2.1.1';
31+
const VERSION = '2.1.3';
3232

3333
// custom post types
3434
const CPT_VISUALIZER = 'visualizer';
@@ -42,7 +42,6 @@ class Visualizer_Plugin {
4242

4343
// custom actions
4444
const ACTION_GET_CHARTS = 'visualizer-get-charts';
45-
const ACTION_TRACK = 'visualizer-track';
4645
const ACTION_CREATE_CHART = 'visualizer-create-chart';
4746
const ACTION_EDIT_CHART = 'visualizer-edit-chart';
4847
const ACTION_CLONE_CHART = 'visualizer-clone-chart';

classes/Visualizer/Render/Library.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
197197
*/
198198
private function _renderSidebar() {
199199
if ( ! VISUALIZER_PRO ) {
200-
$checked = apply_filters( 'visualizer_logger_flag', false );
201-
$checked = ( $checked === false ) ? '' : 'checked';
202200
echo '<div id="visualizer-sidebar">';
203201
echo '<div class="visualizer-sidebar-box">';
204202
echo '<h3>' . __( 'Gain more editing power', 'visualizer' ) . '</h3><ul>';
@@ -208,15 +206,6 @@ private function _renderSidebar() {
208206
echo '<li>' . __( '3 more chart types', 'visualizer' ) . '</li></ul>';
209207
echo '<a href="' . Visualizer_Plugin::PRO_TEASER_URL . '" target="_blank" class="button button-primary">' . __( 'View more features', 'visualizer' ) . '</a>';
210208
echo '</div>';
211-
echo '<div class="visualizer-sidebar-box visualizer-tracking">';
212-
echo '<label class="visualizer-switch">';
213-
echo '<input type="checkbox" ' . $checked . ' >';
214-
echo '<div class="visualizer-slider visualizer-round"></div>';
215-
echo '</label>';
216-
echo '<span>' . __( 'Enable Tracking', 'visualizer' ) . '<sup>*</sup></span>';
217-
echo '<p><small><sup>*</sup>' . __( 'Allow Visualizer to anonymously track how this plugin is used and help us make the plugin better. No sensitive data is tracked.', 'visualizer' ) . '</small></p>';
218-
echo '</div>';
219-
echo '</div>';
220209
}
221210
}
222211

classes/Visualizer/Render/Page/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ class="dashicons dashicons-lock"></span></h2>
198198
</li>
199199

200200
<li class="group <?php echo apply_filters( 'visualizer_pro_upsell_class', 'only-pro-feature', 'schedule-chart' ); ?> ">
201-
<h2 class="group-title sub-group"><?php _e( 'Import from Wordpress', 'visualizer' ); ?><span
201+
<h2 class="group-title sub-group"><?php _e( 'Import from WordPress', 'visualizer' ); ?><span
202202
class="dashicons dashicons-lock"></span></h2>
203203
<div class="group-content edit-data-content">
204204
<div>
205-
<p class="group-description"><?php _e( 'You can import here data from Wordpress', 'visualizer' ); ?></p>
205+
<p class="group-description"><?php _e( 'You can import here data from WordPress', 'visualizer' ); ?></p>
206206
<input type="button" id="filter-chart-button" class="button button-primary "
207207
value="<?php _e( 'Create Filters', 'visualizer' ); ?>" data-current="chart"
208208
data-t-filter="<?php _e( 'Show Chart', 'visualizer' ); ?>"

css/media.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Version: 2.1.1
2+
Version: 2.1.3
33
*/
44
#visualizer-library-view {
55
padding: 30px 10px 10px 30px;

index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
Plugin Name: Visualizer: Charts and Graphs Lite
55
Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
66
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: 2.1.1
7+
Version: 2.1.3
88
Author: Themeisle
99
Author URI: http://themeisle.com
1010
License: GPL v2.0 or later
1111
WordPress Available: yes
1212
Requires License: no
13+
Pro Slug: visualizer-pro
1314
License URI: http://www.opensource.org/licenses/gpl-license.php
1415
*/
1516

0 commit comments

Comments
 (0)