sGasiewski
04-06-2009, 11:21
hej, mam warunek, pod szablonem w joomla 1.0 dzialal bez problemu, obecnie nie zmienia mi strony na dane czesci ( gastro, news ) tylko umieszcza wszystko w starc.php, dlaczego ?
<?php
if ($this->countModules('start')) { // start strony
include('templates/newsgastro/start.php');
} else if ($this->countModules('gastro')) { // gastro
include('templates/newsgastro/gastro.php');
} else if ($this->countModules('news')) { // news
include('templates/newsgastro/news.php');
}
?>
</div>
<?php
if ($this->countModules('start')) { // start strony
include('templates/newsgastro/start.php');
} else if ($this->countModules('gastro')) { // gastro
include('templates/newsgastro/gastro.php');
} else if ($this->countModules('news')) { // news
include('templates/newsgastro/news.php');
}
?>
</div>