コード例 #1
0
 /**
  * Renders sublayouts
  *
  * @param $name
  * @param int $viewData viewdata for the rendered sublayout, do not remove
  * @return string
  */
 public static function renderVmSubLayout($name, $viewData = 0)
 {
     if (!class_exists('VmView')) {
         require VMPATH_SITE . DS . 'helpers' . DS . 'vmview.php';
     }
     $lPath = VmView::getVmSubLayoutPath($name);
     if ($lPath) {
         ob_start();
         include $lPath;
         return ob_get_clean();
     } else {
         vmdebug('renderVmSubLayout layout not found ' . $name);
     }
 }
コード例 #2
0
 /**
  * There are too many functions doing almost the same for my taste
  * the results are sometimes slighty different and makes it hard to work with it, therefore here the function for future proxy use
  *
  */
 public static function displayProductCustomfieldSelected($product, $html, $trigger)
 {
     if (self::$customfieldRenderer) {
         self::$customfieldRenderer = false;
         if (!class_exists('VmView')) {
             require VMPATH_SITE . DS . 'helpers' . DS . 'vmview.php';
         }
         $lPath = VmView::getVmSubLayoutPath('customfield');
         if ($lPath) {
             require $lPath;
         } else {
             vmdebug('displayProductCustomfieldFE layout not found customfield');
         }
     }
     return VirtueMartCustomFieldRenderer::renderCustomfieldsCart($product, $html, $trigger);
 }