| 1 |
<?php |
| 2 |
/** |
| 3 |
* Invoice layout for server-side PDF rendering. |
| 4 |
* |
| 5 |
* The layout itself lives in document.php, which renders both invoices and |
| 6 |
* quotes — they differ by four labels and one date, and keeping them as two |
| 7 |
* copies of the same 260 lines is how the on-screen templates ended up with |
| 8 |
* fixes applied to one and not the other. |
| 9 |
* |
| 10 |
* Override with the `easy_invoice_pdf_template_path` filter. |
| 11 |
* |
| 12 |
* @package Easy_Invoice |
| 13 |
*/ |
| 14 |
|
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
$ei_pdf_type = 'invoice'; |
| 20 |
|
| 21 |
require __DIR__ . '/document.php'; |
| 22 |
|