diff --git a/admin/slm-add-licenses.php b/admin/slm-add-licenses.php index 07beedf..60387b5 100755 --- a/admin/slm-add-licenses.php +++ b/admin/slm-add-licenses.php @@ -664,7 +664,9 @@ function slm_add_licenses_menu()

+
+
diff --git a/admin/slm-admin-functions.php b/admin/slm-admin-functions.php index 35a3328..29a1780 100755 --- a/admin/slm-admin-functions.php +++ b/admin/slm-admin-functions.php @@ -35,7 +35,15 @@ function slm_admin_tools_menu() echo '
' . $msg; echo '

'; } - ?> + if (isset($_POST['slm_clear_log'])) { + global $wpdb; + $table = SLM_TBL_LIC_LOG; + $slm_log_clean = $wpdb->query("TRUNCATE TABLE $table"); + + echo '

Log was cleared succesfully!

'; + + } +?>

@@ -51,7 +59,19 @@ function slm_admin_tools_menu()
- +

+
+

+
+
+ +
+
+
+ +'; echo ''; } diff --git a/public/assets/css/slm-front-end.css b/public/assets/css/slm-front-end.css index 5af60a4..ef8f63f 100644 --- a/public/assets/css/slm-front-end.css +++ b/public/assets/css/slm-front-end.css @@ -43,4 +43,4 @@ background: #f0283e; } #slm_licenses_table tbody tr:nth-child(even) {background: #fbfbfb} -#slm_licenses_table tbody tr:nth-child(odd) {background: #FFF} \ No newline at end of file +#slm_licenses_table tbody tr:nth-child(odd) {background: #FFF} diff --git a/public/assets/js/slm.js b/public/assets/js/slm.js index 66ebe1b..2776548 100644 --- a/public/assets/js/slm.js +++ b/public/assets/js/slm.js @@ -15,4 +15,5 @@ function slm_exportlicense(){ var text = license_data; var filename = "license-" + filelicname + ".json"; download(filename, text); -} \ No newline at end of file +} + diff --git a/woocommerce/includes/wc_licenses_class.php b/woocommerce/includes/wc_licenses_class.php index a5f1035..35ffc5d 100755 --- a/woocommerce/includes/wc_licenses_class.php +++ b/woocommerce/includes/wc_licenses_class.php @@ -108,6 +108,42 @@ public function endpoint_content() ?> + + + + + + + + + + + + + + + +
> @@ -161,9 +197,14 @@ public function endpoint_content() } ?> - + +
+ + + +
@@ -229,15 +270,16 @@ public function endpoint_content() +