chcę wdrożyć nowy szablon do serwisu z aktualnościami lokalnej społeczności. Składa się on z 5. różnych podstron widocznych dla użytkowników.
Aktualnie znaleźć go można pod adresem
http://stalowka.mobi/
To co aktualnie udało mi się stworzyć można zobaczyć klikając w poniższe linki
http://lukaszbaranowski.twrpowersystem.com...lowka/index.php
http://lukaszbaranowski.twrpowersystem.com...hod=aktualnosci
http://lukaszbaranowski.twrpowersystem.com...method=archiwum
Mój problem polega na tym, że nie potrafię wnieść nic nowego co będzie działać i zgodnego z szablonem Smarty.
Myślę, że momentem przełomowym dla mnie będzie skonstruowanie podstrony, która wyświetli jednocześnie menu boczne i odpowiednio listę newsów, galerii, skróconych aktualności.
Strona główna
<?php $_smarty_tpl->decodeProperties('a:1:{s:15:"file_dependency";a:1:{s:10:"F666081590";a:2:{i:0;s:29:"lib/smarty/templates/menu.tpl";i:1;i:1285914873;}}}'); ?> <?php /* Smarty version Smarty3-b5, created on 2010-10-01 08:34:36 compiled from "lib/smarty/templates/menu.tpl" */ ?> $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['name'] = 'glowna'; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['loop']-1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['show']): for ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['glowna']['total']); if ($_smarty_tpl->getVariable('smarty')->value['section']['glowna']['first']){?> <div id="strona"> <div id="top"> <!-- Logo strony --> <a href="index.php" title="stalowka.mobi-mobilny informator"><img src="lib/smarty/templates_c/images/logo.png" alt="logo" id="logo" /></a> <!-- /Logo strony --> </div> <div id="kolumny"> <!-- Kolumna lewa --> <div id="_lewa"> <div id="_lewa_top"> </div> <div id="_lewa_center"> <!-- Menu --> <h2>Menu</h2> <ul class="menu"> <?php }?> <li><a href="<?php echo $_smarty_tpl->getVariable('tablica_wynik_podstrony')->value[$_smarty_tpl->getVariable('smarty')->value['section']['glowna']['index']]['link'];?>"><?php echo $_smarty_tpl->getVariable('tablica_wynik_podstrony')->value[$_smarty_tpl->getVariable('smarty')->value['section']['glowna']['index']]['tytul'];?></a></li> <?php endfor; endif; ?> </ul> <h2 class="mb">Lokalne strony mobilne</h2> <ul class="menu"> <li><a href="http://pracujesie.pl">Praca - Stalowa Wola</a></li> <li><a href="http://mieszkasie.pl">Mieszkania - Stalowa Wola</a></li> <li><a href="http://mobi.rozwadow.pl/">Rozwadów</a></li> <li><a href="http://mobi.kinoballada.info/">Kino Ballada</a></li> </ul> <!-- /Menu --> </div> <div id="_lewa_bottom"> </div> </div> <!-- /Kolumna lewa --> <!-- Kolumna prawa --> <div id="_prawa"> <div id="_prawa_top"> <h2 class="gr">Aktualności</h2> </div> <div id="_prawa_center"> <div id="aktualnosci"> <div id="tresc"> <div id="tresc_lewa"> <?php $_smarty_tpl->getVariable('tablica_wynik_podstrona')->value[0]['tytul']; ?> </div> <div id="tresc_prawa"> tresc <a href="strona-<?php echo $tresc['id_podstrona']; ?>.html" title="Czytaj dalej">Czytaj dalej »</a> </div> <div class="clear_both"> </div> <?php } ?> </div> </div> <div id="_prawa_bottom"> </div> </div> <!-- /Kolumna prawa --> </div> </div>
{include file="meta.tpl"} <div id="strona"> <div id="top"> <!-- Logo strony --> <!-- /Logo strony --> </div> <div id="kolumny"> <!-- Kolumna lewa --> <div id="_lewa"> <div id="_lewa_top"> </div> <div id="_lewa_center"> <!-- Menu --> <ul class="menu"> {section name=glowna loop=$tablica_wynik_podstrony} {/section} </ul> <ul class="menu"> </ul> <!-- /Menu --> </div> <div id="_lewa_bottom"> </div> </div> <!-- /Kolumna lewa --> <!-- Kolumna prawa --> <div id="_prawa"> <div id="_prawa_top"> </div> <div id="_prawa_center"> <div id="aktualnosci"> <div id="tresc"> {section name=glowna loop=$tablica_wynik_podstrony} <div id="tresc_lewa"> {$tablica_wynik_podstrona[0].tytul} </div> <div id="tresc_prawa"> {$tablica_wynik_podstrony[glowna].pozycja} </div> <div class="clear_both"> </div> {/section} </div> </div> </div> <div id="_prawa_bottom"> </div> </div> <!-- /Kolumna prawa --> </div> </div> {include file="dol.tpl"}
Proszę o pomoc i pozdrawiam serdecznie