View Single Post
  #11  
Old 07-01-2013, 02:59 PM
 
liamb2001 liamb2001 is offline
 

eXpert
  
Join Date: May 2006
Posts: 216
 

Default Re: Help with Putting Full Width on Home.php

thanks for posting that, ive tried putting the literal tags around the script resulting in the following

{literal}<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</script>{/literal}

but the slider still doesnt appear to be working

this is my full code, am i missing something ?

{*
1e1924d979329a127f421a68658195f4e14e6c8e, v5 (xcart_4_6_0), 2013-04-09 12:52:17, home.tpl, random
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"utf-8"}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="$skin_config"}
<html xmlns="http://www.w3.org/1999/xhtml"{if $active_modules.Socialize} xmlns:g="http://base.google.com/ns/1.0" xmlnsg="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#"{/if}>
<head>
{include file="customer/service_head.tpl"}
<link rel="stylesheet" href="orbit-1.2.3.css">
<link rel="stylesheet" href="demo-style.css">

<!-- Attach necessary JS -->
<script type="text/javascript" src="jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="jquery.orbit-1.2.3.min.js"></script>

<!--[if IE]>
<style type="text/css">
.timer { display: none !important; }
div.caption { background:transparent; filter:progidXImageTransform.Microsoft.gradient( startColorstr=#99000000,endColorstr=#99000000);zoo m: 1; }
</style>
<![endif]-->

<!-- Run the plugin -->{literal}
<script type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</script>{/literal}

</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
{if $active_modules.EU_Cookie_Law ne ""}
{include file="modules/EU_Cookie_Law/info_panel.tpl"}
{/if}
<div id="page-container"{if $page_container_class} class="{$page_container_class}"{/if}>
<div id="page-container2">
<div id="content-container">

{if $main eq "catalog" and $current_category.category eq ""}
<div id="slidercontent"><div id="sliderfeatured">

<img src="dummy-images/slider01.jpg" width="960" height="340" />
<img src="dummy-images/slider02.jpg" width="960" height="340" />
<img src="dummy-images/slider03.jpg" width="960" height="340" />

</div></div><!-- #content--><br>
{/if}
<div id="content-container2">



{if $config.Socialize.soc_fb_like_enabled eq "Y" or $config.Socialize.soc_fb_send_enabled eq "Y"}
<div id="fb-root"></div>
{/if}

{include file="customer/content.tpl"}

</div>
</div>

<div class="clearing">&nbsp;</div>

<div id="header">
{include file="customer/head.tpl"}
</div>

<div id="footer">

{include file="customer/bottom.tpl"}

</div>

{if $active_modules.Google_Analytics and $config.Google_Analytics.ganalytics_version eq 'Traditional'}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}

</div>
</div>
{load_defer_code type="js"}
{load_defer_code type="css"}
{if $active_modules.Wibiya}
{$config.Wibiya.wibiya_integration_code|default:$w ibiya_integration_code}
{/if}
</body>
</html>
__________________
X-Cart Version 4.55
Reply With Quote