From 593d39ffe6624f3131a91403e5d5d21d277bd3a3 Mon Sep 17 00:00:00 2001 From: idtemankampus-creator Date: Thu, 17 Sep 2026 22:51:52 +0700 Subject: [PATCH] style(ui): redesign dashboard with modern WP admin aesthetics, responsive grid, custom CSS, and pill switcher --- dummylab.php | 337 +++++++++++++++++++++++++++++---------------------- 1 file changed, 189 insertions(+), 148 deletions(-) diff --git a/dummylab.php b/dummylab.php index 3dcf376..c86102d 100644 --- a/dummylab.php +++ b/dummylab.php @@ -3,7 +3,7 @@ * Plugin Name: DummyLab โ€“ Dummy Post & Content Generator * Plugin URI: https://apps.masbudikusuma.my.id/dummylab-wp * Description: Advanced dummy content generator for WordPress development with safety controls and bulk purge features. - * Version: 1.0.0 + * Version: 1.1.0 * Author: masbudikusuma * Author URI: https://masbudi.my.id * Text Domain: dummylab @@ -62,167 +62,208 @@ class DummyLab { $t = $this->get_translations($ui_lang); ?> -
-
+ + +
+ +
-

๐Ÿงช DummyLab โ€“ Post & Page Generator

-

masbudikusuma |

+

๐Ÿงช DummyLab v1.1.0

+

masbudikusuma

- -
-
-

+

+

' . esc_html(intval($_GET['count'])) . ' ' . esc_html($t['msg_generated']); } elseif ($_GET['status'] === 'purged') { - echo esc_html(intval($_GET['count'])) . ' ' . esc_html($t['msg_purged']); + echo '๐Ÿงน ' . esc_html(intval($_GET['count'])) . ' ' . esc_html($t['msg_purged']); } ?>

-
+
-
-

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -

-
- -

-
- -
- -

-
- -
-

- -
-
- -
+ +
โš™๏ธ
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
- + +
๐Ÿท๏ธ
+
+
+ + +

+
+
+ + +

+
+
+ + +
+
+ + +
+
+ + +
๐Ÿ“
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+
+ +
+ +
-
+
-
-

-

:

+
+

๐Ÿ—‘๏ธ

+

+ : +

-

- ($dummy_count === 0)]); ?> +

+ ($dummy_count === 0)]); ?>
-
-

๐Ÿ“–

