Spaces:
Running
Running
File size: 40,611 Bytes
ecbfafb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebPlato WordPress Setup Wizard</title>
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--bg-body: #f1f5f9;
--bg-card: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--border: #e2e8f0;
--sidebar-width: 280px;
--header-height: 70px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-body);
color: var(--text-main);
height: 100vh;
display: flex;
overflow: hidden;
}
/* --- Sidebar --- */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-card);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
z-index: 10;
transition: transform 0.3s ease;
}
.sidebar-header {
height: var(--header-height);
display: flex;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid var(--border);
}
.logo {
font-weight: 800;
font-size: 1.5rem;
color: var(--primary);
display: flex;
align-items: center;
gap: 10px;
}
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 20px 0;
}
.nav-item {
padding: 12px 20px;
display: flex;
align-items: center;
gap: 12px;
color: var(--text-muted);
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
font-size: 0.95rem;
border-left: 3px solid transparent;
}
.nav-item:hover {
background-color: #f8fafc;
color: var(--primary);
}
.nav-item.active {
background-color: #eef2ff;
color: var(--primary);
border-left-color: var(--primary);
font-weight: 600;
}
.nav-item i {
width: 20px;
text-align: center;
}
/* --- Main Content --- */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.top-bar {
height: var(--header-height);
background: var(--bg-card);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
}
.breadcrumb {
font-size: 0.9rem;
color: var(--text-muted);
}
.breadcrumb span {
color: var(--text-main);
font-weight: 600;
}
.progress-container {
display: flex;
align-items: center;
gap: 15px;
}
.progress-label {
font-size: 0.85rem;
font-weight: 600;
}
.progress-bar-bg {
width: 200px;
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--success);
width: 0%;
transition: width 0.5s ease;
}
.content-area {
flex: 1;
overflow-y: auto;
padding: 30px;
}
/* --- Sections --- */
.section-panel {
display: none;
animation: fadeIn 0.3s ease;
}
.section-panel.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.panel-header {
margin-bottom: 25px;
}
.panel-title {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 10px;
}
.panel-desc {
color: var(--text-muted);
max-width: 800px;
line-height: 1.6;
}
/* --- Cards & Grids --- */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #f1f5f9;
}
.card-title {
font-weight: 600;
color: var(--text-main);
display: flex;
align-items: center;
gap: 8px;
}
/* --- Forms & Inputs --- */
.form-group {
margin-bottom: 15px;
}
.form-label {
display: block;
margin-bottom: 8px;
font-size: 0.9rem;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 6px;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.2s;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 20px;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
border: none;
transition: all 0.2s;
gap: 8px;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text-main);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.85rem;
}
/* --- Checklists --- */
.checklist-item {
display: flex;
align-items: flex-start;
padding: 12px;
border-bottom: 1px solid #f1f5f9;
transition: background 0.2s;
}
.checklist-item:last-child {
border-bottom: none;
}
.checklist-item:hover {
background: #f8fafc;
}
.checkbox-wrapper {
margin-right: 15px;
padding-top: 2px;
}
.custom-checkbox {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: var(--success);
}
.checklist-content h4 {
font-size: 1rem;
margin-bottom: 4px;
}
.checklist-content p {
font-size: 0.85rem;
color: var(--text-muted);
}
/* --- Status Badges --- */
.badge {
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
/* --- Code Block --- */
.code-block {
background: #1e293b;
color: #e2e8f0;
padding: 15px;
border-radius: 6px;
font-family: 'Courier New', monospace;
font-size: 0.85rem;
overflow-x: auto;
margin-top: 10px;
}
/* --- Responsive --- */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: -280px;
height: 100%;
}
.sidebar.open {
left: 0;
}
.main-content {
width: 100%;
}
.mobile-toggle {
display: block;
margin-right: 15px;
font-size: 1.2rem;
cursor: pointer;
}
}
@media (min-width: 769px) {
.mobile-toggle {
display: none;
}
}
/* Toast Notification */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--text-main);
color: white;
padding: 12px 24px;
border-radius: 8px;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
transform: translateY(100px);
opacity: 0;
transition: all 0.3s;
z-index: 100;
display: flex;
align-items: center;
gap: 10px;
}
.toast.show {
transform: translateY(0);
opacity: 1;
}
.toast i { color: var(--success); }
.anycoder-link {
font-size: 0.75rem;
color: var(--text-muted);
text-decoration: none;
margin-top: 5px;
display: block;
}
.anycoder-link:hover { text-decoration: underline; color: var(--primary); }
</style>
</head>
<body>
<!-- Sidebar -->
<nav class="sidebar" id="sidebar">
<div class="sidebar-header">
<div class="logo">
<i class="fa-solid fa-layer-group"></i> WebPlato
</div>
</div>
<div class="sidebar-nav">
<a class="nav-item active" onclick="switchTab('part1', this)"><i class="fa-solid fa-wand-magic-sparkles"></i> Part 1: Core Setup</a>
<a class="nav-item" onclick="switchTab('part2', this)"><i class="fa-solid fa-cart-shopping"></i> Part 2: EDD Config</a>
<a class="nav-item" onclick="switchTab('part3', this)"><i class="fa-solid fa-chart-line"></i> Part 3: Admin Panel</a>
<a class="nav-item" onclick="switchTab('part4', this)"><i class="fa-solid fa-users-gear"></i> Part 4: Roles</a>
<a class="nav-item" onclick="switchTab('part5', this)"><i class="fa-solid fa-plug"></i> Part 5: Plugins</a>
<a class="nav-item" onclick="switchTab('part6', this)"><i class="fa-solid fa-file-code"></i> Part 6: Templates</a>
<a class="nav-item" onclick="switchTab('part7', this)"><i class="fa-solid fa-magnifying-glass-chart"></i> Part 7: SEO</a>
<a class="nav-item" onclick="switchTab('part8', this)"><i class="fa-solid fa-shield-halved"></i> Part 8: Security</a>
<a class="nav-item" onclick="switchTab('part9', this)"><i class="fa-solid fa-headset"></i> Part 9: CX Features</a>
<a class="nav-item" onclick="switchTab('part10', this)"><i class="fa-solid fa-clipboard-check"></i> Part 10: Testing</a>
<a class="nav-item" onclick="switchTab('part11', this)"><i class="fa-solid fa-box-open"></i> Part 11: Deliverables</a>
</div>
<div style="padding: 20px;">
<div style="background: #eef2ff; padding: 15px; border-radius: 8px; text-align: center;">
<h5 style="color: var(--primary); margin-bottom: 5px;">WebPlato v1.0</h5>
<p style="font-size: 0.8rem; color: var(--text-muted);">System Ready</p>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="main-content">
<!-- Top Bar -->
<header class="top-bar">
<div style="display: flex; align-items: center;">
<i class="fa-solid fa-bars mobile-toggle" onclick="toggleSidebar()"></i>
<div class="breadcrumb">
Dashboard / <span id="current-section-name">Core Setup</span>
</div>
</div>
<div class="progress-container">
<span class="progress-label">Setup Progress</span>
<div class="progress-bar-bg">
<div class="progress-bar-fill" id="main-progress"></div>
</div>
<span id="progress-text" style="font-size: 0.8rem; font-weight: 600; color: var(--text-muted);">0%</span>
</div>
</header>
<!-- Content Area -->
<div class="content-area">
<!-- PART 1: Core Setup -->
<div id="part1" class="section-panel active">
<div class="panel-header">
<h1 class="panel-title">Part 1: WordPress Core Setup</h1>
<p class="panel-desc">Initialize the foundation of your WebPlato store by creating essential pages and configuring basic WordPress settings.</p>
</div>
<div class="grid-container">
<div class="card" style="grid-column: 1 / -1;">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-sitemap"></i> Essential Pages</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Creating all pages...', 'All pages created successfully!')">
<i class="fa-solid fa-plus"></i> Create All Pages
</button>
</div>
<div style="overflow-x: auto;">
<table style="width: 100%; border-collapse: collapse; font-size: 0.9rem;">
<thead>
<tr style="text-align: left; border-bottom: 2px solid #f1f5f9;">
<th style="padding: 10px;">Page Name</th>
<th style="padding: 10px;">Slug</th>
<th style="padding: 10px;">Template</th>
<th style="padding: 10px;">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: 10px; font-weight: 600;">Home</td>
<td style="padding: 10px; color: var(--text-muted);">home</td>
<td style="padding: 10px;">front-page.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Shop</td>
<td style="padding: 10px; color: var(--text-muted);">shop</td>
<td style="padding: 10px;">page-shop.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Cart</td>
<td style="padding: 10px; color: var(--text-muted);">cart</td>
<td style="padding: 10px;">page-cart.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Checkout</td>
<td style="padding: 10px; color: var(--text-muted);">checkout</td>
<td style="padding: 10px;">page-checkout.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">My Account</td>
<td style="padding: 10px; color: var(--text-muted);">my-account</td>
<td style="padding: 10px;">page-account.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Purchase History</td>
<td style="padding: 10px; color: var(--text-muted);">purchase-history</td>
<td style="padding: 10px;">page-purchase-history.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">About Us</td>
<td style="padding: 10px; color: var(--text-muted);">about</td>
<td style="padding: 10px;">page-about.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Contact Us</td>
<td style="padding: 10px; color: var(--text-muted);">contact</td>
<td style="padding: 10px;">page-contact.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Terms & Conditions</td>
<td style="padding: 10px; color: var(--text-muted);">terms</td>
<td style="padding: 10px;">page-terms.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Privacy Policy</td>
<td style="padding: 10px; color: var(--text-muted);">privacy</td>
<td style="padding: 10px;">page-privacy.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">FAQ</td>
<td style="padding: 10px; color: var(--text-muted);">faq</td>
<td style="padding: 10px;">page-faq.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Support</td>
<td style="padding: 10px; color: var(--text-muted);">support</td>
<td style="padding: 10px;">page-support.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Blog</td>
<td style="padding: 10px; color: var(--text-muted);">blog</td>
<td style="padding: 10px;">page-blog.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
<tr>
<td style="padding: 10px; font-weight: 600;">Affiliate Program</td>
<td style="padding: 10px; color: var(--text-muted);">affiliate</td>
<td style="padding: 10px;">page-affiliate.php</td>
<td style="padding: 10px;"><span class="badge badge-yellow">Pending</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-gear"></i> General Settings</div>
</div>
<div class="form-group">
<label class="form-label">Front Page Displays</label>
<div style="display: flex; gap: 10px; align-items: center;">
<span>A static page:</span>
<select class="form-control" style="width: 200px;">
<option>Home</option>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label">Posts Page</label>
<select class="form-control" style="width: 200px;">
<option>Blog</option>
</select>
</div>
<button class="btn btn-primary" onclick="simulateAction('Saving settings...', 'Settings saved!')">Save Changes</button>
</div>
</div>
<!-- PART 2: EDD Config -->
<div id="part2" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 2: Easy Digital Downloads Configuration</h1>
<p class="panel-desc">Configure payment gateways, currency, and product categories for your digital store.</p>
</div>
<div class="grid-container">
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-money-bill-wave"></i> General Settings</div>
</div>
<div class="form-group">
<label class="form-label">Currency</label>
<select class="form-control">
<option>USD ($)</option>
<option>EUR (€)</option>
<option>GBP (£)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Currency Position</label>
<select class="form-control">
<option>Left ($10.00)</option>
<option>Right (10.00$)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Decimal Separator</label>
<input type="text" class="form-control" value=".">
</div>
<div class="form-group">
<label class="form-label">Thousands Separator</label>
<input type="text" class="form-control" value=",">
</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Saving...', 'General settings updated.')">Update</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-regular fa-credit-card"></i> Payment Gateways</div>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox" checked>
<span style="margin-left: 10px;">PayPal Standard</span>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox" checked>
<span style="margin-left: 10px;">Stripe</span>
</div>
<div class="checklist-item" style="padding: 10px 0;">
<input type="checkbox" class="custom-checkbox">
<span style="margin-left: 10px;">Manual Payments</span>
</div>
<div class="form-group" style="margin-top: 10px;">
<label class="form-label">Default Gateway</label>
<select class="form-control">
<option>Stripe</option>
<option>PayPal</option>
</select>
</div>
<button class="btn btn-primary btn-sm" onclick="simulateAction('Configuring...', 'Gateways configured.')">Configure Keys</button>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-tags"></i> Product Categories</div>
</div>
<p style="font-size: 0.9rem; margin-bottom: 15px; color: var(--text-muted);">The following categories have been auto-generated based on your requirements.</p>
<div class="grid-container" style="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 0;">
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Gift Cards</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: gift-cards</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Games</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: games</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Game Coaching</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: game-coaching</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">GamePal</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: gamepal</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Game Coins</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: game-coins</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Items</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: items</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Accounts</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: accounts</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Boosting</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: boosting</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Skins</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: skins</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Telco</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: telco</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Software & Apps</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: software-apps</div>
</div>
<div class="checklist-item" style="border: 1px solid var(--border); border-radius: 6px; flex-direction: column;">
<div style="font-weight: 600; margin-bottom: 5px;">Payment Cards</div>
<div style="font-size: 0.8rem; color: var(--text-muted);">slug: payment-cards</div>
</div>
</div>
</div>
</div>
<!-- PART 3: Admin Panel -->
<div id="part3" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 3: Admin Dashboard Extensions</h1>
<p class="panel-desc">Structure your custom admin menu "WebPlato" for easy management.</p>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-bars"></i> WebPlato Menu Structure</div>
</div>
<div class="code-block">
// PHP Logic for add_menu_page and add_submenu_page
add_menu_page( 'WebPlato', 'WebPlato', 'manage_options', 'webplato', 'webplato_dashboard', 'dashicons-store', 6 );
add_submenu_page( 'webplato', 'Dashboard', 'Dashboard Overview', 'manage_options', 'webplato', 'webplato_dashboard' );
add_submenu_page( 'webplato', 'Settings', 'Store Settings', 'manage_options', 'webplato-settings', 'webplato_settings' );
add_submenu_page( 'webplato', 'Products', 'Product Management', 'manage_options', 'webplato-products', 'webplato_products' );
add_submenu_page( 'webplato', 'Orders', 'Order Management', 'manage_options', 'webplato-orders', 'webplato_orders' );
add_submenu_page( 'webplato', 'Customers', 'Customer Management', 'manage_options', 'webplato-customers', 'webplato_customers' );
add_submenu_page( 'webplato', 'Discounts', 'Discount Codes', 'manage_options', 'webplato-discounts', 'webplato_discounts' );
add_submenu_page( 'webplato', 'Reports', 'Reports & Analytics', 'manage_options', 'webplato-reports', 'webplato_reports' );
add_submenu_page( 'webplato', 'Affiliates', 'Affiliate System', 'manage_options', 'webplato-affiliates', 'webplato_affiliates' );
add_submenu_page( 'webplato', 'System', 'System Status', 'manage_options', 'webplato-system', 'webplato_system' );
</div>
</div>
<div class="grid-container" style="margin-top: 20px;">
<div class="card">
<div class="card-title"><i class="fa-solid fa-chart-pie"></i> Dashboard Overview</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">Includes sales stats, recent orders, popular products chart.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Loading...', 'Dashboard loaded.')">Preview</button>
</div>
<div class="card">
<div class="card-title"><i class="fa-solid fa-file-import"></i> Bulk Import</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">CSV Import/Export for products.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Loading...', 'Importer ready.')">Open Importer</button>
</div>
<div class="card">
<div class="card-title"><i class="fa-solid fa-user-shield"></i> System Status</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin: 10px 0;">WP Environment, Conflicts, Debug Mode.</p>
<button class="btn btn-outline btn-sm" onclick="simulateAction('Scanning...', 'Scan complete.')">Run Scan</button>
</div>
</div>
</div>
<!-- PART 4: Roles -->
<div id="part4" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 4: User Roles & Permissions</h1>
<p class="panel-desc">Create custom roles to segregate duties within the WebPlato ecosystem.</p>
</div>
<div class="grid-container">
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-user-tie"></i> Store Manager</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Manage all products</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Manage orders & customers</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Full EDD capabilities</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-xmark" style="color: var(--danger);"></i> No plugin install access</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-link"></i> Affiliate</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View own referrals</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View commissions</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Access affiliate dashboard</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
<div class="card">
<div class="card-header">
<div class="card-title"><i class="fa-solid fa-headset"></i> Support Agent</div>
<span class="badge badge-blue">Custom</span>
</div>
<ul style="list-style: none; font-size: 0.9rem; color: var(--text-muted);">
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> View orders & customers</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-check" style="color: var(--success);"></i> Respond to tickets</li>
<li style="margin-bottom: 5px;"><i class="fa-solid fa-xmark" style="color: var(--danger);"></i> Cannot edit products</li>
</ul>
<button class="btn btn-success btn-sm" style="width: 100%; margin-top: 15px;" onclick="simulateAction('Creating role...', 'Role created.')">Create Role</button>
</div>
</div>
</div>
<!-- PART 5: Plugins -->
<div id="part5" class="section-panel">
<div class="panel-header">
<h1 class="panel-title">Part 5: Required Plugins</h1>
<p class="panel |