foreach ($this->auto->autos as $id => $auto_one) { $this->auto->tpl->SetRow($this->auto->ShowAuto($id, array("show_photo" => 0, "show_edit" => 0)) + ShowPhoto($id, $this->auto), 'row_auto'); } $this->auto->tpl->CloseRow('row_auto')->Compile('block_hot_auto'); } } $blocks = new Blocks($auto, $action); if ($auto->config['general_allow_block_search']) { $blocks->BlockDinamic(1, 'block_search'); } if ($auto->config['block_dimanic_allow']) { $blocks->BlockDinamic(); } if ($auto->config['block_last_allow']) { if (!$auto->config['general_cache'] || !($cache = Cache::GetHTMLCache('BlockLast'))) { $blocks->BlockLast(); if ($auto->config['general_cache']) { Cache::SetHTMLCache('BlockLast', $template->block_last_auto); } } else { $template->block_last_auto = $cache; } } if ($auto->config['block_hot_allow']) { if (!$auto->config['general_cache'] || !($cache = Cache::GetHTMLCache('BlockHot', $auto->config['block_hot_auto_time'] * 60))) { $blocks->BlockHot(); if ($auto->config['general_cache']) { Cache::SetHTMLCache('BlockHot', $template->block_hot_auto); } } else { $template->block_hot_auto = $cache;