The code consists of <DIV> tags to attach CSS rules to and IF/ELSE statements based on URL Variables (PHP) or Querystrings (ASP) to determine an include file.
Some example code from the top_nav section (in ASP):
- Code: Select all
<div id="top_nav">
<% If Request.QueryString("BRAND")="MEDOG" Then %>
<!--#include file="SSI/MEDOG/top_nav.html" -->
<% ElseIf Request.QueryString("BRAND")="COOL" %>
<!--#include file="SSI/COOL/top_nav.html"-->
<% Else %>
<!--#include file="SSI/DEFAULT/top_nav.html"-->
<% End If %>
</div><!-- END TOP_NAV-->
IN PHP:
- Code: Select all
<div id="top_nav">
<?php
$url_var = $_GET[BRAND'];
if ($url_var=="MEDOG")
include("SSI/MEDOG/top_nav.html");
elseif ($url_var=="COOL")
include("SSI/COOL/top_nav.html");
Else
include("SSI/DEFAULT/top_nav.html");
?>
</div><!-- END TOP_NAV-->
With the URL: http://www.URL.com/template.aspx?BRAND=COOL the /SSI/COOL/top_nav.html file would be loaded.
Does anyone have any experience in this matter?
Or has anyone found a solution to a similar problem?
Will this cause any errors with shopsite?