예제 #1
0
 /**
  * Implement event onGetLayoutPath to return the layout which override by CANVAS & CANVAS templates
  * This event is fired by overriding ModuleHelper class
  * Return path to layout if found, false if not
  *
  * @param   string $module  The name of the module
  * @param   string $layout  The name of the module layout. If alternative
  *                           layout, in the form template:filename.
  *
  * @return  null
  */
 function onGetLayoutPath($module, $layout)
 {
     // Detect layout path in CANVAS themes
     if (defined('CANVAS_PLUGIN') && CANVAS::detect()) {
         CANVAS::import('core/path');
         $tPath = CANVASPath::getPath('html/' . $module . '/' . $layout . '.php');
         if ($tPath) {
             return $tPath;
         }
     }
     return false;
 }