- Posts: 14116
- Thank you received: 1639
Re: Remove Footer BG frpm Home Page Only?
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
13 years 6 months ago #11160
by ivan.milic
Replied by ivan.milic on topic Re: Remove Footer BG frpm Home Page Only?
Ok, then try this:
put this before <?php if ($footer1modules) { ?>.... :
<?php
$menu = JSite::getMenu();
$isHome = 0;
if ($menu->getActive() == $menu->getDefault()) $isHome = 1;
?>
then use condition like this for code I sent you last time:
<div class="footer <?php if ($isHome) echo ' footer_frontpage'; ?>">
then open template_css.css and add this at the bottom:
.footer_frontpage{
background:none!important;
}
put this before <?php if ($footer1modules) { ?>.... :
<?php
$menu = JSite::getMenu();
$isHome = 0;
if ($menu->getActive() == $menu->getDefault()) $isHome = 1;
?>
then use condition like this for code I sent you last time:
<div class="footer <?php if ($isHome) echo ' footer_frontpage'; ?>">
then open template_css.css and add this at the bottom:
.footer_frontpage{
background:none!important;
}
Please Log in to join the conversation.
-
lmw1
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 62
- Thank you received: 0
13 years 6 months ago #11161
by lmw1
Replied by lmw1 on topic Re: Remove Footer BG frpm Home Page Only?
Nope. That didn't work either. Tell you what, here's my entire index.php file. Can you look at it and see if there's something in there that we're not considering?
I appreciate your kind help!
Respectfully,
LMW1
Code:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
$template_path = $this->baseurl.'/templates/'.$this->template;
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php // module states
$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');
$showbreadcrumbs = $this->countModules('breadcrumbs');
$showfooter[1] = $this->countModules('footer1');
$showfooter[2] = $this->countModules('footer2');
$showfooter[3] = $this->countModules('footer3');
$showfooter[4] = $this->countModules('footer4');
$showinset = $this->countModules('inset');
$showleft = $this->countModules('left');
$showpanel[1] = $this->countModules('panel1');
$showpanel[2] = $this->countModules('panel2');
$showpanel[3] = $this->countModules('panel3');
$showpanel[4] = $this->countModules('panel4');
$showright = $this->countModules('right');
$showuser1 = $this->countModules('user1');
$showuser3 = $this->countModules('user3');
$showuser[5] = $this->countModules('user5');
$showuser[6] = $this->countModules('user6');
$showuser[7] = $this->countModules('user7');
$showuser[8] = $this->countModules('user8');
$showuser[9] = $this->countModules('user9');
$showuser[10] = $this->countModules('user10');
$showuser[11] = $this->countModules('user11');
$showuser[12] = $this->countModules('user12');
$showuser[13] = $this->countModules('user13');
$showuser[14] = $this->countModules('user14');
$showuser[15] = $this->countModules('user15');
$showuser[16] = $this->countModules('user16');
$showtoolbar = $this->countModules('toolbar');
$panelmodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showpanel[$loop]) { $panelmodules++; }
}
$uppermodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showadvert[$loop]) { $uppermodules++; }
}
$bottommodules = 0;
for ($loop = 5; $loop <= 8; $loop += 1) {
if($showuser[$loop]) { $bottommodules++; }
}
$footer1modules = 0;
for ($loop = 9; $loop <= 12; $loop += 1) {
if($showuser[$loop]) { $footer1modules++; }
}
$footer2modules = 0;
for ($loop = 13; $loop <= 16; $loop += 1) {
if($showuser[$loop]) { $footer2modules++; }
}
$footer3modules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showfooter[$loop]) { $footer3modules++; }
}
?>
<?php // template parameters
// template layout
$templateWidth = $this->params->get("templateWidth", "960");
$columnLayout = $this->params->get("columnLayout", "lmr");
if ($showleft) {
$columnLeftWidth = $this->params->get("columnLeftWidth", "210");
$columnLeftPad = 0;
}else{
$columnLeftWidth = 0;
$columnLeftPad = 0;
}
if ($showright) {
$columnRightWidth = $this->params->get("columnRightWidth", "210");
$columnRightPad = 0;
}else{
$columnRightWidth = 0;
$columnRightPad = 0;
}
$contentWidth = $templateWidth - $columnLeftWidth - $columnLeftPad - $columnRightWidth - $columnRightPad;
// advert1-4 modules width
if($uppermodules) {
$advert_width = 0;
$advert_width = ($templateWidth - (($uppermodules - 1) * 12) - ($uppermodules * 8)) / $uppermodules; // 12px (margin-right); 2*4px (padding left/right)
$advert_width = floor($advert_width);
}
// user5-8 modules width
if($bottommodules) {
$bottom_width = 0;
$bottom_width = ($templateWidth - (($bottommodules - 1) * 12) - ($bottommodules * 8)) / $bottommodules;
$bottom_width = floor($bottom_width);
}
// user9-12 modules width
if($footer1modules) {
$footer1_width = 0;
$footer1_width = ($templateWidth - (($footer1modules - 1) * 12) - ($footer1modules * 8)) / $footer1modules;
$footer1_width = floor($footer1_width);
}
// user13-16 modules width
if($footer2modules) {
$footer2_width = 0;
$footer2_width = ($templateWidth - (($footer2modules - 1) * 12) - ($footer2modules * 8)) / $footer2modules;
$footer2_width = floor($footer2_width);
}
// footer1-4 modules width
if($footer3modules) {
$footer3_width = 0;
$footer3_width = ($templateWidth - (($footer3modules - 1) * 12) - ($footer3modules * 8)) / $footer3modules;
$footer3_width = floor($footer3_width);
}
// panel1-4 modules width
if($panelmodules) {
$panel_width = 0;
$panel_width = ($templateWidth - (($panelmodules - 1) * 12) - ($panelmodules * 8)) / $panelmodules;
$panel_width = floor($panel_width);
}
// add-ons
$imageReflectionLoad = $this->params->get("imageReflectionLoad", "1");
$scrollToLoad = $this->params->get("scrollToLoad", "1");
// template style
// check if in parameters
$templateStyle = $this->params->get("templateStyle", "1");
// check if it cookie
if(isset($_COOKIE['Style']))
{
$templateStyle = $_COOKIE['Style'];
}
$templateStyleTest = "";
// check if in link
if (isset($_GET['style'])) {
$templateStyleTest = $_GET['style'];
}
if ($templateStyleTest) {
$templateStyle = $templateStyleTest;
$Month = 2592000 + time();
setcookie("Style", $templateStyle, $Month);
}
if($templateStyle) {
require(YOURBASEPATH."/styles/style".$templateStyle.".php");
}else{
$backgroundImage = $this->params->get("backgroundImage", "1");
$backgroundColor = $this->params->get("backgroundColor", "#000000");
$mainFontSize = $this->params->get("mainFontSize", "12");
$bodyText = $this->params->get("bodyText", "#755D6E");
$linkColor = $this->params->get("linkColor", "#DDAC6B");
$logoColor1 = $this->params->get("logoColor1", "#FFFFFF");
$contentBg = $this->params->get("contentBg", "#000000");
$menuAnimationEffect = $this->params->get("menuEffect", "fadeIn(700)");
$topMenuText = $this->params->get("topMenuText", "#FFFFFF");
$topMenuHoverText = $this->params->get("topMenuHoverText", "#F0F0F0");
$topMenuSubText = $this->params->get("topMenuSubText", "#F2F2F2");
$topMenuButton = $this->params->get("topMenuButton", "#000000");
$mainMenuText = $this->params->get("mainMenuText", "#969696");
$mainMenuHoverText = $this->params->get("mainMenuHoverText", "#DDAC6B");
$mainMenuTextActive = $this->params->get("mainMenuTextActive", "#DDAC6B");
$componentHeadingText = $this->params->get("componentHeadingText", "#DDAC6B");
$headingText = $this->params->get("headingText", "#DDAC6B");
$headingHoverText = $this->params->get("headingHoverText", "#DDAC6B");
$modulesFontSize = $this->params->get("modulesFontSize", "12");
$featuredModuleHeading = $this->params->get("featuredModuleHeading", "#FFFFFF");
$featuredModuleBg = $this->params->get("featuredModuleBg", "#2E182D");
$featuredModuleText = $this->params->get("featuredModuleText", "#969696");
$columnHeading = $this->params->get("columnHeading", "#EDEDED");
$columnText = $this->params->get("columnText", "#969696");
$advert14ModulesHeading = $this->params->get("advert14ModulesHeading", "#FFFFFF");
$advert14ModulesText = $this->params->get("advert14ModulesText", "#755D6E");
$user58ModulesHeading = $this->params->get("user58ModulesHeading", "#FFFFFF");
$user58ModulesText = $this->params->get("user58ModulesText", "#FFFFFF");
$user912ModulesHeading = $this->params->get("user912ModulesHeading", "#FFFFFF");
$user912ModulesText = $this->params->get("user912ModulesText", "#BBBBBB");
$user1316ModulesHeading = $this->params->get("user1316ModulesHeading", "#FFFFFF");
$user1316ModulesText = $this->params->get("user1316ModulesText", "#BBBBBB");
$user1316ModulesBackground = $this->params->get("user1316ModulesBackground", "#3F2323");
$columnFirstWord = $this->params->get("columnFirstWord", "#444444");
$footer14ModulesHeading = $this->params->get("footer14ModulesHeading", "#444444");
$footer14ModulesText = $this->params->get("footer14ModulesText", "#3B3B3B");
$footer14Bg = $this->params->get("footer14Bg", "#11090a");
$footer14Border = $this->params->get("footer14Border", "#3f2323");
$copyrightText = $this->params->get("copyrightText", "#3B3B3B");
$panelBg = $this->params->get("panelBg", "#000000");
$panelHeadings = $this->params->get("panelHeadings", "#FFFFFF");
$panelBorder = $this->params->get("panelBorder", "#000000");
$panelText = $this->params->get("panelText", "#FFFFFF");
$panelLinks = $this->params->get("panelLinks", "#DDAC6B");
}
?>
<link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Rokkitt' rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/layout.css" type="text/css" />
<style type="text/css">
<!--
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>
-->
</style>
<script type="text/javascript" src="<?php echo $template_path ?>/js/jquery.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
<!-- top menu -->
<script type="text/javascript">
function mainmenu(){
jQuery("#nav ul").css({display: "none"}); // Opera Fix
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php echo $menuAnimationEffect; ?>;
},function(){jQuery(this).find('ul:first').css({visibility: "hidden"}); });}
jQuery(document).ready(function(){ mainmenu();});
</script>
<!-- featured module background -->
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('div.module_padding').has('div.moduletable_featured').addClass('featured_bg');
});
</script>
<?php if ($panelmodules) { ?>
<!-- top panel -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/toppanel.js"></script>
<?php } ?>
<?php if($imageReflectionLoad) { ?>
<!-- reflection -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/reflection.js"></script>
<?php } ?>
<?php if($scrollToLoad) { ?>
<!-- scrollTo -->
<link rel="stylesheet" href="<?php echo $template_path ?>/css/scrollTo.css" type="text/css" />
<script type="text/javascript" src="<?php echo $template_path ?>/js/scrollTo.js"></script>
<?php } ?>
</head>
<body>
<?php if ($panelmodules) { ?>
<div id="top-panel">
<div class="topPanelModules">
<?php if($showpanel[1]) { ?>
<div class="module_padding <?php if (!$showpanel[2] && !$showpanel[3] && !$showpanel[4]) { echo "last"; } ?>">
<div class="modulerow">
<jdoc:include type="modules" name="panel1" style="xhtml" />
</div>
<div class="clr"></div>
</div>
<?php } if($showpanel[2]) { ?>
<div class="module_padding <?php if (!$showpanel[3] && !$showpanel[4]) { echo "last"; } ?>">
<div class="modulerow">
<jdoc:include type="modules" name="panel2" style="xhtml" />
</div>
<div class="clr"></div>
</div>
<?php } if($showpanel[3]) { ?>
<div class="module_padding <?php if (!$showpanel[4]) { echo "last"; } ?>">
<div class="modulerow">
<jdoc:include type="modules" name="panel3" style="xhtml" />
</div>
<div class="clr"></div>
</div>
<?php } if($showpanel[4]) { ?>
<div class="module_padding last">
<div class="modulerow">
<jdoc:include type="modules" name="panel4" style="xhtml" />
</div>
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<div id="sub-panel"><a href="#" id="toggle"><span id="shText">Open</span></a></div>
<?php } ?>
<div class="wrapper1">
<div class="header">
<div class="logo">
<div class="logo_pad">
<jdoc:include type="modules" name="logo" />
</div>
</div>
<div class="header_menu">
<jdoc:include type="modules" name="user4" />
</div>
</div>
<?php if ($showuser3) { ?>
<div id="topmenu">
<div id="topmenu_pad">
<jdoc:include type="modules" name="user3" />
</div>
</div>
<?php } ?>
<?php if ($showuser1) { ?>
<div class="gallery">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<div class="clr"></div>
<?php } ?>
<?php if ($uppermodules) { ?>
<div class="upper">
<?php if($showadvert[1]) { ?>
<div class="module_padding <?php if (!$showadvert[2] && !$showadvert[3] && !$showadvert[4]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c5">
<jdoc:include type="modules" name="advert1" style="hot" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showadvert[2]) { ?>
<div class="module_padding <?php if (!$showadvert[3] && !$showadvert[4]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c6">
<jdoc:include type="modules" name="advert2" style="hot" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showadvert[3]) { ?>
<div class="module_padding <?php if (!$showadvert[4]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c7">
<jdoc:include type="modules" name="advert3" style="hot" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showadvert[4]) { ?>
<div class="module_padding last">
<div class="modulerow">
<div id="c8" class="last">
<jdoc:include type="modules" name="advert4" style="hot" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
<?php } ?>
<?php
$menu = & JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
?>
<div class="main_area">
<?php
if($columnLayout=="mlr") {
require(dirname(__FILE__).DS.'/inc/col_main.php');
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
} else if($columnLayout=="lrm") {
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
require(dirname(__FILE__).DS.'/inc/col_main.php');
} else {
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_main.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
}
?>
<div class="clr"></div>
</div>
<?php } ?>
<?php if ($bottommodules) { ?>
<div class="bottom">
<?php if($showuser[5]) { ?>
<div class="module_padding <?php if (!$showuser[6] && !$showuser[7] && !$showuser[8]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c1">
<jdoc:include type="modules" name="user5" style="xhtml" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showuser[6]) { ?>
<div class="module_padding <?php if (!$showuser[7] && !$showuser[8]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c2">
<jdoc:include type="modules" name="user6" style="xhtml" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showuser[7]) { ?>
<div class="module_padding <?php if (!$showuser[8]) { echo "last"; } ?>">
<div class="modulerow">
<div id="c3">
<jdoc:include type="modules" name="user7" style="xhtml" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } if($showuser[8]) { ?>
<div class="module_padding last">
<div class="modulerow">
<div id="c4" class="last">
<jdoc:include type="modules" name="user8" style="xhtml" />
</div>
</div>
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
<?php } ?>
</div>
<?php if ($footer1modules) { ?>
<div class="footer_wrap">
<div class="footer">
<?php if($showuser[9]) { ?>
<div class="module_padding <?php if (!$showuser[10] && !$showuser[11] && !$showuser[12]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user9" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[10]) { ?>
<div class="module_padding <?php if (!$showuser[11] && !$showuser[12]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user10" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[11]) { ?>
<div class="module_padding <?php if (!$showuser[12]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user11" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[12]) { ?>
<div class="module_padding last">
<jdoc:include type="modules" name="user12" style="xhtml" />
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
<?php if ($footer2modules) { ?>
<div class="footer_wrap2">
<div class="footer_wrap2_bottom">
<div class="footer2">
<?php if($showuser[13]) { ?>
<div class="module_padding <?php if (!$showuser[14] && !$showuser[15] && !$showuser[16]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user13" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[14]) { ?>
<div class="module_padding <?php if (!$showuser[15] && !$showuser[16]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user14" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[15]) { ?>
<div class="module_padding <?php if (!$showuser[16]) { echo "last"; } ?>">
<jdoc:include type="modules" name="user15" style="xhtml" />
<div class="clr"></div>
</div>
<?php } if($showuser[16]) { ?>
<div class="module_padding last">
<jdoc:include type="modules" name="user16" style="xhtml" />
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
</div>
<?php } ?>
<?php if ($footer3modules) { ?>
<div class="footer_wrap3">
<div class="footer3">
<?php if($showfooter[1]) { ?>
<div class="module_padding <?php if (!$showfooter[2] && !$showfooter[3] && !$showfooter[4]) { echo "last"; } ?>">
<jdoc:include type="modules" name="footer1" style="hot" />
<div class="clr"></div>
</div>
<?php } if($showfooter[2]) { ?>
<div class="module_padding <?php if (!$showfooter[3] && !$showfooter[4]) { echo "last"; } ?>">
<jdoc:include type="modules" name="footer2" style="hot" />
<div class="clr"></div>
</div>
<?php } if($showfooter[3]) { ?>
<div class="module_padding <?php if (!$showfooter[4]) { echo "last"; } ?>">
<jdoc:include type="modules" name="footer3" style="hot" />
<div class="clr"></div>
</div>
<?php } if($showfooter[4]) { ?>
<div class="module_padding last">
<jdoc:include type="modules" name="footer4" style="hot" />
<div class="clr"></div>
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
<div class="footer_wrap4">
<div class="footer4">
<div class="footer_copyright1">
<jdoc:include type="modules" name="footer" />
</div>
<div class="footer_copyright2">
<jdoc:include type="modules" name="bottom" style="none" />
</div>
<div class="clr"></div>
</div>
</div>
<jdoc:include type="modules" name="debug" style="none" />
<?php if($scrollToLoad) { ?>
<div id="message">
<a href="#top" id="top-link"><img src="<?php echo $template_path ?>/images/top.png" width="53" height="53" alt="top" /></a>
</div>
<?php } ?>
</body>
</html>
I appreciate your kind help!
Respectfully,
LMW1
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 6 months ago - 2 years 10 months ago #11168
by ivan.milic
Replied by ivan.milic on topic Re: Remove Footer BG frpm Home Page Only?
Ok, I modified it , try it now.
Last edit: 2 years 10 months ago by milos.
Please Log in to join the conversation.
Time to create page: 0.080 seconds