w user_agentT//Code to show the user's user agent information. echo $_SERVER["HTTP_USER_AGENT"];Itf>Itf>`custom_copyright7//set start to date your site was published $startCopyRight='2010'; // check if start year is this year if(date('Y') == $startCopyRight){ // it was, just print this year echo $startCopyRight; }else{ // it wasnt, print startyear and this year delimited with a dash echo $startCopyRight.'-'. date('Y'); }Itf>fH@generuj_sortiment$sortiment = array(); foreach ($smarty->get_template_vars('nodelist') as $node) { $sortiment[] = '
» '.$node->menutext.'
'; }; $smarty->assign('sortiment', $sortiment);UH8gHwdebugY# Klape, s.r.o. global $gCms; echo "
";
print_r($gCms->variables);
echo "
";^HEHgeneruj_produkty$produkty = array(); $produkt_popis = $smarty->get_template_vars('produkt_popis'); if ($produkt_popis == '') $produkt_popis='SLOŽENÍ'; foreach ($smarty->get_template_vars('items') as $entry) { $fields = $entry->fields; $obrazek = $fields['obrazek']; $produkt = '
'.$entry->product_name.'

'.$entry->product_name.'

'.$produkt_popis.'

'.$entry->details.'

'; if ($entry->weight<>0) { $produkt = $produkt.'

HMOTNOST

'.$entry->weight.' g

'; }; $produkt = $produkt.'
'; $produkty[] = $produkt; }; $smarty->assign('produkty', $produkty); $smarty->assign('td_classes', array('class="vlevo"', 'class="vpravo"')); // POZOR SYNCHRONIZOVAT s detailem produtku který se volá z vyhledávání ^H,ٛ H