| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @author Mambo Foundation Inc see README.php 5 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 8 * 9 * Redistributions of files must retain the above copyright notice. 10 * 11 * Mambo is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; version 2 of the License. 14 */ 15 16 /** ensure this file is being included by a parent file */ 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 18 19 /** load the html drawing class */ 20 require_once( $mainframe->getPath( 'front_html' ) ); 21 22 showWrap( $option ); 23 24 function showWrap( $option ) { 25 global $database, $Itemid, $mainframe; 26 27 $menu =& new mosMenu( $database ); 28 $menu->load( $Itemid ); 29 $params =& new mosParameters( $menu->params ); 30 $params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); 31 $params->def( 'scrolling', 'auto' ); 32 $params->def( 'page_title', '1' ); 33 $params->def( 'pageclass_sfx', '' ); 34 $params->def( 'header', $menu->name ); 35 $params->def( 'height', '500' ); 36 $params->def( 'height_auto', '1' ); 37 $params->def( 'width', '100%' ); 38 $params->def( 'add', '1' ); 39 $url = $params->def( 'url', '' ); 40 41 if ( $params->get( 'add' ) ) { 42 // adds 'http://' if none is set 43 if ( !strstr( $url, 'http' ) && !strstr( $url, 'https' ) ) { 44 $row->url = 'http://'. $url; 45 } else { 46 $row->url = $url; 47 } 48 } else { 49 $row->url = $url; 50 } 51 52 // auto height control 53 if ( $params->def( 'height_auto' ) ) { 54 $row->load = 'window.onload = iFrameHeight;'; 55 } else { 56 $row->load = ''; 57 } 58 59 $mainframe->SetPageTitle($menu->name); 60 HTML_wrapper::displayWrap( $row, $params, $menu ); 61 } 62 63 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |