Removed some comments added another new store file.
git-svn-id: http://svn.cleancode.org/svn/pickles@48 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
3116e320d0
commit
5542cc5f16
2 changed files with 15 additions and 2 deletions
|
@ -23,7 +23,6 @@ class Viewer_Smarty extends Viewer_Common {
|
||||||
// @todo Perhaps the templates directory would be better suited as a config variable?
|
// @todo Perhaps the templates directory would be better suited as a config variable?
|
||||||
$smarty->template_dir = '../templates/';
|
$smarty->template_dir = '../templates/';
|
||||||
|
|
||||||
// @todo instead of having this in /tmp (which is Linux-scentric) perhaps move it to a folder in the common dir
|
|
||||||
$cache_dir = TEMP_PATH . 'cache';
|
$cache_dir = TEMP_PATH . 'cache';
|
||||||
$compile_dir = TEMP_PATH . 'compile';
|
$compile_dir = TEMP_PATH . 'compile';
|
||||||
|
|
||||||
|
@ -36,7 +35,6 @@ class Viewer_Smarty extends Viewer_Common {
|
||||||
$smarty->load_filter('output','trimwhitespace');
|
$smarty->load_filter('output','trimwhitespace');
|
||||||
|
|
||||||
// Include custom Smarty functions
|
// Include custom Smarty functions
|
||||||
// @todo Stupid fucking hard coded path
|
|
||||||
$directory = PICKLES_PATH . 'smarty/functions/';
|
$directory = PICKLES_PATH . 'smarty/functions/';
|
||||||
|
|
||||||
if (is_dir($directory)) {
|
if (is_dir($directory)) {
|
||||||
|
|
15
templates/store/category.tpl
Normal file
15
templates/store/category.tpl
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<div class="content-left">
|
||||||
|
{include file="../../pickles/templates/store/navigation.tpl"}<br /><br />
|
||||||
|
{include file="../../pickles/templates/store/categories.tpl"}
|
||||||
|
</div>
|
||||||
|
<div class="content-right store-category">
|
||||||
|
<div class="{$category.permalink}">
|
||||||
|
<h1>{$category.name}</h1>
|
||||||
|
</div>
|
||||||
|
<div class="center">
|
||||||
|
{$category.description}
|
||||||
|
</div>
|
||||||
|
<div class="breadcrumbs">
|
||||||
|
<a href="/store">Store Home</a> > <a href="/store/category/{$category.permalink}">{$category.name}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue