Mostrar slideshow apenas na Home hyuster1.7

  • odecioale
  • Avatar de odecioale Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
11 anos 11 meses atrás #72023 por odecioale
odecioale created the topic: Mostrar slideshow apenas na Home hyuster1.7
Olá,

Estou usando o template Hyuster1.7.
O mesmo contém um slideshow que aparece em todas as páginas.

Gostaria de saber algum código que fizesse com que aparecesse apenas na HOME (pagina inicial).

Index.php:
<?php

/****************************************************
#####################################################
##-------------------------------------------------##
##           HYUSTER- Version 1.7.0                ##
##-------------------------------------------------##
## Copyright = globbersthemes.com- 2011            ##
## Date      = OCTOBRE 2011                        ##                     
## Author    = globbers                            ##
## Websites  = http://www.globbersthemes.com       ##
##                                                 ##
#####################################################
****************************************************/

// no direct access
defined('_JEXEC') or die('Restricted access');

?>



<!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>

	<jdoc:include type="head" />
	<?php JHTML::_('behavior.framework', true); 
	$app                = JFactory::getApplication();
	$templateparams     = $app->getTemplate(true)->params;
	$csite_name	= $app->getCfg('sitename');
	$license	= "globbersthemes.com";
	
	?>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/hyuster1.7/css/tdefaut.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/hyuster1.7/css/joomlastyle.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/hyuster1.7/css/box.css" type="text/css" media="all" />
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/scroll.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/script.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/cufon-yui.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/cufon-replace.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/Bebas_400.font.js"></script>
<link rel="icon" type="image/gif" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif" />
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/jquery.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/slideshow.js"></script>
<script type="text/javascript">
        window.addEvent('domready', function() {
        SqueezeBox.initialize({});
        $$('a.modal').each(function(el) {
            el.addEvent('click', function(e) {
                new Event(e).stop();
                 SqueezeBox.fromElement(el);
            });
         });
      });
    </script>

 

<?php //setting image
$caption = $this->params->get("caption", "Tudo em produtos agropecuários, ferragens, rações, ...");

?>

    <?php  #main width#
     $mod_left = $this->countModules( 'position-7' );
     if ( $mod_left ) { $width = '';
    } else { $width = '-full';}
     ?>

</head>
<body>

<div id="wrapper-top">
	<div class="pagewidth">
	    <div id="sitename">
            <a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="271" height="134" alt="logotype" /></a>
        </div>
		
		<div id="tool">	
		    <div id="toolitem">
				<div id="loginbt">
                    <div class="text-login">	
						<a href="#helpdiv" class="modal"  style="cursor:pointer" title="Login"  rel="{size: {x: 206, y: 260}, ajaxOptions: {method: &quot;get&quot;}}">
                            login
						</a>
					</div>
                </div>
                    <div style="display:none;">
                        <div id="helpdiv" >
                            <jdoc:include type="modules" name="login" style="xhtml" />
                        </div>
                     </div>
					
					<div id="search">
                        <div  class="text-login">	
						    <a href="#helpdiv2" class="modal"  style="cursor:pointer" title="search"  rel="{size: {x: 206, y: 50}, ajaxOptions: {method: &quot;get&quot;}}">
                                search     
							</a>
					    </div>
                    </div>
                        <div style="display:none;">
                            <div id="helpdiv2" >
                                <jdoc:include type="modules" name="position-0" />
                            </div>
                        </div>
			</div>
	    </div>
		    <div id="topmenu">
		        <div id="navigation">
                    <ul class="nav"> 
                        <jdoc:include type="modules" name="position-1" />
                    </ul>
		        </div>
            </div>
			
			<div id="slide">
		        <div id="slideshow-w">
				    <div id="slideshow">
				        <img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="image1" />
					    <img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="image2" />
					    <img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="image3" />
				    </div>
					<div id="caption-image"><h4><?php //echo $caption ?></h4></div>
			    </div>
	        </div>
			    <script type="text/javascript" charset="utf-8">
					var $j = jQuery.noConflict(); 
						$j(document).ready(function(){
						 $j("#slideshow").slideshow({
			                pauseSeconds:5,
			                height:273, 
						    fadeSpeed:0.5,
							width:744, 
			                caption: false
		                });
		             });
				</script>
				
				<?php if ($this->countModules('position-3') || $this->countModules('position-4') || $this->countModules('position-8')) { ?>
				    <div id="wrapper-box">
					    <div class="box">
						    <jdoc:include type="modules" name="position-3" style="xhtml" />
						</div>
						<div class="box">
						    <jdoc:include type="modules" name="position-4" style="xhtml" />
						</div>
						<div class="box-f">
						    <jdoc:include type="modules" name="position-8" style="xhtml" />
						</div>
					</div>
		        <?php } ?>
				
				<div id="wrapper">
				    <div id="main<?php echo $width; ?>">
				        <jdoc:include type="component" />
			        </div>
				
				
				<?php if ($this->countModules('position-7')) { ?>
	                <div id="right">
	                    <jdoc:include type="modules" name="position-7" style="xhtml" />
	                </div>
			    <?php } ?>
				</div>
				    <div id="footer">
				        <div class="ftb">
                            Copyright&copy; <?php echo date( 'Y' ); ?> <?php echo $csite_name;?> .&nbsp;design by globbers for <a target=" _blank"  href= "http://www.globbersthemes.com" ><?php echo $license;?></a>
                        </div>
                        <div id="top">
                            <div class="top_button">
                                <a href="#" onclick="scrollToTop();return false;">
						        <img src="templates/<?php echo $this->template ?>/images/top.jpg" width="30" height="30" alt="top" /></a>
                            </div>
					    </div>
			        </div>
				</div>
			
