helper('catalog/output'); $setting = Mage::helper('themeframework/settings'); $_displayRelated = $setting->getRelated_Display(); $_positionRelated = $setting->getRelated_Position(); $_displayUpsell = $setting->getUpsell_Display(); $_product = $this->getProduct(); $_pageLayout = substr((str_replace(array('page/','.phtml'),'',Mage::app()->getLayout()->getBlock('root')->getTemplate())),0,1); switch($_pageLayout){ case 3: $_PrimaryColumnWidth = $setting->getProductDetail_PrimaryThreeColumnWidth(12); $_SecondaryColumnWidth = $setting->getProductDetail_SecondaryThreeColumnWidth(12); break; case 2: $_PrimaryColumnWidth = $setting->getProductDetail_PrimaryTwoColumnWidth(9); $_SecondaryColumnWidth = $setting->getProductDetail_SecondaryTwoColumnWidth(9); break; default: $_PrimaryColumnWidth = $setting->getProductDetail_PrimaryColumnWidth(9); $_SecondaryColumnWidth = $setting->getProductDetail_SecondaryColumnWidth(9); break; } ?>