Beispiel #1
0
 /**
  *
  * @param $tpl
  * @return unknown_type
  */
 function getLayoutVars($tpl = null)
 {
     $app = JFactory::getApplication();
     $layout = $this->getLayout();
     $this->renderSubmenu();
     switch (strtolower($layout)) {
         case "gallery":
         case "setquantities":
         case "selectcategories":
             $this->_default($tpl);
             break;
         case "view":
             $this->_form($tpl);
             break;
         case "form_relations":
         case "form":
             $app->input->set('hidemainmenu', '1');
             DSCImage::loadUploadify();
             $this->_form($tpl);
             break;
         case "default":
         default:
             $this->set('leftMenu', 'leftmenu_catalog');
             $this->_default($tpl);
             break;
     }
 }
Beispiel #2
0
 /**
  * 
  * @param $tpl
  * @return unknown_type
  */
 function getLayoutVars($tpl = null)
 {
     $layout = $this->getLayout();
     switch (strtolower($layout)) {
         case "gallery":
         case "setquantities":
         case "selectcategories":
             $this->_default($tpl);
             break;
         case "view":
             $this->_form($tpl);
             break;
         case "form_relations":
         case "form":
             JRequest::setVar('hidemainmenu', '1');
             DSCImage::loadUploadify();
             $this->_form($tpl);
             break;
         case "default":
         default:
             $this->set('leftMenu', 'leftmenu_catalog');
             $this->_default($tpl);
             break;
     }
 }