Version Description
Download this release
Release Info
Developer | codeinwp |
Plugin | WordPress Charts and Graphs Lite |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.5
- CHANGELOG.md +6 -4
- classes/Visualizer/Module/Admin.php +34 -12
- classes/Visualizer/Module/Chart.php +1 -1
- classes/Visualizer/Plugin.php +1 -2
- classes/Visualizer/Render/Library.php +7 -2
- classes/Visualizer/Render/Page/Types.php +11 -6
- classes/Visualizer/Render/Sidebar.php +2 -2
- classes/Visualizer/Source.php +4 -3
- css/frame.css +36 -46
- css/media.css +1 -1
- images/available_pro.png +0 -0
- images/ui-icons.png +0 -0
- index.php +1 -1
- js/media/view.js +1 -1
- languages/visualizer.pot +39 -27
- readme.txt +5 -0
CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
|
|
|
|
|
|
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
|
6 |
|
7 |
|
8 |
-
Improved responsive mechanism
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
|
9 |
|
10 |
|
|
classes/Visualizer/Module/Admin.php
CHANGED
@@ -72,22 +72,43 @@ class Visualizer_Module_Admin extends Visualizer_Module {
|
|
72 |
* @access private
|
73 |
* @return array The associated array of chart types with localized names.
|
74 |
*/
|
75 |
-
public static function _getChartTypesLocalized() {
|
76 |
$types = array(
|
77 |
-
'
|
78 |
-
'
|
79 |
-
'
|
80 |
-
'
|
81 |
-
'
|
82 |
-
'
|
83 |
-
'
|
84 |
-
'
|
85 |
-
'
|
86 |
-
|
|
|
|
|
|
|
87 |
);
|
88 |
|
89 |
$types = apply_filters( 'visualizer_pro_chart_types', $types );
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
return $types;
|
92 |
}
|
93 |
|
@@ -140,7 +161,8 @@ class Visualizer_Module_Admin extends Visualizer_Module {
|
|
140 |
'create' => esc_html__( 'Create New', 'visualizer' ),
|
141 |
),
|
142 |
'library' => array(
|
143 |
-
'filters'
|
|
|
144 |
),
|
145 |
'nonce' => wp_create_nonce(),
|
146 |
'buildurl' => add_query_arg( 'action', Visualizer_Plugin::ACTION_CREATE_CHART, admin_url( 'admin-ajax.php' ) ),
|
72 |
* @access private
|
73 |
* @return array The associated array of chart types with localized names.
|
74 |
*/
|
75 |
+
public static function _getChartTypesLocalized( $enabledOnly = false, $get2Darray = false ) {
|
76 |
$types = array(
|
77 |
+
'pie' => array( 'name' => esc_html__( 'Pie', 'visualizer' ), 'enabled' => true ),
|
78 |
+
'line' => array( 'name' => esc_html__( 'Line', 'visualizer' ), 'enabled' => true ),
|
79 |
+
'area' => array( 'name' => esc_html__( 'Area', 'visualizer' ), 'enabled' => true ),
|
80 |
+
'geo' => array( 'name' => esc_html__( 'Geo', 'visualizer' ), 'enabled' => true ),
|
81 |
+
'bar' => array( 'name' => esc_html__( 'Bar', 'visualizer' ), 'enabled' => true ),
|
82 |
+
'column' => array( 'name' => esc_html__( 'Column', 'visualizer' ), 'enabled' => true ),
|
83 |
+
'gauge' => array( 'name' => esc_html__( 'Gauge', 'visualizer' ), 'enabled' => true ),
|
84 |
+
'scatter' => array( 'name' => esc_html__( 'Scatter', 'visualizer' ), 'enabled' => true ),
|
85 |
+
'candlestick' => array( 'name' => esc_html__( 'Candlestick', 'visualizer' ), 'enabled' => true ),
|
86 |
+
// pro types
|
87 |
+
'table' => array( 'name' => esc_html__( 'Table', 'visualizer' ), 'enabled' => false ),
|
88 |
+
'timeline' => array( 'name' => esc_html__( 'Timeline', 'visualizer' ), 'enabled' => false ),
|
89 |
+
'combo' => array( 'name' => esc_html__( 'Combo', 'visualizer' ), 'enabled' => false ),
|
90 |
);
|
91 |
|
92 |
$types = apply_filters( 'visualizer_pro_chart_types', $types );
|
93 |
|
94 |
+
if ( $enabledOnly ) {
|
95 |
+
$filtered = array();
|
96 |
+
foreach ( $types as $type => $array ) {
|
97 |
+
if ( ! $array['enabled'] ) { continue;
|
98 |
+
}
|
99 |
+
$filtered[ $type ] = $array;
|
100 |
+
}
|
101 |
+
$types = $filtered;
|
102 |
+
}
|
103 |
+
|
104 |
+
if ( $get2Darray ) {
|
105 |
+
$doubleD = array();
|
106 |
+
foreach ( $types as $type => $array ) {
|
107 |
+
$doubleD[ $type ] = $array['name'];
|
108 |
+
}
|
109 |
+
$types = $doubleD;
|
110 |
+
}
|
111 |
+
|
112 |
return $types;
|
113 |
}
|
114 |
|
161 |
'create' => esc_html__( 'Create New', 'visualizer' ),
|
162 |
),
|
163 |
'library' => array(
|
164 |
+
'filters' => self::_getChartTypesLocalized( true, true ),
|
165 |
+
'types' => array_keys( self::_getChartTypesLocalized( true, true ) ),
|
166 |
),
|
167 |
'nonce' => wp_create_nonce(),
|
168 |
'buildurl' => add_query_arg( 'action', Visualizer_Plugin::ACTION_CREATE_CHART, admin_url( 'admin-ajax.php' ) ),
|
classes/Visualizer/Module/Chart.php
CHANGED
@@ -300,7 +300,7 @@ class Visualizer_Module_Chart extends Visualizer_Module {
|
|
300 |
|
301 |
$render = new Visualizer_Render_Page_Types();
|
302 |
$render->type = get_post_meta( $this->_chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true );
|
303 |
-
$render->types =
|
304 |
$render->chart = $this->_chart;
|
305 |
|
306 |
wp_enqueue_style( 'visualizer-frame' );
|
300 |
|
301 |
$render = new Visualizer_Render_Page_Types();
|
302 |
$render->type = get_post_meta( $this->_chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true );
|
303 |
+
$render->types = Visualizer_Module_Admin::_getChartTypesLocalized();
|
304 |
$render->chart = $this->_chart;
|
305 |
|
306 |
wp_enqueue_style( 'visualizer-frame' );
|
classes/Visualizer/Plugin.php
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
class Visualizer_Plugin {
|
30 |
|
31 |
const NAME = 'visualizer';
|
32 |
-
const VERSION = '1.7.
|
33 |
|
34 |
// custom post types
|
35 |
const CPT_VISUALIZER = 'visualizer';
|
@@ -165,7 +165,6 @@ class Visualizer_Plugin {
|
|
165 |
*/
|
166 |
public static function getChartTypes() {
|
167 |
$array = array_keys( Visualizer_Module_Admin::_getChartTypesLocalized() );
|
168 |
-
unset( $array[0] ); // all
|
169 |
return $array;
|
170 |
}
|
171 |
|
29 |
class Visualizer_Plugin {
|
30 |
|
31 |
const NAME = 'visualizer';
|
32 |
+
const VERSION = '1.7.5';
|
33 |
|
34 |
// custom post types
|
35 |
const CPT_VISUALIZER = 'visualizer';
|
165 |
*/
|
166 |
public static function getChartTypes() {
|
167 |
$array = array_keys( Visualizer_Module_Admin::_getChartTypesLocalized() );
|
|
|
168 |
return $array;
|
169 |
}
|
170 |
|
classes/Visualizer/Render/Library.php
CHANGED
@@ -98,14 +98,19 @@ class Visualizer_Render_Library extends Visualizer_Render {
|
|
98 |
// Added by Ash/Upwork
|
99 |
echo '<div id="visualizer-types" class="visualizer-clearfix">';
|
100 |
echo '<ul>';
|
101 |
-
foreach ( $this->types as $type => $
|
|
|
|
|
|
|
|
|
|
|
102 |
echo '<li class="visualizer-list-item">';
|
103 |
if ( $type == $this->type ) {
|
104 |
echo '<a class="page-numbers current" href="', esc_url( add_query_arg( 'vpage', false ) ), '">';
|
105 |
echo $label;
|
106 |
echo '</a>';
|
107 |
} else {
|
108 |
-
echo
|
109 |
echo $label;
|
110 |
echo '</a>';
|
111 |
}
|
98 |
// Added by Ash/Upwork
|
99 |
echo '<div id="visualizer-types" class="visualizer-clearfix">';
|
100 |
echo '<ul>';
|
101 |
+
foreach ( $this->types as $type => $array ) {
|
102 |
+
$label = $array['name'];
|
103 |
+
$link = '<a class="page-numbers" href="' . esc_url( add_query_arg( array( 'type' => $type, 'vpage' => false ) ) ) . '">';
|
104 |
+
if ( ! $array['enabled'] ) {
|
105 |
+
$link = "<a class='pro-upsell page-numbers' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
|
106 |
+
}
|
107 |
echo '<li class="visualizer-list-item">';
|
108 |
if ( $type == $this->type ) {
|
109 |
echo '<a class="page-numbers current" href="', esc_url( add_query_arg( 'vpage', false ) ), '">';
|
110 |
echo $label;
|
111 |
echo '</a>';
|
112 |
} else {
|
113 |
+
echo $link;
|
114 |
echo $label;
|
115 |
echo '</a>';
|
116 |
}
|
classes/Visualizer/Render/Page/Types.php
CHANGED
@@ -53,11 +53,21 @@ class Visualizer_Render_Page_Types extends Visualizer_Render_Page {
|
|
53 |
*/
|
54 |
protected function _renderContent() {
|
55 |
echo '<div id="type-picker">';
|
56 |
-
foreach ( $this->types as $type ) {
|
57 |
echo '<div class="type-box type-box-', $type, '">';
|
|
|
|
|
|
|
|
|
58 |
echo '<label class="type-label', $type == $this->type ? ' type-label-selected' : '', '">';
|
|
|
|
|
59 |
echo '<input type="radio" class="type-radio" name="type" value="', $type, '"', checked( $type, $this->type, false ), '>';
|
|
|
60 |
echo '</label>';
|
|
|
|
|
|
|
61 |
echo '</div>';
|
62 |
}
|
63 |
echo '</div>';
|
@@ -82,11 +92,6 @@ class Visualizer_Render_Page_Types extends Visualizer_Render_Page {
|
|
82 |
protected function _renderToolbar() {
|
83 |
if ( defined( 'Visualizer_Pro' ) ) {
|
84 |
global $Visualizer_Pro;
|
85 |
-
} else {
|
86 |
-
echo "<a class='pro-upsell' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
|
87 |
-
echo "<span class='dashicons dashicons-plus-alt'></span>";
|
88 |
-
echo esc_html( 'Three Additional Chart Types Available in the Pro Version ( Table, Timeline and Combo Chart ) ', 'visualizer' );
|
89 |
-
echo '</a>';
|
90 |
}
|
91 |
echo '<input type="submit" class="button button-primary button-large push-right" value="', esc_attr__( 'Next', 'visualizer' ), '">';
|
92 |
}
|
53 |
*/
|
54 |
protected function _renderContent() {
|
55 |
echo '<div id="type-picker">';
|
56 |
+
foreach ( $this->types as $type => $array ) {
|
57 |
echo '<div class="type-box type-box-', $type, '">';
|
58 |
+
if ( ! $array['enabled'] ) {
|
59 |
+
echo "<a class='pro-upsell' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
|
60 |
+
echo "<span class='visualizder-pro-label'>" . __( 'PREMIUM', 'visualizer' ) . '</span>';
|
61 |
+
}
|
62 |
echo '<label class="type-label', $type == $this->type ? ' type-label-selected' : '', '">';
|
63 |
+
echo '<span>' . $array['name'] . '</span>';
|
64 |
+
if ( $array['enabled'] ) {
|
65 |
echo '<input type="radio" class="type-radio" name="type" value="', $type, '"', checked( $type, $this->type, false ), '>';
|
66 |
+
}
|
67 |
echo '</label>';
|
68 |
+
if ( ! $array['enabled'] ) {
|
69 |
+
echo '</a>';
|
70 |
+
}
|
71 |
echo '</div>';
|
72 |
}
|
73 |
echo '</div>';
|
92 |
protected function _renderToolbar() {
|
93 |
if ( defined( 'Visualizer_Pro' ) ) {
|
94 |
global $Visualizer_Pro;
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
echo '<input type="submit" class="button button-primary button-large push-right" value="', esc_attr__( 'Next', 'visualizer' ), '">';
|
97 |
}
|
classes/Visualizer/Render/Sidebar.php
CHANGED
@@ -526,7 +526,7 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
|
|
526 |
esc_html__( 'Number Format', 'visualizer' ),
|
527 |
'series[' . $index . '][format]',
|
528 |
isset( $this->series[ $index ]['format'] ) ? $this->series[ $index ]['format'] : '',
|
529 |
-
sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU pattern set%
|
530 |
'#,###.##'
|
531 |
);
|
532 |
break;
|
@@ -537,7 +537,7 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
|
|
537 |
esc_html__( 'Date Format', 'visualizer' ),
|
538 |
'series[' . $index . '][format]',
|
539 |
isset( $this->series[ $index ]['format'] ) ? $this->series[ $index ]['format'] : '',
|
540 |
-
sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU date and time format%
|
541 |
'eeee, dd LLLL yyyy'
|
542 |
);
|
543 |
break;
|
526 |
esc_html__( 'Number Format', 'visualizer' ),
|
527 |
'series[' . $index . '][format]',
|
528 |
isset( $this->series[ $index ]['format'] ) ? $this->series[ $index ]['format'] : '',
|
529 |
+
sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, or $# to add dollar sign before digits. Pay attention that if you use % percentage format then your values will be multiplied by 100.', 'visualizer' ), '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', '</a>' ),
|
530 |
'#,###.##'
|
531 |
);
|
532 |
break;
|
537 |
esc_html__( 'Date Format', 'visualizer' ),
|
538 |
'series[' . $index . '][format]',
|
539 |
isset( $this->series[ $index ]['format'] ) ? $this->series[ $index ]['format'] : '',
|
540 |
+
sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %1$sICU date and time format%2$s.', 'visualizer' ), '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', '</a>' ),
|
541 |
'eeee, dd LLLL yyyy'
|
542 |
);
|
543 |
break;
|
classes/Visualizer/Source.php
CHANGED
@@ -118,20 +118,20 @@ abstract class Visualizer_Source {
|
|
118 |
*/
|
119 |
protected function _normalizeData( $data ) {
|
120 |
// normalize values
|
121 |
-
// print_r($data);
|
122 |
foreach ( $this->_series as $i => $series ) {
|
123 |
// if no value exists for the seires, then add null
|
124 |
if ( ! isset( $data[ $i ] ) ) {
|
125 |
$data[ $i ] = null;
|
126 |
}
|
127 |
|
128 |
-
if ( is_null( $data[ $i ] )
|
129 |
continue;
|
130 |
}
|
131 |
|
132 |
switch ( $series['type'] ) {
|
133 |
case 'number':
|
134 |
-
$data[ $i ] = ( is_numeric( $data[ $i ] ) ) ? floatval( $data[ $i ] ) : null;
|
135 |
break;
|
136 |
case 'boolean':
|
137 |
$data[ $i ] = ! empty( $data[ $i ] ) ? filter_validate( $data[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
|
@@ -149,6 +149,7 @@ abstract class Visualizer_Source {
|
|
149 |
break;
|
150 |
}
|
151 |
}
|
|
|
152 |
return $data;
|
153 |
}
|
154 |
|
118 |
*/
|
119 |
protected function _normalizeData( $data ) {
|
120 |
// normalize values
|
121 |
+
// error_log(print_r($data,true));
|
122 |
foreach ( $this->_series as $i => $series ) {
|
123 |
// if no value exists for the seires, then add null
|
124 |
if ( ! isset( $data[ $i ] ) ) {
|
125 |
$data[ $i ] = null;
|
126 |
}
|
127 |
|
128 |
+
if ( is_null( $data[ $i ] ) ) {
|
129 |
continue;
|
130 |
}
|
131 |
|
132 |
switch ( $series['type'] ) {
|
133 |
case 'number':
|
134 |
+
$data[ $i ] = ( is_numeric( $data[ $i ] ) ) ? floatval( $data[ $i ] ) : (is_numeric( str_replace( ',', '', $data[ $i ] ) ) ? floatval( str_replace( ',', '', $data[ $i ] ) ) : null);
|
135 |
break;
|
136 |
case 'boolean':
|
137 |
$data[ $i ] = ! empty( $data[ $i ] ) ? filter_validate( $data[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
|
149 |
break;
|
150 |
}
|
151 |
}
|
152 |
+
// error_log(print_r($data,true));
|
153 |
return $data;
|
154 |
}
|
155 |
|
css/frame.css
CHANGED
@@ -336,6 +336,27 @@ div.group-content .group-description {
|
|
336 |
/******************************** TYPE PICKER ******************************/
|
337 |
/******************************************************************************/
|
338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
#type-picker {
|
340 |
width: 952px;
|
341 |
margin: 50px auto;
|
@@ -343,6 +364,7 @@ div.group-content .group-description {
|
|
343 |
|
344 |
.type-box {
|
345 |
float: left;
|
|
|
346 |
margin: 0 20px 20px 0;
|
347 |
border: 1px dashed #ddd;
|
348 |
background-color: #efefef;
|
@@ -354,10 +376,22 @@ div.group-content .group-description {
|
|
354 |
margin-right: 0;
|
355 |
}
|
356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
.type-label {
|
358 |
display: block;
|
359 |
width: 270px;
|
360 |
-
height:
|
361 |
padding: 15px;
|
362 |
border: 1px solid #e0e0e0;
|
363 |
background-color: white;
|
@@ -367,7 +401,7 @@ div.group-content .group-description {
|
|
367 |
}
|
368 |
|
369 |
.type-label-selected,
|
370 |
-
.type-label:hover {
|
371 |
background-image: url(../images/chart_types.png);
|
372 |
}
|
373 |
|
@@ -419,50 +453,6 @@ div.group-content .group-description {
|
|
419 |
background-position: -597px -670px;
|
420 |
}
|
421 |
|
422 |
-
a.pro-upsell {
|
423 |
-
display: -webkit-box;
|
424 |
-
display: -webkit-flex;
|
425 |
-
display: -ms-flexbox;
|
426 |
-
display: flex;
|
427 |
-
position: relative;
|
428 |
-
top: 10px;
|
429 |
-
height: 20px;
|
430 |
-
margin: 0;
|
431 |
-
padding: 10px 20px;
|
432 |
-
border: 1px solid #2c80d6;
|
433 |
-
border-radius: 50px;
|
434 |
-
background-color: #4285f4;
|
435 |
-
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
436 |
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
437 |
-
text-decoration: none;
|
438 |
-
-webkit-transition: all 0.5s ease-in;
|
439 |
-
transition: all 0.5s ease-in;
|
440 |
-
|
441 |
-
-webkit-align-items: center;
|
442 |
-
align-items: center;
|
443 |
-
-webkit-box-align: center;
|
444 |
-
-ms-flex-align: center;
|
445 |
-
}
|
446 |
-
|
447 |
-
a.pro-upsell:hover {
|
448 |
-
background-color: #5a95f5;
|
449 |
-
-webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
450 |
-
box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
451 |
-
}
|
452 |
-
|
453 |
-
a.pro-upsell span {
|
454 |
-
display: inline-block;
|
455 |
-
margin-right: 10px;
|
456 |
-
color: #fff;
|
457 |
-
}
|
458 |
-
|
459 |
-
a.pro-upsell {
|
460 |
-
display: inline;
|
461 |
-
color: #fff;
|
462 |
-
font-size: 13px;
|
463 |
-
font-weight: bold;
|
464 |
-
}
|
465 |
-
|
466 |
/******************************************************************************/
|
467 |
/******************************** OTHER STYLES ******************************/
|
468 |
/******************************************************************************/
|
336 |
/******************************** TYPE PICKER ******************************/
|
337 |
/******************************************************************************/
|
338 |
|
339 |
+
.type-box span {
|
340 |
+
display: block;
|
341 |
+
position: absolute;
|
342 |
+
right: 0;
|
343 |
+
bottom: -6px;
|
344 |
+
width: 100%;
|
345 |
+
padding: 4px 0;
|
346 |
+
border-top: 1px dashed #ddd;
|
347 |
+
border-bottom: 1px dashed #ddd;
|
348 |
+
background: #e0e0e0;
|
349 |
+
background-color: #efefef;
|
350 |
+
-webkit-box-shadow: 0 0 8px #ddd;
|
351 |
+
box-shadow: 0 0 8px #ddd;
|
352 |
+
font-weight: bold;
|
353 |
+
text-align: center;
|
354 |
+
}
|
355 |
+
|
356 |
+
.type-box .pro-upsell {
|
357 |
+
color: #c55555;
|
358 |
+
}
|
359 |
+
|
360 |
#type-picker {
|
361 |
width: 952px;
|
362 |
margin: 50px auto;
|
364 |
|
365 |
.type-box {
|
366 |
float: left;
|
367 |
+
position: relative;
|
368 |
margin: 0 20px 20px 0;
|
369 |
border: 1px dashed #ddd;
|
370 |
background-color: #efefef;
|
376 |
margin-right: 0;
|
377 |
}
|
378 |
|
379 |
+
.type-box .pro-upsell .visualizder-pro-label {
|
380 |
+
display: inline;
|
381 |
+
position: absolute;
|
382 |
+
top: 0;
|
383 |
+
width: 74px;
|
384 |
+
height: 10px;
|
385 |
+
height: 17px;
|
386 |
+
border: none;
|
387 |
+
color: #fff;
|
388 |
+
background: #c55555;
|
389 |
+
}
|
390 |
+
|
391 |
.type-label {
|
392 |
display: block;
|
393 |
width: 270px;
|
394 |
+
height: 205px;
|
395 |
padding: 15px;
|
396 |
border: 1px solid #e0e0e0;
|
397 |
background-color: white;
|
401 |
}
|
402 |
|
403 |
.type-label-selected,
|
404 |
+
.type-box > .type-label:hover {
|
405 |
background-image: url(../images/chart_types.png);
|
406 |
}
|
407 |
|
453 |
background-position: -597px -670px;
|
454 |
}
|
455 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
/******************************************************************************/
|
457 |
/******************************** OTHER STYLES ******************************/
|
458 |
/******************************************************************************/
|
css/media.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*
|
2 |
-
Version: 1.7.
|
3 |
*/
|
4 |
#visualizer-library-view {
|
5 |
padding: 30px 10px 10px 30px;
|
1 |
/*
|
2 |
+
Version: 1.7.5
|
3 |
*/
|
4 |
#visualizer-library-view {
|
5 |
padding: 30px 10px 10px 30px;
|
images/available_pro.png
CHANGED
Binary file
|
images/ui-icons.png
CHANGED
Binary file
|
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: 1.7.
|
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: 1.7.5
|
8 |
Author: Themeisle
|
9 |
Author URI: http://themeisle.com
|
10 |
License: GPL v2.0 or later
|
js/media/view.js
CHANGED
@@ -358,7 +358,7 @@
|
|
358 |
var self = this;
|
359 |
|
360 |
self.filters = {};
|
361 |
-
_.each(
|
362 |
self.filters[type] = {
|
363 |
text: l10n.library.filters[type],
|
364 |
key: type,
|
358 |
var self = this;
|
359 |
|
360 |
self.filters = {};
|
361 |
+
_.each(l10n.library.types, function(type, i) {
|
362 |
self.filters[type] = {
|
363 |
text: l10n.library.filters[type],
|
364 |
key: type,
|
languages/visualizer.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Visualizer: Charts and Graphs Lite 1.7.
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -25,71 +25,79 @@ msgstr ""
|
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
#: classes/Visualizer/Module/Admin.php:77
|
28 |
-
msgid "
|
29 |
msgstr ""
|
30 |
|
31 |
#: classes/Visualizer/Module/Admin.php:78
|
32 |
-
msgid "
|
33 |
msgstr ""
|
34 |
|
35 |
#: classes/Visualizer/Module/Admin.php:79
|
36 |
-
msgid "
|
37 |
msgstr ""
|
38 |
|
39 |
#: classes/Visualizer/Module/Admin.php:80
|
40 |
-
msgid "
|
41 |
msgstr ""
|
42 |
|
43 |
#: classes/Visualizer/Module/Admin.php:81
|
44 |
-
msgid "
|
45 |
msgstr ""
|
46 |
|
47 |
#: classes/Visualizer/Module/Admin.php:82
|
48 |
-
msgid "
|
49 |
msgstr ""
|
50 |
|
51 |
#: classes/Visualizer/Module/Admin.php:83
|
52 |
-
msgid "
|
53 |
msgstr ""
|
54 |
|
55 |
#: classes/Visualizer/Module/Admin.php:84
|
56 |
-
msgid "
|
57 |
msgstr ""
|
58 |
|
59 |
#: classes/Visualizer/Module/Admin.php:85
|
60 |
-
msgid "
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: classes/Visualizer/Module/Admin.php:
|
64 |
-
msgid "
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: classes/Visualizer/Module/Admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
msgid "Visualizations"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: classes/Visualizer/Module/Admin.php:
|
72 |
msgid "From Library"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: classes/Visualizer/Module/Admin.php:
|
76 |
msgid "Create New"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: classes/Visualizer/Module/Admin.php:
|
80 |
-
#: classes/Visualizer/Render/Library.php:
|
81 |
msgid "Visualizer Library"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: classes/Visualizer/Module/Admin.php:
|
85 |
msgid "Library"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: classes/Visualizer/Module/Admin.php:
|
89 |
msgid "Knowledge Base"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: classes/Visualizer/Module/Admin.php:
|
93 |
msgid "Pro Addon"
|
94 |
msgstr ""
|
95 |
|
@@ -149,16 +157,16 @@ msgstr ""
|
|
149 |
msgid "Search"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: classes/Visualizer/Render/Library.php:
|
153 |
#: classes/Visualizer/Render/Templates.php:85
|
154 |
msgid "No charts found"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: classes/Visualizer/Render/Library.php:
|
158 |
msgid "Add New"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: classes/Visualizer/Render/Library.php:
|
162 |
msgid ""
|
163 |
"%s option is disabled in your php.ini config. Please, enable it by change "
|
164 |
"its value to 1. This option increases the speed of remote CSV uploading."
|
@@ -202,7 +210,11 @@ msgstr ""
|
|
202 |
msgid "Back"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: classes/Visualizer/Render/Page/Types.php:
|
|
|
|
|
|
|
|
|
206 |
msgid "Next"
|
207 |
msgstr ""
|
208 |
|
@@ -1306,7 +1318,7 @@ msgstr ""
|
|
1306 |
#: classes/Visualizer/Render/Sidebar.php:529
|
1307 |
msgid ""
|
1308 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1309 |
-
"%1$sICU pattern set%
|
1310 |
"or $# to add dollar sign before digits. Pay attention that if you use % "
|
1311 |
"percentage format then your values will be multiplied by 100."
|
1312 |
msgstr ""
|
@@ -1318,7 +1330,7 @@ msgstr ""
|
|
1318 |
#: classes/Visualizer/Render/Sidebar.php:540
|
1319 |
msgid ""
|
1320 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1321 |
-
"%1$sICU date and time format%
|
1322 |
msgstr ""
|
1323 |
|
1324 |
#: classes/Visualizer/Render/Templates.php:69
|
2 |
# This file is distributed under the GPL v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Visualizer: Charts and Graphs Lite 1.7.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
|
7 |
+
"POT-Creation-Date: 2016-12-09 18:57:52+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
|
27 |
#: classes/Visualizer/Module/Admin.php:77
|
28 |
+
msgid "Pie"
|
29 |
msgstr ""
|
30 |
|
31 |
#: classes/Visualizer/Module/Admin.php:78
|
32 |
+
msgid "Line"
|
33 |
msgstr ""
|
34 |
|
35 |
#: classes/Visualizer/Module/Admin.php:79
|
36 |
+
msgid "Area"
|
37 |
msgstr ""
|
38 |
|
39 |
#: classes/Visualizer/Module/Admin.php:80
|
40 |
+
msgid "Geo"
|
41 |
msgstr ""
|
42 |
|
43 |
#: classes/Visualizer/Module/Admin.php:81
|
44 |
+
msgid "Bar"
|
45 |
msgstr ""
|
46 |
|
47 |
#: classes/Visualizer/Module/Admin.php:82
|
48 |
+
msgid "Column"
|
49 |
msgstr ""
|
50 |
|
51 |
#: classes/Visualizer/Module/Admin.php:83
|
52 |
+
msgid "Gauge"
|
53 |
msgstr ""
|
54 |
|
55 |
#: classes/Visualizer/Module/Admin.php:84
|
56 |
+
msgid "Scatter"
|
57 |
msgstr ""
|
58 |
|
59 |
#: classes/Visualizer/Module/Admin.php:85
|
60 |
+
msgid "Candlestick"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: classes/Visualizer/Module/Admin.php:87
|
64 |
+
msgid "Table"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: classes/Visualizer/Module/Admin.php:88
|
68 |
+
msgid "Timeline"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: classes/Visualizer/Module/Admin.php:89
|
72 |
+
msgid "Combo"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: classes/Visualizer/Module/Admin.php:157
|
76 |
msgid "Visualizations"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: classes/Visualizer/Module/Admin.php:160
|
80 |
msgid "From Library"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: classes/Visualizer/Module/Admin.php:161
|
84 |
msgid "Create New"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: classes/Visualizer/Module/Admin.php:240
|
88 |
+
#: classes/Visualizer/Render/Library.php:168
|
89 |
msgid "Visualizer Library"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: classes/Visualizer/Module/Admin.php:364
|
93 |
msgid "Library"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: classes/Visualizer/Module/Admin.php:387
|
97 |
msgid "Knowledge Base"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: classes/Visualizer/Module/Admin.php:392
|
101 |
msgid "Pro Addon"
|
102 |
msgstr ""
|
103 |
|
157 |
msgid "Search"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: classes/Visualizer/Render/Library.php:140
|
161 |
#: classes/Visualizer/Render/Templates.php:85
|
162 |
msgid "No charts found"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: classes/Visualizer/Render/Library.php:169
|
166 |
msgid "Add New"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: classes/Visualizer/Render/Library.php:188
|
170 |
msgid ""
|
171 |
"%s option is disabled in your php.ini config. Please, enable it by change "
|
172 |
"its value to 1. This option increases the speed of remote CSV uploading."
|
210 |
msgid "Back"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: classes/Visualizer/Render/Page/Types.php:60
|
214 |
+
msgid "PREMIUM"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: classes/Visualizer/Render/Page/Types.php:96
|
218 |
msgid "Next"
|
219 |
msgstr ""
|
220 |
|
1318 |
#: classes/Visualizer/Render/Sidebar.php:529
|
1319 |
msgid ""
|
1320 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1321 |
+
"%1$sICU pattern set%2$s. Use something like #,### to get 1,234 as output, "
|
1322 |
"or $# to add dollar sign before digits. Pay attention that if you use % "
|
1323 |
"percentage format then your values will be multiplied by 100."
|
1324 |
msgstr ""
|
1330 |
#: classes/Visualizer/Render/Sidebar.php:540
|
1331 |
msgid ""
|
1332 |
"Enter custom format pattern to apply to this series value, similar to the "
|
1333 |
+
"%1$sICU date and time format%2$s."
|
1334 |
msgstr ""
|
1335 |
|
1336 |
#: classes/Visualizer/Render/Templates.php:69
|
readme.txt
CHANGED
@@ -70,6 +70,11 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
73 |
= 1.7.2=
|
74 |
* Improved charts responsive system
|
75 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.7.5=
|
74 |
+
* Removed footer banner upsell
|
75 |
+
* Fixed series settings issue
|
76 |
+
* Fixed issue with comas being used in numbers
|
77 |
+
|
78 |
= 1.7.2=
|
79 |
* Improved charts responsive system
|
80 |
|