Beispiel #1
0
            $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');
    }
}
$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']) {