if (RSS) { $template->load('rss'); } else { if ($auto->config['general_view_mode'] == 'table') { $template->load('autos'); } else { $template->load('autos_modern'); } } if (MODER) { $template->SetBlock('moder'); } $template->Set($template->InputCheckbox('master', 1, 0, 'id="master"'), '{master_checkbox}')->Set("<img src=\"{THEME}/car-market/images/compare_checked.gif\" id=\"compare_master\" title=\"{$auto->lang['compare_master_title']}\" />", '{compare_master}')->OpenRow('row_auto'); foreach ($auto->autos as $id => $auto_one) { if (RSS) { $array = $auto->ShowAuto($id, array("show_photo" => 0, "show_edit" => 0)) + ShowPhoto($id, $auto); if (!$auto->config['general_mod_rewrite']) { ConvertToRSSURL($array['{auto_url}']); } $template->Set($array['{auto_url}'], '{rsslink}'); } else { $array = $auto->ShowAuto($id); } $template->SetRow($array, "row_auto"); } $template->CloseRow('row_auto'); if (RSS) { $template->Compile('rss'); } else { if (MODER) { $template->SetForm(array('subaction' => 'del') + $hidden_array, '', 'POST', 'id="auto_form"');
public function BlockHot() { $this->auto->search_array = array(); if ($this->auto->config['block_hot_auto_photo']) { $this->auto->search_array['isset_photo'] = 1; } $this->auto->search_array['sort'] = 'date'; $this->auto->search_array['subsort'] = 'DESC'; $this->auto->search_array['allow_block'] = 1; $this->auto->Search(array("get_count" => 0, "count" => $this->auto->config['block_hot_count_auto'], 'use_order_random' => true)); $this->auto->tpl->load('block_hot_auto')->OpenRow('row_auto'); 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'); }