| @@ -77,8 +77,9 @@ | ||
| 77 | 77 | if ( isset( $_GET['s'] ) && strlen( $_GET['s'] ) > 0 ) { |
| 78 | 78 | $filterBy = filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING ); |
| 79 | 79 | } |
| 80 | 80 | // Added by Ash/Upwork |
| 81 | + echo $this->custom_css; | |
| 81 | 82 | echo '<div id="visualizer-types" class="visualizer-clearfix">'; |
| 82 | 83 | echo '<ul class="subsubsub">'; |
| 83 | 84 | foreach ( $this->types as $type => $array ) { |
| 84 | 85 | if ( ! is_array( $array ) ) { |
| @@ -97,9 +98,9 @@ | ||
| 97 | 98 | if ( ! $array['enabled'] ) { |
| 98 | 99 | $link = "<a class=' visualizer-pro-only' href='" . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'>"; |
| 99 | 100 | } |
| 100 | 101 | echo '<li class="visualizer-list-item all">'; |
| 101 | - if ( $type == $this->type ) { | |
| 102 | + if ( $type === $this->type ) { | |
| 102 | 103 | echo '<a class=" current" href="', esc_url( add_query_arg( 'vpage', false ) ), '">'; |
| 103 | 104 | echo $label; |
| 104 | 105 | echo '</a>'; |
| 105 | 106 | } else { |
| @@ -173,9 +174,10 @@ | ||
| 173 | 174 | array( |
| 174 | 175 | 'action' => Visualizer_Plugin::ACTION_DELETE_CHART, |
| 175 | 176 | 'nonce' => wp_create_nonce(), |
| 176 | 177 | 'chart' => $chart_id, |
| 177 | - ), $ajax_url | |
| 178 | + ), | |
| 179 | + $ajax_url | |
| 178 | 180 | ); |
| 179 | 181 | $clone_url = add_query_arg( |
| 180 | 182 | array( |
| 181 | 183 | 'action' => Visualizer_Plugin::ACTION_CLONE_CHART, |
| @@ -181,9 +183,10 @@ | ||
| 181 | 183 | 'action' => Visualizer_Plugin::ACTION_CLONE_CHART, |
| 182 | 184 | 'nonce' => wp_create_nonce( Visualizer_Plugin::ACTION_CLONE_CHART ), |
| 183 | 185 | 'chart' => $chart_id, |
| 184 | 186 | 'type' => $this->type, |
| 185 | - ), $ajax_url | |
| 187 | + ), | |
| 188 | + $ajax_url | |
| 186 | 189 | ); |
| 187 | 190 | $export_link = add_query_arg( |
| 188 | 191 | array( |
| 189 | 192 | 'action' => Visualizer_Plugin::ACTION_EXPORT_DATA, |
| @@ -188,9 +191,10 @@ | ||
| 188 | 191 | array( |
| 189 | 192 | 'action' => Visualizer_Plugin::ACTION_EXPORT_DATA, |
| 190 | 193 | 'chart' => $chart_id, |
| 191 | 194 | 'security' => wp_create_nonce( Visualizer_Plugin::ACTION_EXPORT_DATA . Visualizer_Plugin::VERSION ), |
| 192 | - ), admin_url( 'admin-ajax.php' ) | |
| 195 | + ), | |
| 196 | + admin_url( 'admin-ajax.php' ) | |
| 193 | 197 | ); |
| 194 | 198 | echo '<div class="visualizer-chart"><div class="visualizer-chart-title">', esc_html( $title ), '</div>'; |
| 195 | 199 | echo '<div id="', $placeholder_id, '" class="visualizer-chart-canvas">'; |
| 196 | 200 | echo '<img src="', VISUALIZER_ABSURL, 'images/ajax-loader.gif" class="loader">'; |