Added private templates via the __shared directory.

This commit is contained in:
Josh Sherman 2010-10-20 01:06:11 -04:00
parent 67de8cdf47
commit 5ea7756803
3 changed files with 21 additions and 9 deletions

View file

@ -120,7 +120,10 @@ abstract class Display_Common extends Object
if ($template != null)
{
$template_name = $type . '_template';
$this->$template_name = SITE_TEMPLATE_PATH . $template . ($this->extension != false ? '.' . $this->extension : '');
$template_path = SITE_TEMPLATE_PATH . ($type == 'parent' ? '__shared/' : '');
$template_file = $template_path . $template . ($this->extension != false ? '.' . $this->extension : '');
$this->$template_name = $template_file;
}
}