Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nav Bar (Phoenix)


grouppda

Recommended Posts

You would create a new Header module that outputs the navbar content.  You would then turn this on and turn off the core Navbar module.

OR

You would create a new Navigation Module that outputs the logo.  You then turn this on and turn off the core Logo module.

 

 

Link to comment
Share on other sites

The easiest way...

in catalog/includes/templatetop.php       

search for :     echo $oscTemplate->getContent('navigation'); 

 

 

<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2018 osCommerce
  Released under the GNU General Public License
*/
 $oscTemplate->buildBlocks();  
 $OSCOM_Hooks->call('siteWide', 'injectRedirects');  
 if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html>
<html<?php echo HTML_PARAMS; ?>>
<head>
<meta charset="<?php echo CHARSET; ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<?php 
echo $OSCOM_Hooks->call('siteWide', 'injectSiteStart');
echo $oscTemplate->getBlocks('header_tags'); 
?>
</head>
<body>
  <?php 
  echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');
 

//  NAVBAR ABOVE HEADERLOGO,    show = remove // in the echo line
      // echo $oscTemplate->getContent('navigation'); 
// END NAVBAR ABOVE HEADERLOGO

  
  ?> 
  <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?> pt-2">
   <?php
   echo $OSCOM_Hooks->call('siteWide', 'injectBodyWrapperStart');    
   echo $OSCOM_Hooks->call('siteWide', 'injectBeforeHeader');
   require('includes/header.php');


    
    // NAVBAR UNDER HEADERLOGO,    hide = put // in the echo line
    echo $oscTemplate->getContent('navigation');
    echo "<br>";
    // END NAVBAR UNDER HEADERLOGO


    
    echo $OSCOM_Hooks->call('siteWide', 'injectAfterHeader');          
    ?>
    <div class="row">
    <div id="bodyContent" class="col order-1 order-md-6">      
    <?php
     echo $OSCOM_Hooks->call('siteWide', 'injectBodyContentStart');
     ?>
 

Link to comment
Share on other sites

2 hours ago, grouppda said:

The easiest way...

in catalog/includes/templatetop.php       

search for :     echo $oscTemplate->getContent('navigation'); 

 

 

<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2018 osCommerce
  Released under the GNU General Public License
*/
 $oscTemplate->buildBlocks();  
 $OSCOM_Hooks->call('siteWide', 'injectRedirects');  
 if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html>
<html<?php echo HTML_PARAMS; ?>>
<head>
<meta charset="<?php echo CHARSET; ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<?php 
echo $OSCOM_Hooks->call('siteWide', 'injectSiteStart');
echo $oscTemplate->getBlocks('header_tags'); 
?>
</head>
<body>
  <?php 
  echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');
 

//  NAVBAR ABOVE HEADERLOGO,    show = remove // in the echo line
      // echo $oscTemplate->getContent('navigation'); 
// END NAVBAR ABOVE HEADERLOGO

  
  ?> 
  <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?> pt-2">
   <?php
   echo $OSCOM_Hooks->call('siteWide', 'injectBodyWrapperStart');    
   echo $OSCOM_Hooks->call('siteWide', 'injectBeforeHeader');
   require('includes/header.php');


    
    // NAVBAR UNDER HEADERLOGO,    hide = put // in the echo line
    echo $oscTemplate->getContent('navigation');
    echo "<br>";
    // END NAVBAR UNDER HEADERLOGO


    
    echo $OSCOM_Hooks->call('siteWide', 'injectAfterHeader');          
    ?>
    <div class="row">
    <div id="bodyContent" class="col order-1 order-md-6">      
    <?php
     echo $OSCOM_Hooks->call('siteWide', 'injectBodyContentStart');
     ?>
 

This is possibly going to get over written by a future update, I would do as @burt suggested and create a *new* module. All you really need to do is take the current header module files, make some minor changes and drop them into the navigation folder

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...