</div>

</body>

</html>

tdefaut:
/****************************************************
#####################################################
##-------------------------------------------------##
##           Hyuster- Version 1.7.0                ##
##-------------------------------------------------##
## Copyright = globbersthemes.com- 2011            ##
## Date      = Octobre 2011                        ##
## Author    = globbers                            ##
## Websites  = http://www.globbersthemes.com       ##
##                                                 ##
#####################################################
****************************************************/

html {
height: 100%;

}

body{
margin:0;
padding:0;
text-align:center;
background:#CDBE70;
font-size:13px;
color:#8B814C;
font-family: arial,tahoma , sans-serif;
font-weight:normal;

}

/*texte*/
p {
font-size: 100%;

}

h1 {
font-size: 200%;

}

h2 {
font-size: 150%;

}

h3 {
font-size: 125%;

}

h4, h5, h6 {
font-size: 100%;

}

/* liens hypertextes*/ 
a:link, a:visited {
text-decoration:none;
font-weight:bold;
/* color:#908c8a; */
color:#8B814C;

}

a:hover {
color:#8B0000;

}

ul {
margin:0;
padding-left:20px;

}

li {
list-style-type:square;
background:transparent;
margin: 4px;

}

img {
border:none;
margin:3px 5px;
padding:0;

}

img .caption {
text-align: left;

}

.highlight{
background:#857c5d;
padding: 0px 2px 0px 2px;
color:#f9f3e0;

}

.button {
background:#345576;
border:none;
color:#fff;
font-weight:bold;
padding:4px;

}

.inputbox {
color:#fff;
background:#345576;
border:none;
padding:4px;
font-weight:bold;

}

.pagewidth{
width:900px;
text-align:center;
background:transparent;
margin-left:auto;
margin-right:auto;
margin-top:0px;
margin-bottom:0px;

}

fieldset {
margin:0px 5px 5px 5px;
padding:10px;
border:none;

}

/***********************/
#wrapper-top {
float:left;
width:100%;
height:250px;
background: url(../images/header.jpg) 0 0% repeat-x;

}

/**********************/
#sitename {
float:left;
width:271px;
height:134px;
background:transparent;

}

#tool {
float:right;
width:300px;
height:40px;
background:transparent;
margin-right:20px;
margin-top:50px;

}

/*********************/

#topmenu {
float:left;
width:900px;
height:60px;
background:transparent;
margin-top:50px;

}

#navigation ul {
list-style: none;
margin: 0;
padding: 0px;

}

#navigation {
float:left;
width:900px;
height:60px;
text-transform:uppercase;
margin-top:10px;

}

#navigation a {
display: block;
float: left;
height: 42px;
padding: 12px 8px 0 8px;
font-weight:normal;
font-size:20px !important;

}

#navigation  a:hover{
background: url(../images/navi.png) 0 0% repeat-x;

}

#navigation li.active a  {
color:#8B0000;

}

#navigation li {
display: block;
float: left;
margin: 0;
margin-right:11px;
padding: 0;

}

#navigation li li a {
font-size: 17px !important;
padding:20px 0 0 0;
background: url(../images/bg-ul.jpg) 0 0% repeat;

}


#navigation li li a:hover {
background: url(../images/bg-ul.jpg) 0 0% repeat;

}

#navigation li li.active a ,#navigation li li.active  {
background: url(../images/bg-ul.jpg) 0 0% repeat !important;

}


