Skip to content

Commit f393563

Browse files
committed
centered rating + added back upload text
- Added initial upload details text - Removed text shadow from upload button - Removed stars from the bottom
1 parent b97729b commit f393563

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

classes/Visualizer/Render/Page/Data.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ protected function _renderSidebarContent() {
7171
echo '<iframe id="thehole" name="thehole"></iframe>';
7272

7373
echo '<p class="group-description">';
74-
echo '<a href="">something here</a>';
74+
esc_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_Plugin::NAME );
75+
echo '</p>';
76+
77+
echo '<p class="group-description">';
78+
esc_html_e( 'If you are unsure about how to format your data CSV then please take a look at this sample:', Visualizer_Plugin::NAME );
79+
echo ' <a href="', VISUALIZER_ABSURL, 'samples/', $this->type, '.csv" target="_blank">', $this->type, '.csv</a> ';
80+
printf( esc_html__( 'or read how you can add Google spreadsheet in following %sarticle%s.', Visualizer_Plugin::NAME ), '<a href="https://github.com/madpixelslabs/visualizer/wiki/How-can-I-populate-data-from-Google-Spreadsheet%3F" target="_blank">', '</a>' );
7581
echo '</p>';
7682

7783
echo '<div>';
@@ -140,7 +146,6 @@ protected function _renderToolbar() {
140146
esc_html_e( 'Rate it on WordPress.org', Visualizer_Plugin::NAME );
141147
echo '</a>';
142148
echo '</div>';
143-
echo '<div id="rate-stars">&nbsp;</div>';
144149
echo '</div>';
145150

146151
echo '<input type="submit" id="settings-button" class="button button-primary button-large push-right" value="', $this->button, '">';

css/frame.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,12 @@ div.group-content .group-description {
261261
}
262262

263263
.rate-the-plugin{
264-
text-align: center;
265264
width: 40% !important;
266265
margin-top: -5px;
267266
}
268267

269268
#rate-stars {
270-
margin: 10px 0px 10px 40%;
269+
margin: 10px 0px 10px 55px;
271270
width: 100px;
272271
height: 20px;
273272
background-image: url('../images/star.png');
@@ -279,7 +278,7 @@ div.group-content .group-description {
279278
text-decoration: none;
280279
font-family: "Montserrat",sans-serif;
281280
font-weight: 400;
282-
margin: 0px 0px 0px 20px;
281+
margin: 0px 0px 0px 30px;
283282
}
284283

285284
#flattr {
@@ -461,6 +460,7 @@ div.group-content .group-description {
461460
font-weight: 700;
462461
border: 1px solid #B0B0B0 !important;
463462
box-shadow: none !important;
463+
text-shadow:none!important;
464464

465465
}
466466

0 commit comments

Comments
 (0)