18
18
// +----------------------------------------------------------------------+
19
19
// | Author: Eugene Manuilov <[email protected] > |
20
20
// +----------------------------------------------------------------------+
21
+
21
22
/**
22
23
* Renders visualizer library page.
23
24
*
@@ -89,7 +90,7 @@ private function _renderLibrary() {
89
90
$ link = '<a class=" " href=" ' . esc_url ( add_query_arg ( array (
90
91
'type ' => $ type ,
91
92
'vpage ' => false ,
92
- ) ) ) . '"> ' ;
93
+ ) ) ) . '"> ' ;
93
94
if ( ! $ array ['enabled ' ] ) {
94
95
$ link = "<a class=' visualizer-pro-only' href=' " . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'> " ;
95
96
}
@@ -119,13 +120,6 @@ private function _renderLibrary() {
119
120
$ this ->_renderChartBox ( $ placeholder_id , $ chart ['id ' ] );
120
121
}
121
122
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
- }
129
123
} else {
130
124
echo '<div id="visualizer-library" class="visualizer-clearfix"> ' ;
131
125
echo '<div class="visualizer-chart"> ' ;
@@ -146,6 +140,13 @@ private function _renderLibrary() {
146
140
}
147
141
$ this ->_renderSidebar ();
148
142
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
+ }
149
150
}
150
151
151
152
/**
0 commit comments