You've already forked wc-licensed-product
Implement versions 0.0.4-0.0.7 features
v0.0.4: - Add WooCommerce settings tab for default license settings - Per-product settings override global defaults v0.0.5: - Add bulk license operations (activate, deactivate, revoke, extend, delete) - Add license renewal/extension and lifetime functionality - Add quick action buttons per license row v0.0.6: - Add license dashboard with statistics and analytics - Add license transfer functionality (admin) - Add CSV export for licenses - Add OpenAPI 3.1 specification - Remove /deactivate API endpoint v0.0.7: - Move license dashboard to WooCommerce Reports section - Add license search and filtering in admin - Add customer-facing license transfer with AJAX modal - Add email notifications for license expiration warnings - Add bulk import licenses from CSV - Update README with comprehensive documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -150,6 +150,39 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.license-domain-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
/* Transfer Button */
|
||||
.wclp-transfer-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25em;
|
||||
padding: 0.2em 0.6em;
|
||||
background: #f0f0f0;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 3px;
|
||||
font-size: 0.85em;
|
||||
color: #555;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.wclp-transfer-btn:hover {
|
||||
background: #e5e5e5;
|
||||
border-color: #ccc;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.wclp-transfer-btn .dashicons {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
/* Download Section */
|
||||
.license-downloads {
|
||||
padding: 1em 1.5em;
|
||||
@@ -323,4 +356,151 @@
|
||||
width: 45%;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.license-domain-display {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.wclp-transfer-btn {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Transfer Modal */
|
||||
.wclp-modal {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 100000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.wclp-modal-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.wclp-modal-content {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
padding: 2em;
|
||||
border-radius: 8px;
|
||||
max-width: 450px;
|
||||
width: 90%;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.wclp-modal-close {
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
right: 0.5em;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.5em;
|
||||
cursor: pointer;
|
||||
color: #666;
|
||||
line-height: 1;
|
||||
padding: 0.25em;
|
||||
}
|
||||
|
||||
.wclp-modal-close:hover {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.wclp-modal-content h3 {
|
||||
margin: 0 0 1.5em 0;
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
.wclp-form-row {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.wclp-form-row label {
|
||||
display: block;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5em;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.wclp-form-row input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 0.75em;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.wclp-form-row input[type="text"]:focus {
|
||||
outline: none;
|
||||
border-color: #2271b1;
|
||||
box-shadow: 0 0 0 1px #2271b1;
|
||||
}
|
||||
|
||||
.wclp-current-domain {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wclp-current-domain code {
|
||||
background: #f5f5f5;
|
||||
padding: 0.4em 0.8em;
|
||||
border-radius: 4px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.wclp-field-description {
|
||||
margin: 0.5em 0 0 0;
|
||||
font-size: 0.85em;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.wclp-form-actions {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.wclp-btn-primary {
|
||||
background: #2271b1 !important;
|
||||
border-color: #2271b1 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.wclp-btn-primary:hover {
|
||||
background: #135e96 !important;
|
||||
border-color: #135e96 !important;
|
||||
}
|
||||
|
||||
.wclp-btn-primary:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.wclp-message {
|
||||
margin-top: 1em;
|
||||
padding: 0.75em 1em;
|
||||
border-radius: 4px;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.wclp-message.success {
|
||||
background: #d4edda;
|
||||
color: #155724;
|
||||
border: 1px solid #c3e6cb;
|
||||
}
|
||||
|
||||
.wclp-message.error {
|
||||
background: #f8d7da;
|
||||
color: #721c24;
|
||||
border: 1px solid #f5c6cb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user