| @@ -113,20 +113,16 @@ | ||
| 113 | 113 | } |
| 114 | 114 | ?> |
| 115 | 115 | </div> |
| 116 | 116 | <?php |
| 117 | -$suffix = ''; | |
| 118 | 117 | if ( $section == 1 ) { |
| 119 | 118 | require 'menu_view_plugins.php'; |
| 120 | - $suffix = 'plugins'; | |
| 121 | 119 | |
| 122 | 120 | } elseif ( $section == 2 ) { |
| 123 | 121 | require 'menu_view_iostats.php'; |
| 124 | - $suffix = 'iostats'; | |
| 125 | 122 | |
| 126 | 123 | } elseif ( $section == 3 ) { |
| 127 | 124 | require 'menu_view_diskio.php'; |
| 128 | - $suffix = 'diskio'; | |
| 129 | 125 | |
| 130 | 126 | } elseif ( $section == 4 ) { |
| 131 | 127 | require 'menu_pro.php'; |
| 132 | 128 | |
| @@ -174,8 +170,14 @@ | ||
| 174 | 170 | } |
| 175 | 171 | ?> |
| 176 | 172 | </div> |
| 177 | 173 | |
| 174 | + <?php | |
| 175 | + if (! empty( $composer_warning ) ) { | |
| 176 | + echo $composer_warning; | |
| 177 | + } | |
| 178 | + ?> | |
| 179 | + | |
| 178 | 180 | <div class="alignleft actions bulkactions"> |
| 179 | 181 | <input type="button" class="button button-primary" style="min-width:100px" value="<?php esc_attr_e('Help', 'code-profiler' )?>" onclick="jQuery('#cp-footer-help').slideToggle(500);"/> |
| 180 | 182 | </div> |
| 181 | 183 | |
| @@ -183,14 +185,14 @@ | ||
| 183 | 185 | |
| 184 | 186 | <?php |
| 185 | 187 | if ( isset( $rotate_img ) ) { |
| 186 | 188 | ?> |
| 187 | - <button type="button" class="button button-secondary" id="htov" title="<?php esc_attr_e('Click to rotate graph', 'code-profiler' )?>"><span class="dashicons dashicons-image-rotate" style="vertical-align: sub;"></span></button> | |
| 189 | + <button type="button" class="button button-secondary" id="htov" title="<?php esc_attr_e('Click to rotate graph', 'code-profiler' )?>"><span class="dashicons dashicons-image-rotate" style="display: inline-block;vertical-align: middle;"></span></button> | |
| 188 | 190 | <?php |
| 189 | 191 | } |
| 190 | 192 | if ( isset( $save_png ) ) { |
| 191 | 193 | ?> |
| 192 | - <a type="button" class="button button-secondary" id="download-png-img" download="<?php echo esc_attr("{$profile_name}_{$suffix}") ?>.png" title="<?php esc_attr_e('Click to download as an image', 'code-profiler' )?>" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-download" style="vertical-align: sub;"></span><?php esc_attr_e('Download as a PNG image', 'code-profiler' )?></a> | |
| 194 | + <a type="button" class="button button-secondary" id="download-png-img" download="<?php echo esc_attr( $profile_name) ?>_plugins.png" title="<?php esc_attr_e('Click to download as an image', 'code-profiler' )?>" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-download" style="display: inline-block;vertical-align: middle;"></span><?php esc_attr_e('Download as a PNG image', 'code-profiler' )?></a> | |
| 193 | 195 | <?php |
| 194 | 196 | } |
| 195 | 197 | ?> |
| 196 | 198 | </div> |