Source for file wrapper.php

Documentation is available at wrapper.php

  1. <?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. @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. */ 
  14.  
  15. /** ensure this file is being included by a parent file */
  16. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  17.  
  18. /** load the html drawing class */
  19. require_once$mainframe->getPath'front_html' ) );
  20.  
  21. showWrap$option );
  22.  
  23. function showWrap$option {
  24.     global $database$Itemid$mainframe;
  25.  
  26.     $menu =new mosMenu$database );
  27.     $menu->load$Itemid );
  28.     $params =new mosParameters$menu->params );
  29.     $params->def'back_button'$mainframe->getCfg'back_button' ) );
  30.     $params->def'scrolling''auto' );
  31.     $params->def'page_title''1' );
  32.     $params->def'pageclass_sfx''' );
  33.     $params->def'header'$menu->name );
  34.     $params->def'height''500' );
  35.     $params->def'height_auto''1' );
  36.     $params->def'width''100%' );
  37.     $params->def'add''1' );
  38.     $url $params->def'url''' );
  39.     
  40.     if $params->get'add' ) ) {
  41.         // adds 'http://' if none is set    
  42.         if !strstr$url'http' && !strstr$url'https' ) ) {
  43.             $row->url 'http://'$url;
  44.         else {
  45.             $row->url $url;
  46.         }
  47.     else {
  48.         $row->url $url;
  49.     }
  50.  
  51.     // auto height control
  52.     if $params->def'height_auto' ) ) {
  53.         $row->load 'window.onload = iFrameHeight;';
  54.     else {
  55.         $row->load '';
  56.     }
  57.  
  58.   $mainframe->SetPageTitle($menu->name);
  59.     HTML_wrapper::displayWrap$row$params$menu );
  60. }
  61.  
  62. ?>

Documentation generated on Mon, 05 May 2008 16:24:34 +0400 by phpDocumentor 1.4.0