Removing Slideshow from Globbers Platine45 template - Joomla! Forum - community, help and support
i'm working on platine45 template , want hard-coded slideshow appear on homepage. i've tried emailing globbers advice on numerous occasions yet receive reply.
if appreciate it.
the template code follows:
#####################################################
##-------------------------------------------------##
## platine45- version 1.6.0 ##
##-------------------------------------------------##
## copyright = globbersthemes.com- 2011 ##
## date = avril 2011 ##
## author = globbers ##
## websites = http://www.globbersthemes.com ##
## license = commercial license ##
#####################################################
****************************************************/
// 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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<?php jhtml::_('behavior.framework', true);
$app = jfactory::getapplication();
$templateparams = $app->gettemplate(true)->params;
?>
<?php //setting slide fading
$speed= $this->params->get("speed", "900");
$autoplay= $this->params->get("autoplay", "5000");
?>
<?php //main width
$mod_right = $this->countmodules( 'right' );
if ( $mod_right ) {
$longueur = '';
} else {
$longueur = '-full';}
?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/css/tdefaut.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/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/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/kabelctt_ultra_400.font.js"></script>
<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/faded.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/scroll.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/lytebox.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/css/lytebox.css" type="text/css" />
<!--[if ie 8]>
<link href="templates/<?php echo $this->template ?>/css/ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
<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>
</head>
<body>
<div class="pagewidth">
<div id="sitename">
<a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="273" height="85" alt="logotype" /></a>
</div>
<div id="topmenu">
<div id="navigation">
<ul class="nav">
<jdoc:include type="modules" name="position-3" />
</ul>
</div>
</div>
<div id="slide">
<div id="faded">
<ul>
<li><img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide4.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide5.jpg" alt="" /></li>
</ul>
<ul class="pagination">
<li> <a href="#" rel="0"> <img src="templates/<?php echo $this->template ?>/images/slide1-thumb.jpg" alt="" /></a></li>
<li> <a href="#" rel="1"> <img src="templates/<?php echo $this->template ?>/images/slide2-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="2"> <img src="templates/<?php echo $this->template ?>/images/slide3-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="3"> <img src="templates/<?php echo $this->template ?>/images/slide4-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="4"> <img src="templates/<?php echo $this->template ?>/images/slide5-thumb.jpg" alt="" /></a> </li>
</ul>
</div>
<div id="newsflash">
<jdoc:include type="modules" name="position-1" style="xhtml" />
</div>
</div>
<script type="text/javascript">
var $j = jquery.noconflict();
$j(function(){
$j("#faded").faded({
speed:<?php echo $speed ?>,// 900,
crossfade: true,
autopagination: false,
autoplay: <?php echo $autoplay ?>,//default 5000,
autorestart: true
});
});
</script>
<div id="tool">
<div id="loginbt">
<div class="text-login"> <a href="#helpdiv" class="modal" style="cursor:pointer" title="login" rel="{size: {x: 206, y: 333}, ajaxoptions: {method: "get"}}">
<img src="templates/<?php echo $this->template ?>/images/login.jpg" width="43" height="73" alt="login form" /></a>
</div>
</div>
<div style="display:none;">
<div id="helpdiv" >
<jdoc:include type="modules" name="login" style="xhtml" />
</div>
</div>
</div>
<div id="search-wrapper">
<?php if($this->countmodules('position-0')) : ?>
<div id="search">
<jdoc:include type="modules" name="position-0" />
</div>
</div>
<?php endif; ?>
<div id="main<?php echo $longueur; ?>">
<jdoc:include type="component" />
</div>
<?php if($this->countmodules('right')) : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<?php endif; ?>
<div id="footer">
<div id="footer_tm">
<div class="ftb">
</div>
</div>
<div id="top">
<div class="top_button">
<a href="#" onclick="scrolltotop();return false;">
<img src="templates/<?php echo $this->template ?>/images/top.png" width="30" height="30" alt="top" /></a>
</div>
</div>
</div>
</div>
</body>
</html>[/code]
thanks
if appreciate it.
the template code follows:
#####################################################
##-------------------------------------------------##
## platine45- version 1.6.0 ##
##-------------------------------------------------##
## copyright = globbersthemes.com- 2011 ##
## date = avril 2011 ##
## author = globbers ##
## websites = http://www.globbersthemes.com ##
## license = commercial license ##
#####################################################
****************************************************/
// 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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<?php jhtml::_('behavior.framework', true);
$app = jfactory::getapplication();
$templateparams = $app->gettemplate(true)->params;
?>
<?php //setting slide fading
$speed= $this->params->get("speed", "900");
$autoplay= $this->params->get("autoplay", "5000");
?>
<?php //main width
$mod_right = $this->countmodules( 'right' );
if ( $mod_right ) {
$longueur = '';
} else {
$longueur = '-full';}
?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/css/tdefaut.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/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/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/kabelctt_ultra_400.font.js"></script>
<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/faded.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/scroll.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/lytebox.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/platine45-1.6/css/lytebox.css" type="text/css" />
<!--[if ie 8]>
<link href="templates/<?php echo $this->template ?>/css/ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
<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>
</head>
<body>
<div class="pagewidth">
<div id="sitename">
<a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="273" height="85" alt="logotype" /></a>
</div>
<div id="topmenu">
<div id="navigation">
<ul class="nav">
<jdoc:include type="modules" name="position-3" />
</ul>
</div>
</div>
<div id="slide">
<div id="faded">
<ul>
<li><img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide4.jpg" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide5.jpg" alt="" /></li>
</ul>
<ul class="pagination">
<li> <a href="#" rel="0"> <img src="templates/<?php echo $this->template ?>/images/slide1-thumb.jpg" alt="" /></a></li>
<li> <a href="#" rel="1"> <img src="templates/<?php echo $this->template ?>/images/slide2-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="2"> <img src="templates/<?php echo $this->template ?>/images/slide3-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="3"> <img src="templates/<?php echo $this->template ?>/images/slide4-thumb.jpg" alt="" /></a> </li>
<li> <a href="#" rel="4"> <img src="templates/<?php echo $this->template ?>/images/slide5-thumb.jpg" alt="" /></a> </li>
</ul>
</div>
<div id="newsflash">
<jdoc:include type="modules" name="position-1" style="xhtml" />
</div>
</div>
<script type="text/javascript">
var $j = jquery.noconflict();
$j(function(){
$j("#faded").faded({
speed:<?php echo $speed ?>,// 900,
crossfade: true,
autopagination: false,
autoplay: <?php echo $autoplay ?>,//default 5000,
autorestart: true
});
});
</script>
<div id="tool">
<div id="loginbt">
<div class="text-login"> <a href="#helpdiv" class="modal" style="cursor:pointer" title="login" rel="{size: {x: 206, y: 333}, ajaxoptions: {method: "get"}}">
<img src="templates/<?php echo $this->template ?>/images/login.jpg" width="43" height="73" alt="login form" /></a>
</div>
</div>
<div style="display:none;">
<div id="helpdiv" >
<jdoc:include type="modules" name="login" style="xhtml" />
</div>
</div>
</div>
<div id="search-wrapper">
<?php if($this->countmodules('position-0')) : ?>
<div id="search">
<jdoc:include type="modules" name="position-0" />
</div>
</div>
<?php endif; ?>
<div id="main<?php echo $longueur; ?>">
<jdoc:include type="component" />
</div>
<?php if($this->countmodules('right')) : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<?php endif; ?>
<div id="footer">
<div id="footer_tm">
<div class="ftb">
</div>
</div>
<div id="top">
<div class="top_button">
<a href="#" onclick="scrolltotop();return false;">
<img src="templates/<?php echo $this->template ?>/images/top.png" width="30" height="30" alt="top" /></a>
</div>
</div>
</div>
</div>
</body>
</html>[/code]
thanks
this how have been doing it
add below restricted access code
then wrap code want show on homepage this
and if want show on internal pages, include within this
add below restricted access code
code: select all
<?php
$home = 0;
$app = jfactory::getapplication();
$menuitem = $app->getmenu();
if ($menuitem->getactive() == $menuitem->getdefault()) {
$home = "1";
}
?>then wrap code want show on homepage this
code: select all
<?php if ($home) : ?>
<!-- slider -->
<?php endif; ?>and if want show on internal pages, include within this
code: select all
<?php if (!$home) : ?>
<!-- mini slider on internal pages -->
<?php endif; ?>
Comments
Post a Comment