#navigation li li {
border-bottom: 1px solid #8B0000;

}

.nav, .nav * {
margin:0;
padding:0;

}

.nav{
float:left;
position: relative;
z-index:10;

}

.nav ul {
background: url(../images/bg-ul.jpg) 0 0% repeat;
padding: 0;

}

.nav li {
float:left;
list-style:none;
position:relative;
background:none;

}

.nav li li a {
display:block;
padding: 0;
text-decoration:none;
background-image: none;
float:none;
width:200px;

}

#navigation li li a {
height: 35px;
line-height:30px;

}

#navigation li:hover li,
#navigatin li.sfHover li,
#navigation li.active:hover li,
#navigation li.active.sfHover li,
#navigation li:hover li span,
#navigation li.sfHover li span {
background: url(../images/bg-ul.jpg) 0 0% repeat;

}

#navigation li:hover li a,
#navigation li.sfHover li a,
#navigation li.active:hover li a,
#navigation li.active.sfHover li a {
background: url(../images/bg-ul.jpg) 0 0% repeat;

}

.nav li ul {
float:none;
left:-999em;
position:absolute;
width: 200px;
z-index: 5;

}

.nav li:hover ul,
.nav li.sfHover ul {
left:0px;
top: 50px;

}

.nav li:hover li ul,
.nav li.sfHover li ul,
.nav li li:hover li ul,
.nav li li.sfHover li ul,
.nav li li li:hover li ul,
.nav li li li.sfHover li ul {
top:-999em;

}

.nav li li:hover ul,
.nav li li.sfHover ul,
.nav li li li:hover ul,
.nav li li li.sfHover ul,
.nav li li li li:hover ul,
.nav li li li li.sfHover ul {
left: 177px;
top:0px;
width: 200px;

}

.nav li li {
position: relative;
float:none;
width: 200px;

}

/****SLIDE*********/
#slide {
float:left;
width:888px;
height:421px;
background:transparent;
margin-top:45px;
position:relative;

}

#slideshow-w {
float:left;
width:888px;
height:421px;
background:#f8f8f8;
border:2px solid #e5e4e4;

}

#slideshow {
float:left;
width:888px;
height:316px;
background:transparent;
position:relative;

}

.slideshowlite {
float:left !important;
width: 854px;
height: 345px;
padding:0;
margin:18px 0 0 17px;

}

.slideshowlite a {
position:absolute;
left:0;
z-index: 5;
text-align:left;

} 

.slideshowlite img {
border: none;
z-index:3;
margin:0;
padding:0;

} 

.slideshowlite ul {
position: absolute;
margin-top: 350px;
left:700px !important;
 z-index: 9; 
list-style-type:none;
background:transparent;
width:123px;
height:35px;

}

.slideshowlite ul li,
.slideshowlite ol li {
float: left;
width: 24px;
padding: 0 2px 0 2px;
margin:0;
list-style-type:none;
border:none !important;

}

 .slideshowlite ul li a {
background: url(../images/button-slide.jpg) 0 0 no-repeat ;
 position: relative; 
display: block; 
width: 24px !important;
height: 24px !important;
float: left;
line-height: 36px; 
text-decoration: none;
text-align: left !important;
font-size: 1px;
 font-weight: bold; 
color: #fff !important;
border:none !important; 
text-indent:-5000px;
margin-top:12px;
margin-left:0;

}

.slideshowlite ul li a.current {
background: url(../images/button.jpg) 0 0 no-repeat ;
color: #ffffff !important;

}

.slideshowlite ul li a:hover {
color: #ffffff !important;
background: url(../images/button.jpg) 0 0 no-repeat ;

}
 
.slideshowlite ol {
display: none;

} 

#caption-image {
float:left;
width:600px;
height:25px;
background:transparent;
margin-top:95px;
margin-left:25px;

}

#caption-image h4 {
padding:0;
margin:0;
color:#345576;
text-align:left;
font-size:14px;
text-transform:capitalize;

}

/****box*****/
#wrapper-box {
float:left;
width:900px;
text-align:left;
margin-top:35px;

} 

.box {
float:left;
width:260px;
height:282px;
background:transparent;
 border-right:1px solid #dedede; 
margin-left:12px;

}

.box-f {
float:left;
width:260px;
height:262px;
background:transparent;
margin-left:12px;

}

.box .moduletable_menu  ,
.box .moduletable  ,
.box  {
padding:0px 12px 15px 12px;

}

