00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Cms_Page_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
00035 {
00036
00037 public function __construct()
00038 {
00039 parent::__construct();
00040 $this->setId('page_tabs');
00041 $this->setDestElementId('edit_form');
00042 $this->setTitle(Mage::helper('cms')->__('Page Information'));
00043 }
00044
00045 protected function _beforeToHtml()
00046 {
00047 $this->addTab('main_section', array(
00048 'label' => Mage::helper('cms')->__('General Information'),
00049 'title' => Mage::helper('cms')->__('General Information'),
00050 'content' => $this->getLayout()->createBlock('adminhtml/cms_page_edit_tab_main')->toHtml(),
00051 'active' => true
00052 ));
00053
00054 $this->addTab('design_section', array(
00055 'label' => Mage::helper('cms')->__('Custom Design'),
00056 'title' => Mage::helper('cms')->__('Custom Design'),
00057 'content' => $this->getLayout()->createBlock('adminhtml/cms_page_edit_tab_design')->toHtml(),
00058 ));
00059
00060 $this->addTab('meta_section', array(
00061 'label' => Mage::helper('cms')->__('Meta Data'),
00062 'title' => Mage::helper('cms')->__('Meta Data'),
00063 'content' => $this->getLayout()->createBlock('adminhtml/cms_page_edit_tab_meta')->toHtml(),
00064 ));
00065 if (Mage::app()->getConfig()->getModuleConfig('Mage_GoogleOptimizer')->is('active', true)
00066 && Mage::helper('googleoptimizer')->isOptimizerActiveForCms()) {
00067 $this->addTab('googleoptimizer_section', array(
00068 'label' => Mage::helper('googleoptimizer')->__('Page View Optimization'),
00069 'title' => Mage::helper('googleoptimizer')->__('Page View Optimization'),
00070 'content' => $this->getLayout()->createBlock('googleoptimizer/adminhtml_cms_page_edit_tab_googleoptimizer')->toHtml(),
00071 ));
00072 }
00073 return parent::_beforeToHtml();
00074 }
00075
00076 }