5
« il: 08 Set 2012, 20:19:16 »
Ragazzi come faccio ad eliminare lo slideshow in tutte le pagine lasciandolo solo visibile nella homepage?
Ho provato a farlo seguendo le istruzioni nei numerosi post gia risolti precedentemente ma non ci sono riuscito.
Il codice dell' index e il seguente.
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
/* The following line loads the MooTools JavaScript Library */
JHTML::_('behavior.framework', true);
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
?>
<!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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/joomla.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/slideshow.css" type="text/css" media="all" />
<script type="text/javascript" src="templates/<?php echo $this->template ?>/scripts/general.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/scripts/jquery.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/scripts/fading.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/scripts/ddmenu.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bggrey.css" type="text/css" />
<?php
include 'ie6warning.php';
include 'params.php';
if(!$showLeftCol && !$showRightCol)
{
echo '<link rel="stylesheet" href="' . $this->baseurl . '/templates/' . $this->template . '/css/bloglayout_single.css" type="text/css" />';
}
else if(($showLeftCol && !$showRightCol) || (!$showLeftCol && $showRightCol))
{
echo '<link rel="stylesheet" href="' . $this->baseurl . '/templates/' . $this->template . '/css/bloglayout.css" type="text/css" />';
}
else
{
echo '<link rel="stylesheet" href="' . $this->baseurl . '/templates/' . $this->template . '/css/bloglayout_all.css" type="text/css" />';
}
?>
</head>
<body <?php echo 'style="font-size: ' . $fontsize . ';"'; ?> >
<div id="wrapper">
<!-- HEADER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<div id="header">
<div id="companyname">
<?php if(!$logotype): ?>
<a href="<?php echo $this->baseurl ?>">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $logoimg; ?>" alt="AS Templates"/> [/url]
<?php else: ?>
<div class="companyname">
<a href="<?php echo $this->baseurl ?>">
<?php echo $logotxt; ?>
[/url]
<div class="slogan">
<?php echo $slogan; ?>
<>
<>
<?php endif; ?>
<>
<div id="submenu">
<jdoc:include type="modules" name="position-10" />
<>
<div id="mainmenu">
<jdoc:include type="modules" name="position-1"/>
<>
<div class="clear"><>
<?php
/*******************************************************************************************/
/* IF current page is home page or show slider on all pages
/*******************************************************************************************/
?>
<?php if(((JRequest::getVar('view') == 'featured') && !$this->countModules('position-11')) || !$slidershow): ?>
<div id="slideshow">
<div id="fading">
<ul class="sliding">
<li><img src="templates/<?php echo $this->template ?>/images/slide1.jpg" width="1000" height="415" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide2.jpg" width="1000" height="415" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide3.jpg" width="1000" height="415" alt="" /></li>
</ul>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(function(){
$j("#fading").faded({
speed:<?php echo $speed ?>,
crossfade: true,
autopagination: false,
autoplay: <?php echo $autoplay ?>,
autorestart: true
});
});
</script>
<>
<>
<?php elseif($this->countModules('position-11')): ?>
<div id="slideshow">
<jdoc:include type="modules" name="position-11" />
<>
<?php endif; ?>
<div class="clear"><>
<?php if($this->countModules('position-2')): ?>
<div id="breadcrumb">
<jdoc:include type="modules" name="position-2" />
<>
<div class="clear"><>
<?php endif; ?>
<div class="clear"><>
<>
<!-- END OF HEADER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- CONTENT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<div class="clear"><>
<div id="content">
<!-- COLUMN LEFT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<?php if($showLeftCol) : ?>
<div id="colleft">
<?php if($this->countModules('position-40')): ?>
<div class="row1">
<jdoc:include type="modules" name="position-40" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-41')): ?>
<div class="row2">
<jdoc:include type="modules" name="position-41" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-42')): ?>
<div class="row3">
<jdoc:include type="modules" name="position-42" style="xhtml"/>
<>
<?php endif; ?>
<>
<?php endif; ?>
<!-- END OF COlUMN LEFT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- COLUMN MAIN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<div id="colmain" <?php echo $colMainWidth; ?> >
<jdoc:include type="message" />
<?php if($row1): ?>
<div class="row1">
<?php if($this->countModules('position-20')): ?>
<div class="row1col1" <?php echo $row1colwidth; ?>>
<jdoc:include type="modules" name="position-20" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-21')): ?>
<?php if($row1sep1): ?>
<div class="sepleft_25"><>
<?php endif; ?>
<div class="row1col2" <?php echo $row1colwidth; ?>>
<jdoc:include type="modules" name="position-21" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-22')): ?>
<?php if($row1sep2 && $showRightCol && $showLeftCol && $row1 != 4): ?>
<div class="sepleft_25"><>
<?php elseif($row1sep2 && (($showRightCol && !$showLeftCol) ||
(!$showRightCol && $showLeftCol) ||
(!$showRightCol && !$showLeftCol))): ?>
<div class="sepleft_25"><>
<?php endif; ?>
<div class="row1col3" <?php echo $row1colwidth; ?>>
<jdoc:include type="modules" name="position-22" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-23')): ?>
<?php if($row1sep3): ?>
<div class="sepleft_25"><>
<?php endif; ?>
<div class="row1col4" <?php echo $row1colwidth; ?>>
<jdoc:include type="modules" name="position-23" style="xhtml"/>
<>
<?php endif; ?>
<>
<div class="clear"><>
<?php endif; ?>
<jdoc:include type="component" />
<?php if(!($showRightCol && $showLeftCol)): ?>
<?php if($this->countModules('position-5')): ?>
<div class="banner">
<jdoc:include type="modules" name="position-5" style="xhtml"/>
<>
<?php else: ?>
<div class="clear"><>
<?php endif; ?>
<?php endif; ?>
<>
<!-- END OF COLUMN MAIN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- COLUMN RIGHT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<?php if($showRightCol) : ?>
<div id="colright">
<?php if($this->countModules('position-0')): ?>
<div id="search">
<jdoc:include type="modules" name="position-0" />
<>
<?php endif; ?>
<?php if($this->countModules('position-45')): ?>
<div class="row1">
<jdoc:include type="modules" name="position-45" style="xhtml"/>
<>
<?php endif; ?>
<?php if($this->countModules('position-7')): ?>
<div id="colrightmenu">
<jdoc:include type="modules" name="position-7" style="xhtml" />
<>
<?php endif; ?>
<?php if($this->countModules('whosonlineload')): ?>
<div id="whosonline">
<jdoc:include type="modules" name="whosonlineload" style="xhtml" />
<>
<?php endif; ?>
<>
<?php endif; ?>
<!-- END OF COLUMN RIGHT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<>
<div class="clear"><>
<!-- FOOTER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<div id="footer">
<div id="footercontent">
<div class="row2">
<div class="row2col1">
<div id="trade">Copyright © <?php echo date('Y'); ?> <?php echo $app->getCfg('sitename'); ?><>
<!-- DO NOT REMOVE OR CHANGE THE CONTENT BELOW, THIS TEMPLATE MAY NOT WORK PROPERLY -->
<!-- FOR MORE INFO SEE OUR COPYRIGHT NOTICE FOR FREE WEBSITE TEMPLATES: http://astemplates.com/terms.php -->
<div id="ascopy">
<a href="http://www.asdesigning.com/" target="_blank">
| DESIGNED BY: AS DESIGNING
[/url]
<>
<!-- DO NOT REMOVE OR CHANGE THE CONTENT ABOVE, THIS TEMPLATE MAY NOT WORK PROPERLY -->
<!-- FOR MORE INFO SEE OUR COPYRIGHT NOTICE FOR FREE WEBSITE TEMPLATES: http://astemplates.com/terms.php -->
<>
<div class="row2col2">
<?php if(!$this->countModules('position-53')): ?>
<?php if(!$logotype): ?>
<a href="<?php echo $this->baseurl ?>">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $logoimg; ?>" alt="AS Templates"/> [/url]
<?php else: ?>
<div class="companyname">
<a href="<?php echo $this->baseurl ?>">
<?php echo $logotxt; ?>
[/url]
<div class="slogan">
<?php echo $slogan; ?>
<>
<>
<?php endif; ?>
<?php elseif($this->countModules('position-53')): ?>
<jdoc:include type="modules" name="position-53" style="xhtml"/>
<?php endif; ?>
<>
<>
<>
<div class="item-separator"><>
<>
<!-- END OF FOOTER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<>
</body></html>
Grazie in anticipo per le risposte