Skip to content

Commit 2f46094

Browse files
committed
fix: rate it not always visible
1 parent 03ab7b0 commit 2f46094

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

classes/Visualizer/Module/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function render_review_notice( $footer_text ) {
113113
__( 'Enjoying %1$s? %2$s %3$s rating. Thank you for being so supportive!', 'visualizer' ),
114114
'<b>Visualizer</b>',
115115
esc_html__( 'You can help us by leaving a', 'visualizer' ),
116-
'<a href="https://wordpress.org/support/plugin/visualizer/reviews/" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
116+
'<a href="https://wordpress.org/support/plugin/visualizer/reviews/#new-post" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
117117
);
118118
break;
119119
}

classes/Visualizer/Render/Page/Data.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ protected function _renderSidebarContent() {
108108
</div>
109109

110110
<li class="viz-group bottom-fixed" id="vz-chart-copyright">
111-
Hate it? Love it? <a href="https://wordpress.org/support/plugin/visualizer/reviews/#new-post" target="_blank">Rate it!</a>
112-
<br/>
113-
Visualizer &copy;
111+
<?php _e( 'Hate it? Love it?', 'visualizer' ); ?> <a href="https://wordpress.org/support/plugin/visualizer/reviews/#new-post" target="_blank"><?php _e( 'Rate it!', 'visualizer' ); ?></a>
114112
<?php
115113
// phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date, WordPress.DateTime.CurrentTimeTimestamp.Requested
116114
echo date( 'Y', current_time( 'timestamp' ) );

css/frame.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,12 @@
176176
margin: 0;
177177
}
178178

179-
.viz-group.bottom-fixed {
179+
.viz-group.bottom-fixed {
180180
display: block;
181-
position: absolute;
182-
bottom: 0;
183-
width: 100%;
181+
position: fixed;
182+
width: 350px;
183+
padding: 12px;
184+
margin: 0 auto;
184185
}
185186

186187
.viz-group ul li h2,
@@ -1012,8 +1013,10 @@ button#editor-chart-button {
10121013
}
10131014

10141015
#vz-chart-copyright {
1015-
bottom: 10px;
1016+
bottom: 60px;
10161017
text-align: center;
1018+
z-index: 999;
1019+
background: #f3f3f3;
10171020
}
10181021

10191022
#sidebar {

0 commit comments

Comments
 (0)