STRONA GŁÓWNA

Locked
nextto
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 11, 2011 2:30 pm

STRONA GŁÓWNA

Post by nextto » Sat Jun 11, 2011 2:38 pm

witam wszystkich - jestem poczatkujacy w joomli.
napotkalem maly problem w konstrukcji jednago z szablonow ktory chialbym uzyc.
W szablonie pod przyciskami od menu sa 4 przesuwane zdjecia - pojawiaja sie one rowniez na kazdej innej podstronie i tym samym zajmuja zbyt duzo miejsca.
Chcialbym aby pojawialy sie tylko na stronie głównej.

(to o co mi chodzi jest pogróbione)

prosze o pomoc ??? :pop


<?php
// //
$menu_name = $this->params->get("menuName", "mainmenu");

// 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" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>">

<head>


<?php
define( 'TEMPLATEPATH', dirname(__FILE__) );
include( TEMPLATEPATH.DS."suckerfish.php");
?>
<?php JHTML::_('behavior.mootools'); ?>

<jdoc:include type="head" />
<?php if($my->id) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />


<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/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/upsilum/css/tdefaut.css" type="text/css" media="all" />
<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/mootools.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/accordeon.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/mouseover.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/Segoe_UI_400.font.js"></script>
<link rel="icon" type="image/gif" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif" />

<?php
$mod_left = $this->countModules( 'left' );
$mod_right = $this->countModules( 'right' );
if ( $mod_left && $mod_right ) {

$width = '';
} elseif ( ($mod_left || $mod_right) ) {

$width = '-mid';
} else {

$width = '-full';
}
?>


</head>
<body>
<div id="topmenu">
<div class="pagewidth">
<div id="navigation">
<?php TopMenu($menu_name); ?>
</div>
</div>
</div>
<div class="pagewidth">
<div id="header">
<div id="sitename">
<a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="296" height="87" alt="logotype" /></a>
</div>
<div id="tool">
<jdoc:include type="modules" name="login" />

<?php if($this->countModules('user4')) : ?>
<jdoc:include type="modules" name="user4" />
<?php endif; ?>
</div>
</div>
<div id="mod-slide">
<div id="slide-container">
<ul id="accordion">
<li>


<div class="stretcher">
<img src="templates/<?php echo $this->template ?>/images/slide_show_act_it_1.jpg" alt="" class="tab" style="visibility:hidden" />
<img src="templates/<?php echo $this->template ?>/images/slide_show_it_1.jpg" alt="" class="tab" />
<div style="padding-left:41px;">
<img src="templates/<?php echo $this->template ?>/images/slide_im_1.jpg" alt="" class="img" />
</div>
</div>
</li>

<li>
<div class="stretcher">
<img src="templates/<?php echo $this->template ?>/images/slide_show_act_it_2.jpg" alt="" class="tab" style="visibility:hidde" />
<img src="templates/<?php echo $this->template ?>/images/slide_show_it_2.jpg" alt="" class="tab" />
<div style="padding-left:41px;">
<img src="templates/<?php echo $this->template ?>/images/slide_im_2.jpg" alt=" " class="img" />
</div>
</div>
</li>

<li>
<div class="stretcher" style="width:727px;">
<img src="templates/<?php echo $this->template ?>/images/slide_show_act_it_3.jpg" alt="" class="tab" style="visibility:hidden" />
<img src="templates/<?php echo $this->template ?>/images/slide_show_it_3.jpg" alt="" class="tab" />
<div style="padding-left:41px;">
<img src="templates/<?php echo $this->template ?>/images/slide_im_3.jpg" alt=" " class="img" />
</div>
</div>
</li>

<li>
<div class="stretcher">
<img src="templates/<?php echo $this->template ?>/images/slide_show_act_it_4.jpg" alt="" class="tab" style="visibility:hidden" />
<img src="templates/<?php echo $this->template ?>/images/slide_show_it_4.jpg" alt="" class="tab" />
<div style="padding-left:41px;">
<img src="templates/<?php echo $this->template ?>/images/slide_im_4.jpg" alt=" " class="img" />
</div>
</div>
</li>

</ul>
</div>
</div>
</div>










<div id="wrapper">
<div class="pagewidth">
<?php if($this->countModules('left')) : ?>
<div id="left">
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<?php endif; ?>

<div id="main<?php echo $width;?>">
<jdoc:include type="component" />
</div>

<?php if($this->countModules('right')) : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
</div>
</div>

<div id="footer">
<div class="pagewidth">
<div id="users-box">
<div class="box">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<div class="box">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<div class="box">
<jdoc:include type="modules" name="user3" style="xhtml" />
</div>
<div class="box">
<jdoc:include type="modules" name="user5" style="xhtml" />
</div>
</div>
</div>
</div>
<div id="pathway">
<div class="pagewidth">
<p>you are here:
<jdoc:include type="modules" name="breadcrumb" /></p>
</div>
</div>
<div id="footer_tm">
<div class="pagewidth">
<div class="ftb">
Copyright&copy; <?php echo date( '2008 - Y' ); ?> <?php echo $mainframe->getCfg('sitename');?> .&nbsp;
<?php if ($this->params->get('show_footertext')) : ?>
<?php echo $this->params->get("footertext"); ?>
<?php endif; ?>
</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="22" height="22" alt="top" /></a>
</div>
</div>
</div>
</div>
</body>
</html>

nextto
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 11, 2011 2:30 pm

Re: STRONA GŁÓWNA

Post by nextto » Mon Jun 13, 2011 6:06 am

Zadanie wykonane - mozna zamknac temat

dla zainteresowanych:

wystarczylo dodac

Code: Select all

(...)

<?php
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) { ?>

<div id="mod-slide">
<div id="slide-container">
<ul id="accordion">
<li>
<div class="stretcher">
<img src="templates/<?php echo $this->template ?>/images/slide_show_act_it_1.jpg" alt="" class="tab" style="visibility:hidden" />
<img src="templates/<?php echo $this->template ?>/images/slide_show_it_1.jpg" alt="" class="tab" />
<div style="padding-left:41px;">
<img src="templates/<?php echo $this->template ?>/images/slide_im_1.jpg" alt="" class="img" />
</div>
</div>
</li>


(....)


Locked

Return to “Szablony”