コード例 #1
0
ファイル: Entity.php プロジェクト: piarsonforked/floxim
 public function getTemplate()
 {
     $tpl_name = $this->getPropInherited('visual.template');
     if (!$tpl_name) {
         return false;
     }
     $parts = explode(":", $tpl_name);
     $tpl = \Floxim\Floxim\Template\Loader::loadTemplateVariant($parts[0], $parts[1]);
     // Assign template into env if this infoblock is the layout infoblock
     if ($this['controller'] === 'layout' && $this['action'] === 'show') {
         fx::env('theme_template', $tpl);
     }
     return $tpl;
 }