Changeset 15948
- Timestamp:
- 02/06/12 00:21:55 (4 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
inc/classes/BxDolPage.php (modified) (1 diff)
-
inc/classes/BxDolTemplate.php (modified) (1 diff)
-
templates/base/scripts/BxBasePage.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolPage.php
r15943 r15948 52 52 * - override_class_name: user defined class name which is derived from BxTemplPage. 53 53 * - override_class_file: the location of the user defined class, leave it empty if class is located in system folders. 54 * 55 * Page can select appropriate menu automatically if 'module' and 'object' fields in 'sys_objects_page' table are matched with 'module' and 'name' fields in 'sys_menu_items' table. 56 * 54 57 * 55 58 * Page layout are stored in 'sys_pages_layouts' table: -
trunk/inc/classes/BxDolTemplate.php
r15942 r15948 1723 1723 $this->setPageHeader ($sTitle); 1724 1724 $this->setPageContent ('page_main_code', DesignBoxContent($sTitle, MsgBox($sTitle), BX_DB_PADDING_DEF)); 1725 PageCode();1725 $this->getPageCode(); 1726 1726 exit; 1727 1727 } -
trunk/templates/base/scripts/BxBasePage.php
r15923 r15948 40 40 41 41 $this->_addSysTemplateVars(); 42 43 $this->_selectMenu(); 42 44 43 45 // TODO: insert profiler call here … … 138 140 139 141 /** 142 * Select menu from page properties. 143 */ 144 protected function _selectMenu () { 145 bx_import('BxDolMenu'); 146 BxDolMenu::setSelected ($this->_aObject['module'], $this->_aObject['object']); 147 } 148 149 /** 140 150 * Get content for 'raw' block type. 141 151 * @return string … … 175 185 */ 176 186 protected function _getBlockRss ($aBlock) { 177 list( $sUrl, $iNum ) = explode( '#', $sContent ); 187 if (empty($aBlock['content'])) 188 return false; 189 190 list( $sUrl, $iNum ) = explode('#', $aBlock['content']); 178 191 $iNum = (int)$iNum; 179 192
Note: See TracChangeset
for help on using the changeset viewer.