Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 3.05 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * Magento
  4.  *
  5.  * NOTICE OF LICENSE
  6.  *
  7.  * This source file is subject to the Open Software License (OSL 3.0)
  8.  * that is bundled with this package in the file LICENSE.txt.
  9.  * It is also available through the world-wide-web at this URL:
  10.  * http://opensource.org/licenses/osl-3.0.php
  11.  * If you did not receive a copy of the license and are unable to
  12.  * obtain it through the world-wide-web, please send an email
  13.  * to license@magentocommerce.com so we can send you a copy immediately.
  14.  *
  15.  * @category   design_default
  16.  * @package    Mage
  17.  * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
  18.  * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  19.  */
  20. ?>
  21. <?php
  22. /**
  23.  * Template for Mage_Page_Block_Html
  24.  */
  25. ?>
  26. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  27. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
  28. <head>
  29.     <?php echo $this->getChildHtml('head') ?>
  30. </head>
  31. <body >
  32. <div class="main">
  33.         <?php echo $this->getChildHtml('header') ?>
  34.      <div class="body">
  35.       <?php
  36.                 $curr_page=$_SERVER['PHP_SELF'];
  37.                 $curr_page=explode("/",$curr_page);
  38.                 $curr_page=$curr_page[count($curr_page) - 2];
  39.                 if($curr_page != "cart" && $curr_page != "onepage" && $curr_page != "success")
  40.                 {
  41.           ?>
  42.                         <div class="left">
  43.                                  <?php echo $this->getChildHtml('left') ?>
  44.                         </div>
  45.           <?php
  46.             }
  47.           ?>
  48.                         <div class="right2">
  49. <?php
  50.         $currentContentPage=$_SERVER['PHP_SELF'];
  51.         $currentContentPage= explode("/",$currentContentPage);
  52.         ($currentContentPage[count($currentContentPage)-2] == 'onepage') ? $isChkoutPage=1 : $isChkoutPage=0;
  53. ?>                             
  54.                    <div style="padding:7px; ">
  55.                  <!-- [start] content -->
  56.                           <?php echo $this->getChildHtml('breadcrumbs') ?>
  57.                          <?php echo $this->getChildHtml('content') ?>
  58.                          
  59. <?php
  60.         $currentContentPage=$_SERVER['PHP_SELF'];
  61.         $currentContentPage= explode("/",$currentContentPage);
  62.         ($currentContentPage[count($currentContentPage)-2] == 'onepage') ? $isChkoutPage=1 : $isChkoutPage=0;
  63.         $currentContentPage=$currentContentPage[count($currentContentPage)-1];
  64.         if($currentContentPage == 'Home-content-details')
  65.         {
  66.                 require_once('brand_pages/home-content-detail.php');
  67.                 echo '</div></div>';
  68.         }
  69.        
  70.        
  71.         else
  72.         {
  73.                 $brandId=explode("?",$_SERVER['REQUEST_URI']);
  74.                 if(count($brandId) > 1)
  75.                         $brandId=explode("=",$brandId[1]);
  76.                        
  77.                 if($brandId[0] == 'bid')
  78.                 {
  79.                         require_once('brand_pages/brand_detail.php');
  80.                 }
  81.         }
  82.        
  83.        
  84. ?>       
  85.                          
  86.                          
  87.                          
  88.                    
  89.                 <!-- [end] content -->
  90.                                 <div class="col-right side-col" style=" margin-left:120px;display:block; float:left;">
  91.                                 <?php if($isChkoutPage)
  92.                                           {    
  93.                                                 echo $this->getChildHtml('right') . "";
  94.                                           }
  95.                                 ?>             
  96.                                 </div>
  97.             </div>
  98.                         </div>
  99.              
  100.           </div>
  101.             <?php echo $this->getChildHtml('footer') ?>
  102.        
  103.         </div>
  104. </body>
  105. </html>