$rpp, 'offset' => $page, 'order' => 'id desc' ); $fields = array(); $contents = $content -> getList ($fields, $params); $content_galleries = new Content_Gallery(); $content_attaches = new Content_Attaches(); $Gallery = new WorksGallery(); $workgalleries = $Gallery -> getGalleryListFront(); shuffle($workgalleries); $workgalleries = array_slice($workgalleries,0,4); //print_r($workgalleries); //echo count($workgalleries); // PARTNERS $params = array( 'length' => 4, 'offset' => 0, 'order' => 'RAND()' ); $fields = array(); $partners = new Partners(); $all_partners = $partners -> getList ($fields, $params); // VIDEO $params = array( 'length' => 2, 'offset' => 0, 'order' => 'RAND()' ); $video = new Video(); $fields = array(); if ($catid) { $fields['catid'] = 1; } $videos = $video -> getList ($fields, $params); $goods_items = $contents['data']; $total_items = $contents['total']; ob_start(); foreach($contents['data'] as $good) { $cat_id = $good['catid']; $catalog[$cat_id][] = $good; } $about_catid =$catalog[8][0]['id']; $catalog_gallery[8]['gallery'] = $content_galleries->getImages($about_catid); //$catalog_gallery[1]['gallery'] = $content_galleries->getImages(1); $presents_html = Common_Template::exibitionBoxShort($catalog[7],false,true,'parstavnieciba'); $press_html = Common_Template::exibitionBoxShort($catalog[6],false,false,'press'); $exibitions_html = Common_Template::exibitionBoxShort($catalog[1],true,false,'exibitions'); $events_html = Common_Template::exibitionBoxShort($catalog[5],false,false,'notikumi'); //print_r($workgalleries); $partners_html = Common_Template::partnersBoxDefault2($all_partners['data']); $works_html = Common_Template::show_work_galleries($workgalleries); //echo '
'.print_r($contents['data'],1).'
'; ?>
Str('representations')?>
Str('press_about')?>
Str('exibitions')?>
Str('events')?>
Str('our_video')?>

Str('our_works')?>
Str('Partners')?>
', 500); $data = ob_get_clean(); $m_return =$data;