Skip to content

Commit 208a773

Browse files
change class names in custom implementations
1 parent c73be58 commit 208a773

File tree

10 files changed

+72
-72
lines changed

10 files changed

+72
-72
lines changed

classes/Visualizer/Render/Page/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function _renderSidebarContent() {
9898
<li class="viz-subsection">
9999
<span class="viz-section-title"><?php _e( 'One time import', 'visualizer' ); ?></span>
100100

101-
<div class="viz-section-items">
101+
<div class="viz-section-items section-items">
102102
<p class="viz-group-description"><?php _e( 'You can use this to import data from a remote CSV file. The first row of the CSV file should contain the column headings. The second one should contain series type (string, number, boolean, date, datetime, timeofday).', 'visualizer' ); ?> </p>
103103
<p class="viz-group-description"><?php echo sprintf( __( 'If you are unsure about how to format your data CSV then please take a look at this sample: %1$s %2$s%3$s', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $this->type . '.csv" target="_blank">', $this->type, '.csv</a>' ); ?></p>
104104
<p class="viz-group-description"> <?php _e( 'You can also import data from Google Spreadsheet, for more info check <a href="https://github.com/Codeinwp/visualizer/wiki/How-can-I-populate-data-from-Google-Spreadsheet%3F" target="_blank" >this</a> tutorial', 'visualizer' ); ?></p>
@@ -119,7 +119,7 @@ class="visualizer-input">
119119
<span class="viz-section-title visualizer-import-url-schedule"><?php _e( 'Schedule Import', 'visualizer' ); ?>
120120
<span
121121
class="dashicons dashicons-lock"></span></span>
122-
<div class="viz-section-items">
122+
<div class="viz-section-items section-items">
123123
<p class="viz-group-description"><?php _e( 'You can choose here to synchronize your chart data with a remote CSV file.', 'visualizer' ); ?> </p>
124124
<p class="viz-group-description"> <?php _e( 'You can also synchronize with your Google Spreadsheet file, for more info check <a href="https://github.com/Codeinwp/visualizer/wiki/How-can-I-populate-data-from-Google-Spreadsheet%3F" target="_blank" >this</a> tutorial', 'visualizer' ); ?></p>
125125
<p class="viz-group-description"> <?php _e( 'We will update the chart data based on your time interval preference by overwritting the current data with the one from the URL.', 'visualizer' ); ?></p>

classes/Visualizer/Render/Sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected function _renderActionSettings() {
214214
'actions[]',
215215
isset( $this->actions ) && in_array( 'xls;application/vnd.ms-excel', $this->actions ) ? true : false,
216216
'xls;application/vnd.ms-excel',
217-
$disabled ? '<span class="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' ),
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' ),
218218
$disabled
219219
);
220220
self::_renderCheckboxItem(

classes/Visualizer/Render/Sidebar/Columnar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function _renderColumnarSettings() {
5353
esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', 'visualizer' )
5454
);
5555

56-
echo '<div class="section-delimiter"></div>';
56+
echo '<div class="viz-section-delimiter"></div>';
5757

5858
self::_renderSelectItem(
5959
esc_html__( 'Is Stacked', 'visualizer' ),
@@ -63,7 +63,7 @@ protected function _renderColumnarSettings() {
6363
esc_html__( 'If set to yes, series elements are stacked.', 'visualizer' )
6464
);
6565

66-
echo '<div class="section-delimiter"></div>';
66+
echo '<div class="viz-section-delimiter"></div>';
6767

6868
self::_renderTextItem(
6969
esc_html__( 'Bars Opacity', 'visualizer' ),

classes/Visualizer/Render/Sidebar/Graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function _renderChartTitleSettings() {
113113
'#000'
114114
);
115115

116-
echo '<div class="section-delimiter"></div>';
116+
echo '<div class="viz-section-delimiter"></div>';
117117

118118
self::_renderSelectItem(
119119
esc_html__( 'Axes Titles Position', 'visualizer' ),

classes/Visualizer/Render/Sidebar/Linear.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,22 +130,22 @@ protected function _renderVerticalAxisGeneralSettings() {
130130
* @access protected
131131
*/
132132
protected function _renderLineSettingsItems() {
133-
echo '<div class="section-item">';
133+
echo '<div class="viz-section-item">';
134134
echo '<a class="more-info" href="javascript:;">[?]</a>';
135135
echo '<b>', esc_html__( 'Line Width And Point Size', 'visualizer' ), '</b>';
136136

137-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
137+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
138138
echo '<tr>';
139-
echo '<td class="section-table-column">';
139+
echo '<td class="viz-section-table-column">';
140140
echo '<input type="text" name="lineWidth" class="control-text" value="', esc_attr( $this->lineWidth ), '" placeholder="2">';
141141
echo '</td>';
142-
echo '<td class="section-table-column">';
142+
echo '<td class="viz-section-table-column">';
143143
echo '<input type="text" name="pointSize" class="control-text" value="', esc_attr( $this->pointSize ), '" placeholder="0">';
144144
echo '</td>';
145145
echo '</tr>';
146146
echo '</table>';
147147

148-
echo '<p class="section-description">';
148+
echo '<p class="viz-section-description">';
149149
esc_html_e( 'Data line width and diameter of displayed points in pixels. Use zero to hide all lines or points.', 'visualizer' );
150150
echo '</p>';
151151
echo '</div>';
@@ -160,7 +160,7 @@ protected function _renderLineSettingsItems() {
160160
);
161161
}
162162

163-
echo '<div class="section-delimiter"></div>';
163+
echo '<div class="viz-section-delimiter"></div>';
164164

165165
if ( $this->_includeFocusTarget ) {
166166
self::_renderSelectItem(
@@ -202,7 +202,7 @@ protected function _renderLineSettingsItems() {
202202
esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it working you need to set multiple selection mode and tooltip trigger to display it when an user selects an element.', 'visualizer' )
203203
);
204204

205-
echo '<div class="section-delimiter"></div>';
205+
echo '<div class="viz-section-delimiter"></div>';
206206

207207
self::_renderTextItem(
208208
esc_html__( 'Point Opacity', 'visualizer' ),
@@ -249,24 +249,24 @@ protected function _renderSeries( $index ) {
249249
esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
250250
);
251251

252-
echo '<div class="section-item">';
252+
echo '<div class="viz-section-item">';
253253
echo '<a class="more-info" href="javascript:;">[?]</a>';
254254
echo '<b>', esc_html__( 'Line Width And Point Size', 'visualizer' ), '</b>';
255255

256-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
256+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
257257
echo '<tr>';
258-
echo '<td class="section-table-column">';
258+
echo '<td class="viz-section-table-column">';
259259
$line_width = isset( $this->series[ $index ]['lineWidth'] ) ? $this->series[ $index ]['lineWidth'] : '';
260260
echo '<input type="text" name="series[', $index, '][lineWidth]" class="control-text" value="', esc_attr( $line_width ), '" placeholder="2">';
261261
echo '</td>';
262-
echo '<td class="section-table-column">';
262+
echo '<td class="viz-section-table-column">';
263263
$point_size = isset( $this->series[ $index ]['pointSize'] ) ? $this->series[ $index ]['pointSize'] : '';
264264
echo '<input type="text" name="series[', $index, '][pointSize]" class="control-text" value="', esc_attr( $point_size ), '" placeholder="0">';
265265
echo '</td>';
266266
echo '</tr>';
267267
echo '</table>';
268268

269-
echo '<p class="section-description">';
269+
echo '<p class="viz-section-description">';
270270
esc_html_e( 'Overrides the global line width and point size values for this series.', 'visualizer' );
271271
echo '</p>';
272272
echo '</div>';

classes/Visualizer/Render/Sidebar/Type/Area.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function _renderLineSettingsItems() {
7777
'0.3'
7878
);
7979

80-
echo '<div class="section-delimiter"></div>';
80+
echo '<div class="viz-section-delimiter"></div>';
8181

8282
self::_renderSelectItem(
8383
esc_html__( 'Is Stacked', 'visualizer' ),
@@ -109,24 +109,24 @@ protected function _renderSeries( $index ) {
109109
esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
110110
);
111111

112-
echo '<div class="section-item">';
112+
echo '<div class="viz-section-item">';
113113
echo '<a class="more-info" href="javascript:;">[?]</a>';
114114
echo '<b>', esc_html__( 'Line Width And Point Size', 'visualizer' ), '</b>';
115115

116-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
116+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
117117
echo '<tr>';
118-
echo '<td class="section-table-column">';
118+
echo '<td class="viz-section-table-column">';
119119
$line_width = isset( $this->series[ $index ]['lineWidth'] ) ? $this->series[ $index ]['lineWidth'] : '';
120120
echo '<input type="text" name="series[', $index, '][lineWidth]" class="control-text" value="', esc_attr( $line_width ), '" placeholder="2">';
121121
echo '</td>';
122-
echo '<td class="section-table-column">';
122+
echo '<td class="viz-section-table-column">';
123123
$point_size = isset( $this->series[ $index ]['pointSize'] ) ? $this->series[ $index ]['pointSize'] : '';
124124
echo '<input type="text" name="series[', $index, '][pointSize]" class="control-text" value="', esc_attr( $point_size ), '" placeholder="0">';
125125
echo '</td>';
126126
echo '</tr>';
127127
echo '</table>';
128128

129-
echo '<p class="section-description">';
129+
echo '<p class="viz-section-description">';
130130
esc_html_e( 'Overrides the global line width and point size values for this series.', 'visualizer' );
131131
echo '</p>';
132132
echo '</div>';

classes/Visualizer/Render/Sidebar/Type/Candlestick.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function _renderLineSettings() {
6868
esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', 'visualizer' )
6969
);
7070

71-
echo '<div class="section-delimiter"></div>';
71+
echo '<div class="viz-section-delimiter"></div>';
7272

7373
self::_renderSelectItem(
7474
esc_html__( 'Selection Mode', 'visualizer' ),

classes/Visualizer/Render/Sidebar/Type/Gauge.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ protected function _renderGeneralSettings() {
5757
self::_renderGroupStart( esc_html__( 'General Settings', 'visualizer' ) );
5858
self::_renderSectionStart();
5959

60-
echo '<div class="section-item">';
60+
echo '<div class="viz-section-item">';
6161
echo '<a class="more-info" href="javascript:;">[?]</a>';
6262
echo '<b>', esc_html__( 'Min And Max Values', 'visualizer' ), '</b>';
6363

64-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
64+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
6565
echo '<tr>';
66-
echo '<td class="section-table-column">';
66+
echo '<td class="viz-section-table-column">';
6767
echo '<input type="text" name="min" class="control-text" value="', esc_attr( $this->min ), '" placeholder="0">';
6868
echo '</td>';
69-
echo '<td class="section-table-column">';
69+
echo '<td class="viz-section-table-column">';
7070
echo '<input type="text" name="max" class="control-text" value="', esc_attr( $this->max ), '" placeholder="100">';
7171
echo '</td>';
7272
echo '</tr>';
7373
echo '</table>';
7474

75-
echo '<p class="section-description">';
75+
echo '<p class="viz-section-description">';
7676
esc_html_e( 'The maximal and minimal values of the gauge.', 'visualizer' );
7777
echo '</p>';
7878
echo '</div>';
@@ -103,22 +103,22 @@ protected function _renderGreenColorSettings() {
103103
self::_renderSectionStart();
104104
self::_renderSectionDescription( esc_html__( 'Configure the green section of the gauge chart.', 'visualizer' ) );
105105

106-
echo '<div class="section-item">';
106+
echo '<div class="viz-section-item">';
107107
echo '<a class="more-info" href="javascript:;">[?]</a>';
108108
echo '<b>', esc_html__( 'From And To Range', 'visualizer' ), '</b>';
109109

110-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
110+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
111111
echo '<tr>';
112-
echo '<td class="section-table-column">';
112+
echo '<td class="viz-section-table-column">';
113113
echo '<input type="text" name="greenFrom" class="control-text" value="', esc_attr( $this->greenFrom ), '">';
114114
echo '</td>';
115-
echo '<td class="section-table-column">';
115+
echo '<td class="viz-section-table-column">';
116116
echo '<input type="text" name="greenTo" class="control-text" value="', esc_attr( $this->greenTo ), '">';
117117
echo '</td>';
118118
echo '</tr>';
119119
echo '</table>';
120120

121-
echo '<p class="section-description">';
121+
echo '<p class="viz-section-description">';
122122
esc_html_e( 'The lowest and highest values for a range marked by a green color.', 'visualizer' );
123123
echo '</p>';
124124
echo '</div>';
@@ -145,22 +145,22 @@ protected function _renderYellowColorSettings() {
145145
self::_renderSectionStart();
146146
self::_renderSectionDescription( esc_html__( 'Configure the yellow section of the gauge chart.', 'visualizer' ) );
147147

148-
echo '<div class="section-item">';
148+
echo '<div class="viz-section-item">';
149149
echo '<a class="more-info" href="javascript:;">[?]</a>';
150150
echo '<b>', esc_html__( 'From And To Range', 'visualizer' ), '</b>';
151151

152-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
152+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
153153
echo '<tr>';
154-
echo '<td class="section-table-column">';
154+
echo '<td class="viz-section-table-column">';
155155
echo '<input type="text" name="yellowFrom" class="control-text" value="', esc_attr( $this->yellowFrom ), '">';
156156
echo '</td>';
157-
echo '<td class="section-table-column">';
157+
echo '<td class="viz-section-table-column">';
158158
echo '<input type="text" name="yellowTo" class="control-text" value="', esc_attr( $this->yellowTo ), '">';
159159
echo '</td>';
160160
echo '</tr>';
161161
echo '</table>';
162162

163-
echo '<p class="section-description">';
163+
echo '<p class="viz-section-description">';
164164
esc_html_e( 'The lowest and highest values for a range marked by a yellow color.', 'visualizer' );
165165
echo '</p>';
166166
echo '</div>';
@@ -187,22 +187,22 @@ protected function _renderRedColorSettings() {
187187
self::_renderSectionStart();
188188
self::_renderSectionDescription( esc_html__( 'Configure the red section of the gauge chart.', 'visualizer' ) );
189189

190-
echo '<div class="section-item">';
190+
echo '<div class="viz-section-item">';
191191
echo '<a class="more-info" href="javascript:;">[?]</a>';
192192
echo '<b>', esc_html__( 'From And To Range', 'visualizer' ), '</b>';
193193

194-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
194+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
195195
echo '<tr>';
196-
echo '<td class="section-table-column">';
196+
echo '<td class="viz-section-table-column">';
197197
echo '<input type="text" name="redFrom" class="control-text" value="', esc_attr( $this->redFrom ), '">';
198198
echo '</td>';
199-
echo '<td class="section-table-column">';
199+
echo '<td class="viz-section-table-column">';
200200
echo '<input type="text" name="redTo" class="control-text" value="', esc_attr( $this->redTo ), '">';
201201
echo '</td>';
202202
echo '</tr>';
203203
echo '</table>';
204204

205-
echo '<p class="section-description">';
205+
echo '<p class="viz-section-description">';
206206
esc_html_e( 'The lowest and highest values for a range marked by a red color.', 'visualizer' );
207207
echo '</p>';
208208
echo '</div>';
@@ -229,22 +229,22 @@ protected function _renderViewSettings() {
229229
self::_renderSectionStart();
230230
self::_renderSectionDescription( esc_html__( 'Configure the total size of the chart. Two formats are supported: a number, or a number followed by %. A simple number is a value in pixels; a number followed by % is a percentage.', 'visualizer' ) );
231231

232-
echo '<div class="section-item">';
232+
echo '<div class="viz-section-item">';
233233
echo '<a class="more-info" href="javascript:;">[?]</a>';
234234
echo '<b>', esc_html__( 'Width And Height Of Chart', 'visualizer' ), '</b>';
235235

236-
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
236+
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
237237
echo '<tr>';
238-
echo '<td class="section-table-column">';
238+
echo '<td class="viz-section-table-column">';
239239
echo '<input type="text" name="width" class="control-text" value="', esc_attr( $this->width ), '" placeholder="100%">';
240240
echo '</td>';
241-
echo '<td class="section-table-column">';
241+
echo '<td class="viz-section-table-column">';
242242
echo '<input type="text" name="height" class="control-text" value="', esc_attr( $this->height ), '" placeholder="400">';
243243
echo '</td>';
244244
echo '</tr>';
245245
echo '</table>';
246246

247-
echo '<p class="section-description">';
247+
echo '<p class="viz-section-description">';
248248
esc_html_e( 'Determines the total width and height of the chart.', 'visualizer' );
249249
echo '</p>';
250250
echo '</div>';

0 commit comments

Comments
 (0)