fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9226] api: noheader


From: Sigurd Nes
Subject: [Fmsystem-commits] [9226] api: noheader
Date: Wed, 25 Apr 2012 13:58:25 +0000

Revision: 9226
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9226
Author:   sigurdne
Date:     2012-04-25 13:58:24 +0000 (Wed, 25 Apr 2012)
Log Message:
-----------
api: noheader

Modified Paths:
--------------
    trunk/phpgwapi/templates/portico/head.inc.php
    trunk/phpgwapi/templates/portico/head.tpl
    trunk/phpgwapi/templates/portico/js/base.js

Modified: trunk/phpgwapi/templates/portico/head.inc.php
===================================================================
--- trunk/phpgwapi/templates/portico/head.inc.php       2012-04-25 13:57:35 UTC 
(rev 9225)
+++ trunk/phpgwapi/templates/portico/head.inc.php       2012-04-25 13:58:24 UTC 
(rev 9226)
@@ -120,6 +120,8 @@
        $app = lang($app);
        $tpl_vars = array
        (
+               'noheader'              => 
isset($GLOBALS['phpgw_info']['flags']['noheader_xsl']) && 
$GLOBALS['phpgw_info']['flags']['noheader_xsl'] ? 'true' : 'false',
+               'nofooter'              => 
isset($GLOBALS['phpgw_info']['flags']['nofooter']) && 
$GLOBALS['phpgw_info']['flags']['nofooter'] ? 'true' : 'false',
                'css'                   => $GLOBALS['phpgw']->common->get_css(),
                'javascript'    => $GLOBALS['phpgw']->common->get_javascript(),
                'img_icon'      => 
$GLOBALS['phpgw']->common->find_image('phpgwapi', 'favicon.ico'),

Modified: trunk/phpgwapi/templates/portico/head.tpl
===================================================================
--- trunk/phpgwapi/templates/portico/head.tpl   2012-04-25 13:57:35 UTC (rev 
9225)
+++ trunk/phpgwapi/templates/portico/head.tpl   2012-04-25 13:58:24 UTC (rev 
9226)
@@ -28,6 +28,8 @@
                <!--
                        var border_layout_config = {border_layout_config};
                        var navbar_config = {navbar_config};
+                       var noheader = {noheader};
+                       var nofooter = {nofooter};
                //-->
                </script>
                <!-- BEGIN javascript -->

Modified: trunk/phpgwapi/templates/portico/js/base.js
===================================================================
--- trunk/phpgwapi/templates/portico/js/base.js 2012-04-25 13:57:35 UTC (rev 
9225)
+++ trunk/phpgwapi/templates/portico/js/base.js 2012-04-25 13:58:24 UTC (rev 
9226)
@@ -175,16 +175,28 @@
                        this.config.unitRightWidth = 6;
                }       
                
+               var header_height = 26;
+               if(noheader)
+               {
+                       header_height = 0;
+               }
+
+               var footer_height = 26;
+               if(nofooter)
+               {
+                       footer_height = 0;
+               }
+
                this.layout = new YAHOO.widget.Layout({
                        minWidth: 600,
                        minHeight: 400,
             units: [
-                               { position: 'top', body: layout['north'], 
height: 26 },
+                               { position: 'top', body: layout['north'], 
height: header_height },
                                { position: 'left', header: this.getHeader( 
layout['west'] ), body: layout['west'], width: this.config.unitLeftWidth, 
resize: true, scroll: true, gutter: "5px", collapse: false,  maxWidth: 300, 
minWidth: 6 },
                 { position: 'center', header: this.getHeader( layout['center'] 
), body: layout['center'], scroll: true, gutter: "5px 0px" },
        // Uncomment for make use of east-layout
     //           { position: 'right', header: this.getHeader( layout['east']  
), body: layout['east'], width: this.config.unitRightWidth, resize: true, 
scroll: true, gutter: "5px", collapse: false, maxWidth: 300, minWidth: 6 },
-                { position: 'bottom', body: layout['south'], height: 26 }
+                { position: 'bottom', body: layout['south'], height: 
footer_height }
             ]
         });
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]