From 85c8d76da3a683b26e6afce36a54a21455879ac2 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 28 May 2020 14:58:42 +0200 Subject: [PATCH] use shared templates and template alias names --- .../views/tpl/deliverynote/deliverynote.tpl | 14 ++++---- .../deliverynote/includingFiles/pdfToping.tpl | 5 --- .../pdfFooter.tpl => inc/footer.tpl} | 2 +- Application/views/tpl/inc/header.tpl | 5 +++ .../tpl/invoice/includingFiles/pdfFooter.tpl | 32 ------------------- .../tpl/invoice/includingFiles/pdfTopping.tpl | 5 --- Application/views/tpl/invoice/invoice.tpl | 14 ++++---- metadata.php | 15 +++++++-- 8 files changed, 32 insertions(+), 60 deletions(-) delete mode 100644 Application/views/tpl/deliverynote/includingFiles/pdfToping.tpl rename Application/views/tpl/{deliverynote/includingFiles/pdfFooter.tpl => inc/footer.tpl} (96%) create mode 100644 Application/views/tpl/inc/header.tpl delete mode 100644 Application/views/tpl/invoice/includingFiles/pdfFooter.tpl delete mode 100644 Application/views/tpl/invoice/includingFiles/pdfTopping.tpl diff --git a/Application/views/tpl/deliverynote/deliverynote.tpl b/Application/views/tpl/deliverynote/deliverynote.tpl index db4cc9c..b243720 100644 --- a/Application/views/tpl/deliverynote/deliverynote.tpl +++ b/Application/views/tpl/deliverynote/deliverynote.tpl @@ -2,31 +2,31 @@ [{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}] [{block name="pdfTopingFile"}] - [{include file=$oViewConf->getModulePath('pdfDocuments', 'Application/views/tpl/deliverynote/includingFiles/pdfToping.tpl')}] + [{include file="d3pdfheader.tpl"}] [{/block}] [{block name="pdfFooterFile"}] - [{include file=$oViewConf->getModulePath('pdfDocuments', 'Application/views/tpl/deliverynote/includingFiles/pdfFooter.tpl')}] + [{include file="d3pdffooter.tpl"}] [{/block}] [{* +++++ main page part +++++ *}] [{block name="pdfHeadingFile"}] [{block name="pdfHeaderFile"}] - [{include file=$oViewConf->getModulePath('pdfDocuments', 'Application/views/tpl/deliverynote/includingFiles/pdfHeader.tpl')}] + [{include file="d3delnote_pdf_addressarea.tpl"}] [{/block}] [{/block}] [{* +++++Artikeltabelle+++++*}] [{block name="articleListing"}] - +
@@ -86,7 +86,7 @@
[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]
[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}]
*}] [{/block}] [{block name="pdfPastThankFile"}] - [{include file=$oViewConf->getModulePath('pdfDocuments', 'Application/views/tpl/deliveryNote/includingFiles/pdfPastThank.tpl')}] + [{include file="d3delnote_pdf_conclusion.tpl"}] [{/block}]
\ No newline at end of file diff --git a/Application/views/tpl/deliverynote/includingFiles/pdfToping.tpl b/Application/views/tpl/deliverynote/includingFiles/pdfToping.tpl deleted file mode 100644 index 77a8ed7..0000000 --- a/Application/views/tpl/deliverynote/includingFiles/pdfToping.tpl +++ /dev/null @@ -1,5 +0,0 @@ -[{block name="pdfToping"}] -
- -
-[{/block}] \ No newline at end of file diff --git a/Application/views/tpl/deliverynote/includingFiles/pdfFooter.tpl b/Application/views/tpl/inc/footer.tpl similarity index 96% rename from Application/views/tpl/deliverynote/includingFiles/pdfFooter.tpl rename to Application/views/tpl/inc/footer.tpl index d625e44..0e58a9c 100644 --- a/Application/views/tpl/deliverynote/includingFiles/pdfFooter.tpl +++ b/Application/views/tpl/inc/footer.tpl @@ -1,5 +1,5 @@ [{block name="pdfFooter"}] - + [{block name="shop_basic_information"}]