.box-f .moduletable_menu  ,
.box-f .moduletable  ,
.box-f   {
padding:0px 12px 15px 12px;
 
}

.box .moduletable_menu h3,
.box .moduletable h3,
.box h3,
.box-f .moduletable_menu h3,
.box-f .moduletable h3,
.box-f h3 {
font-size:23px;
text-transform:uppercase;
text-align:left;
font-weight:bold;
color:#706c6b;

}

.box .moduletable_menu  a,
.box .moduletable  a,
.box  a,
.box-f .moduletable_menu  a,
.box-f .moduletable  a,
.box-f  a  {
font-weight:normal;

}

.box .moduletable_menu  a:hover,
.box .moduletable  a:hover,
.box  a:hover,
.box-f .moduletable_menu  a:hover,
.box-f .moduletable  a:hover,
.box-f  a:hover{
font-weight:normal;

}

/*********************/
#wrapper {
float:left;
width:888px;
background:#f8f8f8 url(../images/wrapper-box.jpg) 0 0 repeat-x ;
margin-top:20px;
padding:0;

}

#main {
float:left;
background:transparent;
width:553px;
padding:0;
text-align:left;
margin-bottom:0px;
margin-top:30px;

}

#main-full {
float:left;
width:880px;
text-align:left;
margin-bottom:0px;
background:transparent;
margin-top:30px

}

/******RIGHT*********/
#right {
float:left;
width:270px;
text-align:left;
padding-right:0px;
padding:0;
background:transparent;
margin-top:30px;
margin-bottom:30px;
margin-left:40px;
border-left:1px solid #dedede;

}

#right h3 {
font-size:23px;
text-transform:uppercase;
text-align:left;
font-weight:bold;
color:#706c6b;

}

#right ul {
padding-left:10px;

}

#right .moduletable_menu,
#right .moduletable {
 margin-bottom:40px;
padding-left:40px;
background:transparent;
 
}

#footer {
float:left;
width:900px;
height:60px;
background:transparent;

}

.ftb {
margin-top:30px;
text-align:center;
font-weight:normal;
font-size:13px;
width:730px;
float:left;

}

 .ftb a, .ftb a:visited{
padding:0 !important;
border:none !important;
color:#345576;

} 

.ftb a:hover {
color:#908c8a;

} 

#top {
float:left;
width:30px;
height:30px;
margin-top:18px;
padding:0 !important;
border:none !important;
background:transparent;

}

.top_button {
padding:0 !important;
border:none !important;

}





/**end file***/

SE ALGUÉM SOUBER ONDE MODIFICAR PARA APARECER APENAS NA PRIMEIRA PÁGINA AGRADEÇO.

Please Entrar ou Registrar to join the conversation.


Mais
11 anos 11 meses atrás #72031 por Fabio Cardoso
Fabio Cardoso replied the topic: Re: Mostrar slideshow apenas na Home hyuster1.7
Olá,

Por gentileza informe a versão do Joomla. Lembramos que é proibido escrever em maiúsculas, assim como criar tópicos duplicados.

O código do slideshow pelo visto é esse:
<div id="slide">
              <div id="slideshow-w">
                <div id="slideshow">
                    <img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="image1" />
                   <img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="image2" />
                   <img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="image3" />
                </div>
               <div id="caption-image"><h4><?php //echo $caption ?></h4></div>
             </div>
           </div>

Uma alternativa é excluir esse código e instalar um módulo de slideshow, e assim configurá-lo para aparecer apenas na home, acredito ser mais fácil.

um abraço,
Fabio.

"Vencer a si mesmo é a maior das vitórias."
[i:3c4s7sku]Platão[/i:3c4s7sku]

"Ensinar é mostrar que é possível. Aprender é tornar possível a si mesmo."
[i:3c4s7sku]Paulo Coelho[/i:3c4s7sku]

[b:3c4s7sku]Não respondo dúvidas sobre Joomla em MP. Use o fórum.[/b:3c4s7sku]

[color=#000080:3c4s7sku]
Criação e hospedagem de sites, e-commerce. Consultoria em Joomla.
<!--...

Please Entrar ou Registrar to join the conversation.

  • odecioale
  • Avatar de odecioale Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
11 anos 11 meses atrás #72058 por odecioale
odecioale replied the topic: Re: Mostrar slideshow apenas na Home hyuster1.7
Olá, versão do joomla é o 2.5.

O código do slide se eu remover não tem posição no mesmo local para colocar um modulo slideshow.
Por isso queria alterar para aparecer apenas na Home.

Please Entrar ou Registrar to join the conversation.