Skip to content

Commit 4500623

Browse files
committed
styling changes and file rename
1.0.9 added: some styling on the show hide button, some file names changed, use mainwp sidebar and header
1 parent 57f3cb1 commit 4500623

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

hhdev-mwpcpv-dashboard.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
// mwpcpv dashboard
3-
// version: 1.0.8
3+
// version: 1.0.9
44
// ---------------------
55
class MainWPCheckPluginVulnerability extends MainWPCheckPluginVulnerabilityActivator {
66

@@ -26,7 +26,7 @@ public function hhdev_mwpcpv_managesites_subpage( $subPage ) {
2626
$subPage[] = array(
2727
'title' => 'Check Plugins Vulnerability',
2828
'slug' => &$this->plugin_handle,
29-
'sitetab' => false, // show/hide tab menu - not working correct, true is hidden
29+
'sitetab' => true, // show/hide tab menu - not working correct, true is hidden
3030
'menu_hidden' => false,
3131
'callback' => array( 'MainWPCheckPluginVulnerability', 'hhdev_mwpcpv_render_page' ),
3232
);
@@ -41,6 +41,8 @@ public static function hhdev_mwpcpv_render_page() {
4141

4242
global $MainWPCheckPluginVulnerabilityActivator;
4343

44+
do_action('mainwp-pageheader-extensions', __FILE__); // page header
45+
4446
?>
4547
<div id="mainwp_custom_dashboard_extension">
4648

@@ -104,6 +106,13 @@ public static function hhdev_mwpcpv_render_page() {
104106
});
105107
});
106108
</script>
109+
<style>
110+
<!--
111+
#toggle-novuln { max-width: 320px; border: 1px solid #ccc; border-radius: 3px; padding: 3px; text-align: center; background-color: #7FB100; cursor:pointer; }
112+
.ui.info.message {max-width: 480px;}
113+
.mainwp-page-title {display: none;}
114+
-->
115+
</style>
107116
<div class='ui segment'>
108117
<p><?php _e('Please make sure you do a "sync dashboard with sites" before you run a scan!','hhdev-mwpcpv'); ?></p>
109118
<form id="run-scan" name="run-scan" action="<?php echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']); ?>" method="post">
@@ -116,8 +125,10 @@ public static function hhdev_mwpcpv_render_page() {
116125
<?php } // end if file exist ?>
117126

118127
</form>
128+
<?php if (isset($_POST['mwpcpv-run-scan'])) { ?>
119129
<p>&nbsp;</p>
120-
<p id="toggle-novuln" style="cursor:pointer;"><?php if (isset($_POST['mwpcpv-run-scan'])) _e('Hide/show websites with no vulnerabilities.','hhdev-mwpcpv'); ?></p>
130+
<p id="toggle-novuln"><?php _e('Hide/show websites with no vulnerabilities.','hhdev-mwpcpv'); ?></p>
131+
<?php } ?>
121132
</div>
122133

123134
<?php
@@ -224,6 +235,8 @@ public static function hhdev_mwpcpv_render_page() {
224235
</div>
225236
</div>
226237
<?php
238+
// do_action('mainwp-pagefooter-extensions', __FILE__); // mainwp footer
239+
227240
}
228241

229242

hhdev-mwp-check-plugins-vulnerability.php renamed to hhdev-mwpcpv.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
* Plugin Name: Check Plugins Vulnerability
3+
* Plugin Name: Check Plugins Vulnerability Extension
44
* Plugin URI: https://haha.nl
55
* Description: Check the installed website plugins for vulnerability use the wordfence vulnerability data feed api.
6-
* Version: 1.0.8
6+
* Version: 1.0.9
77
* Author: herbert hoekstra - haha!
88
* Author URI: https://haha.nl
99
* Documentation URI: https://haha.nl/wordpress-plug-in-op-maat/
@@ -377,8 +377,9 @@ public function hhdev_make_adapted_file() {
377377

378378
/*
379379
change log:
380+
- 1.0.9 added: some styling on the show hide button, some file names changed, use mainwp sidebar and header
380381
- 1.0.8 added: Dashboard: option to show hide no vulnerability results
381-
- 1.0.7 added: version syntaxt check
382+
- 1.0.7 added: version syntax check
382383
- 1.0.7 fix: Dashboard: No vulnerabilties repaeting on vulnerable notice.
383384
- 1.0.6 fix: using to_inclusive to adjust version compare, fix: add all vulnerable versions in the clean data file, added: jellix version compare
384385
- 1.0.5 fix: missing entries in cleaned data file

0 commit comments

Comments
 (0)