From af6dd5f8f9844596e85db25a8e97df9e08cb795c Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 1 Jun 2015 18:46:12 +0200 Subject: Port alls sites to smarty and use the inheritance model --- templates/products.tpl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/products.tpl (limited to 'templates/products.tpl') diff --git a/templates/products.tpl b/templates/products.tpl new file mode 100644 index 0000000..dac8f0e --- /dev/null +++ b/templates/products.tpl @@ -0,0 +1,36 @@ +{extends file="layout.tpl"} +{block name=title}{$category}{/block} +{block name=navigation} +
+
Contact us
+
Home
+
Categories
+ {if $loggedin} +
Logout
+ {else} +
Login
+ {/if} +
+{/block} +{block name=content} + + {foreach from=$products item=product} + + + + {if $loggedin} + + + {/if} + + {/foreach} + {if $loggedin} + + + + + + + {/if} +
{$product->getName()}{$product->getDescription()}EditDelete
Add
+{/block} \ No newline at end of file -- cgit v1.2.3-70-g09d2