# easy-invoice/2.3.6/templates/invoice-templates/classic.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.3.6. 511 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.3.6/code/templates/invoice-templates/classic.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.3.6/raw/templates/invoice-templates/classic.php
- Modified: 2026-05-21T08:29:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-invoice/2.3.6/code/templates/invoice-templates/classic.php#L10-L20`.

```php
<?php
/**
 * Classic Template - Traditional Design
 * Classic, traditional, and timeless invoice template
 */

$text_settings = \EasyInvoice\Helpers\TemplateTextHelper::getInvoiceTextSettings();
$company_info = \EasyInvoice\Helpers\TemplateTextHelper::getCompanyInfo();
?>
<style>
/* Classic Template - Traditional Design */
:root {
    --primary-color: #1f2937;
    --primary-light: #374151;
    --primary-dark: #111827;
    --secondary-color: #6b7280;
    --accent-color: #d97706;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-accent: #f3f4f6;
    
    --font-family: 'Times New Roman', Times, serif;
    --font-family-heading: 'Times New Roman', Times, serif;
    --font-family-body: 'Times New Roman', Times, serif;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.template-classic {
    font-family: var(--font-family-body);
    background: var(--background-primary);
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-8);
    line-height: 1.6;
    border: 2px solid var(--border-color);
}

/* Header Section */
.template-classic .invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-12);
    padding-bottom: var(--spacing-8);
    border-bottom: 3px double var(--border-color);
}

.template-classic .company-info {
    flex: 1;
}

.template-classic .company-logo {
    margin-bottom: 0;
}

.template-classic .logo-image {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.template-classic .company-name {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    line-height: 1.2;
}

.template-classic .company-details {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.template-classic .invoice-meta {
    text-align: right;
    min-width: 250px;
    border: 1px solid var(--border-color);
    padding: var(--spacing-4);
    background: var(--background-secondary);
}

.template-classic .invoice-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-classic .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid var(--border-light);
}

.template-classic .meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.template-classic .meta-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.template-classic .meta-value {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
}

/* Address Section */
.template-classic .address-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.template-classic .address-block {
    border: 1px solid var(--border-color);
    padding: var(--spacing-4);
    background: var(--background-secondary);
}

.template-classic .address-block h2 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-classic .client-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-2);
}

.template-classic .address-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Invoice Items Table */
.template-classic .invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-12);
    background: var(--background-primary);
    border: 1px solid var(--border-color);
}

.template-classic .invoice-items th {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    text-align: left;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
}

.template-classic .invoice-items td {
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid var(--border-color);
    vertical-align: top;
}

.template-classic .item-name .item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-1);
}

.template-classic .item-description {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    font-weight: normal;
}

.template-classic .item-quantity,
.template-classic .item-price,
.template-classic .item-total {
    text-align: right;
    font-weight: 500;
    color: var(--text-primary);
}

/* Invoice Totals */
.template-classic .invoice-totals {
    margin-left: auto;
    width: 350px;
    background: var(--background-secondary);
    padding: var(--spacing-6);
    border: 1px solid var(--border-color);
}

.template-classic .invoice-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.template-classic .invoice-total-row:last-child {
    border-bottom: none;
}

.template-classic .invoice-total-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.template-classic .invoice-total-value {
    font-weight: 700;
    color: var(--text-primary);
}

.template-classic .invoice-grand-total {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: var(--spacing-3);
    margin-top: var(--spacing-3);
}

/* Notes Section */
.template-classic .invoice-notes {
    margin-top: var(--spacing-8);
    padding: var(--spacing-6);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.template-classic .invoice-notes h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-classic .notes-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.template-classic .invoice-terms {
    margin-top: var(--spacing-8);
    padding: var(--spacing-6);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.template-classic .invoice-terms h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2);
}

.template-classic .terms-content {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.template-classic .invoice-footer {
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-6);
    border-top: 2px solid var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Footer */
.template-classic .invoice-footer {
    margin-top: var(--spacing-12);
    padding: var(--spacing-6);
    text-align: center;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--border-color);
}

.template-classic .invoice-footer p {
    margin: 0;
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .template-classic {
        padding: var(--spacing-4);
    }
    
    .template-classic .invoice-header {
        flex-direction: column;
        gap: var(--spacing-6);
    }
    
    .template-classic .invoice-meta {
        min-width: auto;
    }
    
    .template-classic .address-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .template-classic .invoice-totals {
        width: 100%;
    }
}
</style>

<div class="template template-classic">
    <div class="invoice-header">
        <div class="company-info">
            <div class="company-logo">
                <?php if (!empty($company_info['logo'])): ?>
                    <img src="<?php echo esc_url($company_info['logo']); ?>" alt="<?php echo esc_attr($company_info['name']); ?>" class="logo-image">
                <?php endif; ?>
            </div>
            <div class="company-name"><?php echo esc_html($company_info['name']); ?></div>
            <div class="company-details">
                <?php echo \EasyInvoice\Helpers\TemplateTextHelper::generateFromSection($company_info, false, 'details-only'); ?>
            </div>
        </div>
        
        <div class="invoice-meta">
            <div class="invoice-title"><?php echo esc_html($invoice->getTitle() ?: __('Invoice', 'easy-invoice')); ?></div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['invoice_number']); ?></span>
                <span class="meta-value"><?php echo esc_html($invoice->getNumber()); ?></span>
            </div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['invoice_date']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($invoice->getIssueDate())); ?></span>
            </div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['due_date']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($invoice->getDueDate())); ?></span>
            </div>
        </div>
    </div>

    <div class="address-section">
        <div class="address-block">
            <h2><?php echo esc_html($text_settings['to']); ?></h2>
            <div class="address-content">
                <div class="client-name"><?php echo esc_html($invoice->getCustomerName()); ?></div>
                <?php if ($invoice->getCustomerAddress()): ?>
                    <?php echo nl2br(esc_html($invoice->getCustomerAddress())); ?><br>
                <?php endif; ?>
                <?php if ($invoice->getCustomerEmail()): ?>
                    <?php echo esc_html($invoice->getCustomerEmail()); ?><br>
                <?php endif; ?>
            </div>
        </div>
    </div>

    <table class="invoice-items">
        <thead>
            <tr>
                <th><?php echo esc_html($text_settings['service']); ?></th>
                <th><?php echo esc_html($text_settings['qty']); ?></th>
                <th><?php echo esc_html($text_settings['rate_price']); ?></th>
                <?php if (\EasyInvoice\Controllers\SettingsController::shouldShowInvoiceAdjustField()): ?>
                <th><?php echo esc_html($text_settings['adjust']); ?> (%)</th>
                <?php endif; ?>
                <th><?php echo esc_html($text_settings['total']); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($invoice->getItems() as $item): ?>
            <tr>
                <td class="item-name">
                    <div class="item-title"><?php echo esc_html($item->getName()); ?></div>
                    <?php if ($item->getDescription()): ?>
                        <div class="item-description"><?php echo esc_html($item->getDescription()); ?></div>
                    <?php endif; ?>
                </td>
                <td class="item-quantity"><?php echo esc_html($item->getQuantity() ?: '0'); ?></td>
                <td class="item-price"><?php echo esc_html($formatter->format($item->getPrice())); ?></td>
                <?php if (\EasyInvoice\Controllers\SettingsController::shouldShowInvoiceAdjustField()): ?>
                <td class="item-adjust"><?php 
                    $adjust_percentage = $item->getAdjustPercentage();
                    if ($adjust_percentage != 0) {
                        echo esc_html($adjust_percentage > 0 ? '+' : '') . esc_html($adjust_percentage) . '%';
                    } else {
                        echo esc_html__('—', 'easy-invoice');
                    }
                ?></td>
                <?php endif; ?>
                <td class="item-total"><?php echo esc_html($formatter->format($item->getAmount())); ?></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>

    <div class="invoice-totals">
        <?php echo \EasyInvoice\Helpers\TemplateTextHelper::generateTotalsSection($invoice, $text_settings, $formatter, 'invoice'); ?>
    </div>

    <?php if ($invoice->getNotes()): ?>
    <div class="invoice-notes">
        <h3><?php _e('Notes:', 'easy-invoice'); ?></h3>
        <div class="notes-content">
            <?php echo wp_kses_post($invoice->getNotes() ?: ''); ?>
        </div>
    </div>
    <?php endif; ?>

    <?php 
    $terms_conditions = $invoice->getTerms() ?: \EasyInvoice\Controllers\SettingsController::getInvoiceTermsConditions();
    if ($terms_conditions): 
    ?>
    <div class="invoice-terms">
        <h3><?php _e('Terms & Conditions:', 'easy-invoice'); ?></h3>
        <div class="terms-content">
            <?php echo wp_kses_post($terms_conditions); ?>
        </div>
    </div>
    <?php endif; ?>

    <div class="invoice-footer">
        <?php 
        $invoice_footer_text = $invoice->getFooterText();
        if (!$invoice_footer_text) {
            $invoice_footer_text = \EasyInvoice\Controllers\SettingsController::getInvoiceFooterText();
        }
        ?>
        <p><?php echo wp_kses_post($invoice_footer_text); ?></p>
    </div>
</div> 
```