-
    +
    +

    ๐Ÿ“˜

    +
    1. @@ -231,9 +272,9 @@ class DummyLab {
    -
    -

    ๐Ÿ›ก๏ธ

    -
      +
      +

      ๐Ÿ›ก๏ธ

      +
      • @@ -252,7 +293,9 @@ class DummyLab { 'plugin_doc' => 'Plugin Documentation', 'msg_generated' => 'dummy posts generated successfully!', 'msg_purged' => 'dummy items deleted successfully!', - 'form_title' => 'Generate Dummy Content', + 'sec_general' => 'General Settings', + 'sec_taxonomy' => 'Taxonomy & Author', + 'sec_content' => 'Content & Media', 'lbl_count' => 'Post/Page Count', 'lbl_type' => 'Content Type', 'opt_post' => 'Post', @@ -264,40 +307,38 @@ class DummyLab { 'opt_pending' => 'Pending Review', 'opt_private' => 'Private', 'lbl_cats' => 'Categories', - 'desc_cats' => 'Categories created automatically if not present. Comma-separated. Ignored for Pages.', + 'desc_cats' => 'Categories created automatically if not present. Comma-separated.', 'lbl_tags' => 'Additional Tags', - 'desc_tags' => 'Optional, comma-separated.', + 'desc_tags' => 'Optional, comma-separated tags.', 'lbl_author' => 'Author', 'opt_random_author' => 'Random from all users', 'lbl_date' => 'Post Date', 'opt_date_now' => 'Current time', 'opt_date_past' => 'Random in past few days', 'opt_date_future' => 'Future date (Scheduled)', - 'desc_date' => 'If future date, post status will automatically set to "Scheduled".', 'lbl_length' => 'Article Length', 'opt_len_short' => 'Short (2-3 paragraphs)', 'opt_len_medium' => 'Medium (4-6 paragraphs + heading)', 'opt_len_long' => 'Long (7-10 paragraphs + heading, quote)', - 'lbl_image' => 'Featured Image', + 'lbl_image_size' => 'Featured Image Size', 'opt_use_img' => 'Include random image from Picsum Photos', 'opt_img_small' => 'Small (800x600)', 'opt_img_med' => 'Medium (1200x800)', 'opt_img_large' => 'Large (1600x1000)', - 'lbl_extra' => 'Additional Options', 'opt_comments' => 'Include dummy comments', 'opt_sticky' => 'Make first post sticky (Post type only)', - 'btn_generate' => 'Generate Dummy Data', - 'purge_title' => 'Cleanup / Rollback', + 'btn_generate' => '๐Ÿš€ Generate Dummy Data', + 'purge_title' => 'Cleanup & Purge', 'purge_active' => 'Active dummy items', 'purge_desc' => 'Permanently deletes all posts, pages, and media attachments created by DummyLab.', - 'btn_purge' => 'Delete All Dummy Data', + 'btn_purge' => 'Hapus Semua Data Dummy', 'guide_title' => 'Quick Usage Guide', 'guide_step1' => 'Select total count and content type (Post/Page).', 'guide_step2' => 'Choose generated text language and length.', 'guide_step3' => 'Check image box to auto-fetch thumbnails from Picsum.', 'guide_step4' => 'Click Purge anytime to completely clean test data.', - 'safety_title' => 'Safe Development', - 'safety_item1' => 'All dummy posts are tracked via unique metadata key.', + 'safety_title' => 'Development Safety', + 'safety_item1' => 'All dummy posts tracked via unique metadata key.', 'safety_item2' => 'Clean purge removes featured images from Media Library.', 'safety_item3' => 'Safe for staging and local theme testing.', ]; @@ -308,7 +349,9 @@ class DummyLab { 'plugin_doc' => 'Dokumentasi Plugin', 'msg_generated' => 'konten dummy berhasil dibuat!', 'msg_purged' => 'data dummy berhasil dibersihkan!', - 'form_title' => 'Generate Content Dummy', + 'sec_general' => 'Pengaturan Utama', + 'sec_taxonomy' => 'Taksonomi & Penulis', + 'sec_content' => 'Konten & Media', 'lbl_count' => 'Jumlah Post/Halaman', 'lbl_type' => 'Tipe Konten', 'opt_post' => 'Post', @@ -320,7 +363,7 @@ class DummyLab { 'opt_pending' => 'Pending Review', 'opt_private' => 'Private', 'lbl_cats' => 'Kategori', - 'desc_cats' => 'Kategori dibuat otomatis jika belum ada. Pisahkan dengan koma. Tidak berlaku untuk Halaman.', + 'desc_cats' => 'Kategori dibuat otomatis jika belum ada. Pisahkan dengan koma.', 'lbl_tags' => 'Tag Tambahan', 'desc_tags' => 'Opsional, pisahkan dengan koma.', 'lbl_author' => 'Penulis', @@ -328,22 +371,20 @@ class DummyLab { 'lbl_date' => 'Tanggal Post', 'opt_date_now' => 'Waktu sekarang', 'opt_date_past' => 'Acak dalam beberapa hari terakhir', - 'opt_date_future' => 'Rentang tanggal tertentu (Future/Scheduled)', - 'desc_date' => 'Jika tanggal di masa depan, status otomatis "Scheduled".', + 'opt_date_future' => 'Rentang tanggal tertentu (Scheduled)', 'lbl_length' => 'Panjang Artikel', 'opt_len_short' => 'Pendek (2-3 paragraf)', 'opt_len_medium' => 'Sedang (4-6 paragraf + heading)', 'opt_len_long' => 'Panjang (7-10 paragraf + heading, quote)', - 'lbl_image' => 'Gambar Unggulan', + 'lbl_image_size' => 'Ukuran Gambar Unggulan', 'opt_use_img' => 'Sertakan gambar acak dari Picsum Photos', 'opt_img_small' => 'Kecil (800x600)', 'opt_img_med' => 'Sedang (1200x800)', 'opt_img_large' => 'Besar (1600x1000)', - 'lbl_extra' => 'Opsi Tambahan', 'opt_comments' => 'Sertakan komentar dummy', 'opt_sticky' => 'Jadikan post pertama sebagai sticky post (khusus Post)', - 'btn_generate' => 'Generate Data Dummy', - 'purge_title' => 'Cleanup / Rollback', + 'btn_generate' => '๐Ÿš€ Generate Data Dummy', + 'purge_title' => 'Pembersihan & Purge', 'purge_active' => 'Total data dummy aktif', 'purge_desc' => 'Tindakan ini akan menghapus permanen seluruh post, page, dan gambar yang dibuat oleh DummyLab.', 'btn_purge' => 'Hapus Semua Data Dummy',