# easy-invoice/2.4.0/templates/quote-templates/standard.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.4.0. 424 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.4.0/code/templates/quote-templates/standard.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.4.0/raw/templates/quote-templates/standard.php
- Modified: 2026-09-15T12:31:20+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.4.0/code/templates/quote-templates/standard.php#L10-L20`.

```php
<?php
/**
 * Standard Quote Template - Clean SaaS Design
 * Clean, modern, and professional quote template
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
$text_settings = \EasyInvoice\Helpers\TemplateTextHelper::getQuoteTextSettings();
$company_info = \EasyInvoice\Helpers\TemplateTextHelper::getCompanyInfo();
// Ensure a formatter is available for currency formatting
if (!isset($formatter) || !$formatter) {
    $formatter = new \EasyInvoice\Helpers\QuoteFormatter($quote ?? null);
}
?>
<style>
/* Standard Quote Template - Simple and Clean */
.template-standard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

/* Header Section */
.template-standard .quote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

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

.template-standard .logo-image {
    max-height: 60px;
    max-width: 200px;
    margin-bottom: 1rem;
}

.template-standard .company-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.template-standard .company-details {
    font-size: 0.9rem;
    color: #666;
}

.template-standard .quote-meta {
    text-align: right;
    min-width: 200px;
}

.template-standard .quote-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2563eb;
}

.template-standard .meta-item {
    margin-bottom: 0.5rem;
}

.template-standard .meta-label {
    color: #666;
    font-size: 0.9rem;
}

.template-standard .meta-value {
    font-weight: 600;
}

/* Address Section */
.template-standard .address-section {
    margin-bottom: 2rem;
}

.template-standard .address-block {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.template-standard .address-block h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.template-standard .client-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-standard .address-content {
    font-size: 0.9rem;
    color: #666;
}

/* Quote Description */
.template-standard .quote-description {
    margin-bottom: 2rem;
}

.template-standard .description-content {
    color: #666;
    white-space: pre-wrap;
}

/* Quote Items Table */
.template-standard .quote-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.template-standard .quote-items th {
    background: #2563eb;
    color: white;
    text-align: left;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.template-standard .quote-items td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.template-standard .item-name .item-title {
    font-weight: normal;
}

.template-standard .item-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
    font-weight: 300;
}

.template-standard .item-quantity,
.template-standard .item-price,
.template-standard .item-total {
    text-align: right;
}

/* Quote Totals */
.template-standard .quote-totals {
    margin-left: auto;
    width: 300px;
    margin-bottom: 2rem;
}

.template-standard .quote-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.template-standard .quote-total-row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #2563eb;
}

/* Notes and Terms */
.template-standard .quote-notes,
.template-standard .quote-terms {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.template-standard .quote-notes h3,
.template-standard .quote-terms h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-standard .notes-content,
.template-standard .terms-content {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.template-standard .quote-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .template-standard {
        padding: 1rem;
    }

    .template-standard .quote-header {
        flex-direction: column;
    }

    .template-standard .quote-meta {
        text-align: left;
        margin-top: 1rem;
    }

    .template-standard .quote-totals {
        width: 100%;
    }
}

/* Shared polish: numbers line up, numeric headings sit over their figures. */
.template-standard .quote-items th + th { text-align: right; }
.template-standard .quote-items .item-quantity,
.template-standard .quote-items .item-price,
.template-standard .quote-items .item-adjust,
.template-standard .quote-items .item-total,
.template-standard .quote-total-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.template-standard .meta-value { white-space: nowrap; }
.template-standard .quote-items .item-adjust { text-align: right; }
.template-standard .client-contact { font-weight: 500; margin-bottom: 0.15em; }
.template-standard .client-tax-number,
.template-standard .company-tax-number { margin-top: 0.35em; }
.template-standard .quote-items .item-description { white-space: pre-line; }
.template-standard .document-kind { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted, #8a8a8a); font-family: var(--font-family-body, inherit); font-style: normal; margin-bottom: 0.3em; line-height: 1.2; }

/* Standard: ink on white, one rule per section, nothing boxed. */
.template-standard { color: #1f2937; }
.template-standard .quote-header { border-bottom: 2px solid #1f2937; padding-bottom: 1.5rem; margin-bottom: 1.75rem; align-items: flex-start; }
.template-standard .company-name { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; color: #111827; }
.template-standard .company-details, .template-standard .address-content, .template-standard .meta-label, .template-standard .quote-total-label { color: #6b7280; }
.template-standard .quote-title { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.015em; color: #111827; margin-bottom: 0.75rem; }
.template-standard .meta-item { display: flex; justify-content: flex-end; gap: 1rem; margin-bottom: 0.35rem; font-size: 0.9rem; }
.template-standard .meta-value { font-weight: 600; color: #111827; }
.template-standard .address-block { background: transparent; padding: 0; border: 0; }
.template-standard .address-block h2 { font-size: 0.72rem; letter-spacing: 0.14em; color: #6b7280; margin-bottom: 0.5rem; }
.template-standard .client-name { font-weight: 600; color: #111827; font-size: 1rem; }
.template-standard .quote-items { border: 0; margin-bottom: 1.25rem; }
.template-standard .quote-items th { background: transparent; color: #6b7280; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.6rem 0.5rem; border-bottom: 1px solid #1f2937; }
.template-standard .quote-items td { padding: 0.8rem 0.5rem; border-bottom: 1px solid #e5e7eb; color: #1f2937; }
.template-standard .quote-items th:first-child, .template-standard .quote-items td:first-child { padding-left: 0; }
.template-standard .quote-items th:last-child, .template-standard .quote-items td:last-child { padding-right: 0; }
.template-standard .item-name .item-title { font-weight: 600; color: #111827; }
.template-standard .item-description { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.template-standard .quote-totals { width: 320px; margin-bottom: 1.5rem; }
.template-standard .quote-total-row { padding: 0.45rem 0; border-bottom: 1px solid #e5e7eb; font-size: 0.95rem; }
.template-standard .quote-total-value { font-weight: 600; color: #111827; }
.template-standard .quote-totals .quote-grand-total { border-top: 2px solid #1f2937; border-bottom: 0; margin-top: 0.25rem; padding-top: 0.75rem; font-size: 1.125rem; }
.template-standard .quote-totals .quote-grand-total .quote-total-label { color: #111827; font-weight: 700; }
.template-standard .quote-totals .quote-grand-total .quote-total-value { font-size: 1.25rem; font-weight: 700; }
.template-standard .quote-notes, .template-standard .quote-terms { background: transparent; padding: 1.25rem 0 0; margin-top: 1.25rem; border: 0; border-top: 1px solid #e5e7eb; border-radius: 0; color: #4b5563; font-size: 0.9rem; }
.template-standard .quote-notes h3, .template-standard .quote-terms h3 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7280; font-weight: 600; margin-bottom: 0.5rem; }
.template-standard .quote-footer { border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 0.85rem; }
</style>

<div class="template template-standard">
    <div class="quote-header">
        <div class="company-info">
            <?php if (!empty($company_info['logo'])): ?>
            <div class="company-logo">
                <img src="<?php echo esc_url($company_info['logo']); ?>" alt="<?php echo esc_attr($company_info['name']); ?>" class="logo-image" onerror="this.parentNode.parentNode.removeChild(this.parentNode)">
            </div>
            <?php endif; ?>
            <div class="company-name"><?php echo esc_html($company_info['name']); ?></div>
            <div class="company-details">
                <?php echo wp_kses_post(\EasyInvoice\Helpers\TemplateTextHelper::generateFromSection($company_info, false, 'details-only')); ?>
            </div>
        </div>

        <div class="quote-meta">
            <?php $ei_kind = \EasyInvoice\Controllers\SettingsController::getTextQuote(); $ei_title = trim((string) $quote->getTitle()); ?>
            <div class="quote-title"><?php if ('' !== $ei_title && 0 !== strcasecmp($ei_title, $ei_kind)) : ?><span class="document-kind"><?php echo esc_html($ei_kind); ?></span><?php endif; ?><?php echo esc_html('' !== $ei_title ? $ei_title : $ei_kind); ?></div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['quote_number']); ?></span>
                <span class="meta-value"><?php echo esc_html($quote->getNumber()); ?></span>
            </div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['quote_date']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($quote->getIssueDate())); ?></span>
            </div>
            <div class="meta-item">
                <span class="meta-label"><?php echo esc_html($text_settings['valid_until']); ?></span>
                <span class="meta-value"><?php echo esc_html(\EasyInvoice\Controllers\SettingsController::formatDate($quote->getExpiryDate())); ?></span>
            </div>
        </div>
    </div>

    <?php $ei_client_html = \EasyInvoice\Helpers\TemplateTextHelper::generateClientBlock($quote); if ('' !== $ei_client_html) : ?>
    <div class="address-section">
        <div class="address-block">
            <h2><?php echo esc_html($text_settings['to']); ?></h2>
            <div class="address-content">
                <?php echo wp_kses_post($ei_client_html); ?>
            </div>
        </div>
    </div>
    <?php endif; ?>

    <?php if ($quote->getDescription()): ?>
    <div class="quote-description">
        <div class="description-content"><?php echo wp_kses_post($quote->getDescription()); ?></div>
    </div>
    <?php endif; ?>

    <?php
    // The adjustment column appears only when at least one line uses it.
    $ei_show_adjust = \EasyInvoice\Controllers\SettingsController::shouldShowQuoteAdjustField();
    if ($ei_show_adjust) {
        $ei_show_adjust = false;
        foreach ($quote->getItems() as $ei_item) {
            if ((float) $ei_item->getAdjustPercentage() != 0.0) { $ei_show_adjust = true; break; }
        }
    }
    ?>
    <table class="quote-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 ($ei_show_adjust): ?>
                <th><?php echo esc_html($text_settings['adjust']); ?> (%)</th>
                <?php endif; ?>
                <th><?php echo esc_html($text_settings['line_total'] ?? $text_settings['total']); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php if (!$quote->getItems()) : ?>
            <tr class="no-items"><td colspan="<?php echo $ei_show_adjust ? 5 : 4; ?>" style="text-align:center;color:#9ca3af;padding:18px;"><?php esc_html_e('No items yet.', 'easy-invoice'); ?></td></tr>
            <?php endif; ?>
            <?php foreach ($quote->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 ($ei_show_adjust): ?>
                <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="quote-totals">
        <?php echo wp_kses_post(\EasyInvoice\Helpers\TemplateTextHelper::generateTotalsSection($quote, $text_settings, $formatter, 'quote')); ?>
    </div>

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

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

    <?php
    /**
     * Fires inside the document card, after notes and terms and before the
     * footer text: attachments, the signature block, e-invoicing notes. Being
     * inside the card, it is part of what "Download as PDF" captures.
     *
     * @param object $document The quote model.
     * @param string $type     'quote'.
     */
    do_action('easy_invoice_document_body_after', $quote, 'quote');

    $ei_footer_text = \EasyInvoice\Helpers\TemplateTextHelper::footerText($quote, 'quote');
    if ('' !== trim(wp_strip_all_tags((string) $ei_footer_text))) :
    ?>
    <div class="quote-footer">
        <p><?php echo wp_kses_post($ei_footer_text); ?></p>
    </div>
    <?php endif; ?>
</div>

```
