Skip to content

Commit 27b3174

Browse files
committed
Fixed pagination issue display.
1 parent c0315f2 commit 27b3174

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

classes/Visualizer/Render/Library.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// +----------------------------------------------------------------------+
1919
// | Author: Eugene Manuilov <[email protected]> |
2020
// +----------------------------------------------------------------------+
21+
2122
/**
2223
* Renders visualizer library page.
2324
*
@@ -89,7 +90,7 @@ private function _renderLibrary() {
8990
$link = '<a class=" " href="' . esc_url( add_query_arg( array(
9091
'type' => $type,
9192
'vpage' => false,
92-
) ) ) . '">';
93+
) ) ) . '">';
9394
if ( ! $array['enabled'] ) {
9495
$link = "<a class=' visualizer-pro-only' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>";
9596
}
@@ -119,13 +120,6 @@ private function _renderLibrary() {
119120
$this->_renderChartBox( $placeholder_id, $chart['id'] );
120121
}
121122
echo '</div>';
122-
if ( is_array( $this->pagination ) ) {
123-
echo '<ul class=" subsubsub">';
124-
foreach ( $this->pagination as $page ) {
125-
echo '<li class="all">', $page, '</li>';
126-
}
127-
echo '</ul>';
128-
}
129123
} else {
130124
echo '<div id="visualizer-library" class="visualizer-clearfix">';
131125
echo '<div class="visualizer-chart">';
@@ -146,6 +140,13 @@ private function _renderLibrary() {
146140
}
147141
$this->_renderSidebar();
148142
echo '</div>';
143+
if ( is_array( $this->pagination ) ) {
144+
echo '<ul class=" subsubsub">';
145+
foreach ( $this->pagination as $page ) {
146+
echo '<li class="all">', $page, '</li>';
147+
}
148+
echo '</ul>';
149+
}
149150
}
150151

151152
/**

0 commit comments

Comments
 (0)