You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/Visualizer/Render/Page/Data.php
+42-59Lines changed: 42 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -98,11 +98,12 @@ protected function _renderSidebarContent() {
98
98
</div>
99
99
<ul class="viz-group-content">
100
100
<ul class="viz-group-wrapper">
101
+
<!-- import from file -->
101
102
<li class="viz-group visualizer_source_csv">
102
103
<h2 class="viz-group-title viz-sub-group visualizer-src-tab"><?php_e( 'Import data from file', 'visualizer' ); ?></h2>
103
104
<div class="viz-group-content">
104
105
<p class="viz-group-description"><?phpesc_html_e( 'Select and upload your data CSV file here. 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>
105
-
<p class="viz-group-description"><b><?phpechosprintf( __( '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. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $this->type . '.csv" target="_blank">', $this->type, '.csv</a>' ); ?></b></p>
106
+
<p class="viz-group-description viz-info-msg"><b><?phpechosprintf( __( '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. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $this->type . '.csv" target="_blank">', $this->type, '.csv</a>' ); ?></b></p>
<h2 class="viz-group-title viz-sub-group visualizer-src-tab"><?php_e( 'Import data from URL', 'visualizer' ); ?></h2>
119
121
<ul class="viz-group-content">
122
+
<!-- import from csv url -->
120
123
<li class="viz-subsection">
121
-
<span class="viz-section-title"><?php_e( 'One time import', 'visualizer' ); ?></span>
122
-
124
+
<span class="viz-section-title"><?php_e( 'Import from CSV', 'visualizer' ); ?></span>
123
125
<div class="viz-section-items section-items">
124
-
<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>
125
-
<p class="viz-group-description"><b><?phpechosprintf( __( '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. If you have using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $this->type . '.csv" target="_blank">', $this->type, '.csv</a>' ); ?></b></p>
126
-
<p class="viz-group-description"> <?php_e( 'You can also import data from Google Spreadsheet, for more info check <a href="https://docs.themeisle.com/article/607-how-can-i-populate-data-from-google-spreadsheet" target="_blank" >this</a> tutorial', 'visualizer' ); ?></p>
126
+
<p class="viz-group-description"><?phpechosprintf( __( 'You can use this to import data from a remote CSV file or %1$sGoogle Spreadsheet%2$s.', 'visualizer' ), '<a href="https://docs.themeisle.com/article/607-how-can-i-populate-data-from-google-spreadsheet" target="_blank" >', '</a>' ); ?> </p>
127
+
<p class="viz-group-description viz-info-msg"><b><?phpechosprintf( __( '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. If you are using non-English characters, please make sure you save the file in UTF-8 encoding.', 'visualizer' ), '<a href="' . VISUALIZER_ABSURL . 'samples/' . $this->type . '.csv" target="_blank">', $this->type, '.csv</a>' ); ?></b></p>
<p class="viz-group-description"><?php_e( 'You can choose here to synchronize your chart data with a remote CSV file.', 'visualizer' ); ?> </p>
146
-
<p class="viz-group-description"> <?php_e( 'You can also synchronize with your Google Spreadsheet file, for more info check <a href="https://docs.themeisle.com/article/607-how-can-i-populate-data-from-google-spreadsheet" target="_blank" >this</a> tutorial', 'visualizer' ); ?></p>
147
-
<p class="viz-group-description"> <?php_e( 'We will update the chart data based on your time interval preference by overwriting the current data with the one from the URL.', 'visualizer' ); ?></p>
0 commit comments