Annotation of /mambo/branches/4.6/includes/frontend.php
Parent Directory
|
Revision Log
Revision 1396 - (view) (download)
| 1 : | alwarren | 1331 | <?php |
| 2 : | /** | ||
| 3 : | * @package Mambo | ||
| 4 : | * @author Mambo Foundation Inc see README.php | ||
| 5 : | * @copyright Mambo Foundation Inc. | ||
| 6 : | * See COPYRIGHT.php for copyright notices and details. | ||
| 7 : | ocs_cms | 1396 | * @license GNU/GPL Version 2, see LICENSE.php |
| 8 : | alwarren | 1331 | * Mambo is free software; you can redistribute it and/or |
| 9 : | * modify it under the terms of the GNU General Public License | ||
| 10 : | ocs_cms | 1396 | * as published by the Free Software Foundation; version 2 of the License. |
| 11 : | */ | ||
| 12 : | alwarren | 1331 | |
| 13 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 14 : | /** | ||
| 15 : | * Displays the capture output of the main element | ||
| 16 : | */ | ||
| 17 : | function mosMainBody() { | ||
| 18 : | $handler =& mosComponentHandler::getInstance(); | ||
| 19 : | $handler->mosMainBody(); | ||
| 20 : | } | ||
| 21 : | /** | ||
| 22 : | * Utility functions and classes | ||
| 23 : | */ | ||
| 24 : | function mosLoadComponent( $name ) { | ||
| 25 : | // set up some global variables for use by the frontend component | ||
| 26 : | global $mainframe, $database; | ||
| 27 : | include( $mainframe->getCfg( 'absolute_path' )."/components/com_$name/$name.php" ); | ||
| 28 : | } | ||
| 29 : | /** | ||
| 30 : | * @param string THe template position | ||
| 31 : | */ | ||
| 32 : | function mosCountModules( $position='left' ) { | ||
| 33 : | $handler =& mosModuleHandler::getInstance(); | ||
| 34 : | return $handler->mosCountModules($position); | ||
| 35 : | } | ||
| 36 : | |||
| 37 : | /** | ||
| 38 : | * @param string The position | ||
| 39 : | * @param int The style. 0=normal, 1=horiz, -1=no wrapper | ||
| 40 : | */ | ||
| 41 : | function mosLoadModules( $position='left', $style=0 ) { | ||
| 42 : | $handler =& mosModuleHandler::getInstance(); | ||
| 43 : | return $handler->mosLoadModules($position, $style); | ||
| 44 : | } | ||
| 45 : | /** | ||
| 46 : | * Assembles head tags | ||
| 47 : | */ | ||
| 48 : | function mosShowHead($keys='', $exclude='') { | ||
| 49 : | $mainframe =& mosMainFrame::getInstance(); | ||
| 50 : | $mainframe->mosShowHead($keys, $exclude); | ||
| 51 : | } | ||
| 52 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

