[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/ja_purity/ -> ja_vars.php (source)

   1  <?php
   2  /**
   3   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   4   * @license        GNU/GPL, see LICENSE.php
   5   * Joomla! is free software. This version may have been modified pursuant
   6   * to the GNU General Public License, and as distributed it includes or
   7   * is derivative of works licensed under the GNU General Public License or
   8   * other free or open source software licenses.
   9   * See COPYRIGHT.php for copyright notices and details.
  10   */
  11  
  12  // no direct access
  13  defined( '_JEXEC' ) or die( 'Restricted access' );
  14  
  15  include_once (dirname(__FILE__).DS.'/ja_templatetools.php');
  16  
  17  $tmpTools = new JA_Tools($this);
  18  
  19  # Auto Collapse Divs Functions ##########
  20  $ja_left = $this->countModules('left') || ($tmpTools->getParam(JA_TOOL_MENU) == 1);
  21  $ja_right = $this->countModules('right');
  22  
  23  if ( $ja_left && $ja_right ) {
  24      $divid = '';
  25      } elseif ( $ja_left ) {
  26      $divid = '-fr';
  27      } elseif ( $ja_right ) {
  28      $divid = '-fl';
  29      } else {
  30      $divid = '-f';
  31  }
  32  
  33  $curidx = $tmpTools->getCurrentMenuIndex();
  34  //if ($curidx) $curidx--;
  35  
  36  //Calculate the width of template
  37  $tmpWidth = '';
  38  $tmpWrapMin = '100%';
  39  switch ($tmpTools->getParam(JA_TOOL_SCREEN)){
  40      case 'auto':
  41          $tmpWidth = '97%';
  42          break;
  43      case 'fluid':
  44          $tmpWidth = intval($tmpTools->getParam('ja_screen_width'));
  45          $tmpWidth = $tmpWidth ? $tmpWidth.'%' : '90%';
  46          break;
  47      case 'fix':
  48          $tmpWidth = intval($tmpTools->getParam('ja_screen_width'));
  49          $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px';
  50          $tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px';
  51          break;
  52      default:
  53          $tmpWidth = intval($tmpTools->getParam(JA_TOOL_SCREEN));
  54          $tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px';
  55          $tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px';
  56          break;
  57  }
  58  
  59  ?>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1