/** * Set path to template used for generating block's output. * * @param string $templateType * @return Mage_XmlConnect_Block_Adminhtml_Mobile_Preview_Content */ public function setTemplate($templateType) { $deviceType = Mage::helper('xmlconnect')->getApplication()->getType(); if ($deviceType == Mage_XmlConnect_Helper_Data::DEVICE_TYPE_IPHONE) { parent::setTemplate('xmlconnect/edit/tab/design/preview/' . $templateType . '.phtml'); } else { parent::setTemplate('xmlconnect/edit/tab/design/preview/' . $templateType . '_' . $deviceType . '.phtml'); } return $this; }
/** * Set path to template used for generating block's output. * * @param string $templateType * @return Mage_XmlConnect_Block_Adminhtml_Mobile_Preview_Content */ public function setTemplate($templateType) { $deviceType = Mage::helper('xmlconnect')->getDeviceType(); parent::setTemplate('xmlconnect/edit/tab/design/preview/' . $templateType . '_' . $deviceType . '.phtml'); return $this; }