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

