http://www.designjetpartsfast.com
But when I translated it into a template format for Joomla, it looks like this:
http://www.davidjscott.com/misc/designj ... otWork.jpg
I know it found the CSS file correctly, otherwise the layout would be extremely messed up. I can also see the image file of my background was found, but it only displayed the image once! I need it repeated, as specified in my CSS file.
Here's the template php code:
Code: Select all
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="<?php echo $GLOBALS['mosConfig_live_site'];?>/templates/davidsTemplate/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="templates/davidsTemplate/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="davidsTemplate/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!--HEADER LOGO-->
<div id="headerLogoContainer">
<div id="loginRegisterCart">
<a href="http://designjetpartsfast.com/component/option,com_virtuemart/page,shop.registration/Itemid,39/">Sign In / Register</a> | <a href="http://designjetpartsfast.com/component/page,shop.cart/option,com_virtuemart/Itemid,41/"><img src="images/cart.gif" alt="cart icon"> Cart</a>
</div>
<div id="headerLogo">
<img src="images/headerLogo.jpg" alt="DesignJet parts banner">
</div>
</div>
<!--Links-->
<div id="topLinks">
<div class="centerMe">
<a class="moveMeRight" href="index.htm">Home</a>
<a class="moveMeRight" href="askTom.htm">Ask Tom</a>
<a class="moveMeRight" href="http://designjetpartsfast.com/component/option,com_simplefaq/Itemid,30/">FAQs</a>
<a class="moveMeRight" href="http://designjetpartsfast.com/content/view/13/34/.htm">Terms & Conditions</a>
<a href="http://www.[youtube].com/user/FixYourDesignJet#p/u/0/bbD_DWxceXc">[youtube] Channel</a>
</div>
</div>
<div id ="bodyContent">
<img src="images/bodyBG.gif" alt="body image background">
<div id ="bodyContent_leftColumnParts">
<img src="images/shop_DesignJetParts.gif" alt="Shop Design Jet Parts">
<table>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,10/option,com_virtuemart/Itemid,1/">DesignJet 100 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,14/option,com_virtuemart/Itemid,1/">DesignJet 400 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,15/option,com_virtuemart/Itemid,1/">DesignJet 500 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,16/option,com_virtuemart/Itemid,1/">DesignJet 600 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,17/option,com_virtuemart/Itemid,1/">DesignJet 700 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,18/option,com_virtuemart/Itemid,1/">DesignJet 800 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,19/option,com_virtuemart/Itemid,1/">DesignJet 1000 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,21/option,com_virtuemart/Itemid,1/">DesignJet 5000 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,22/option,com_virtuemart/Itemid,1/">DesignJet 5500 Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,25/option,com_virtuemart/Itemid,1/">DesignJet CP Series</a></td></tr>
<tr><td><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,27/option,com_virtuemart/Itemid,1/">DesignJet T Series</a></td></tr>
<tr><td class="noBottomBorder"><a href="http://designjetpartsfast.com/component/page,shop.browse/category_id,28/option,com_virtuemart/Itemid,1/">DesignJet Z Series</a></td></tr>
</table>
</div>
<div id="bodyContent_tomContent">
<jdoc:include type="component" />
<br /><br /><br />
</div>
</div>
<div id="footer">
<div class="centerMe">8331 Waterswolde Lane • Fort Wayne, IN 46825 (260) 348-5653 • Copyright © 2012 • HP DesignJet Parts FAST!</div>
</div>
</body>
</html>