"; $query = "SELECT id, title, about, created, author FROM blogs where display=1 $andTitleNotEmpty order by created desc LIMIT 1"; $result=sql($query); list($id, $title, $about, $created, $author) = mysql_fetch_row($result); $title = unlanguage($title); $about = unlanguage($about); $author = unlanguage($author); $author_date = "$author, ".date_string($created); if(trim($author)=='') $author_date = date_string($created); $beforeMainblock.="

$title

$about
$author_date $edit
"; $dom_ready_scripts[]=" $('a.more').click( function(event) { event.preventDefault(); $('html,body').animate({ scrollTop: $('.section.now').offset().top }, 400); return false; }); "; $search_pars[]=$TitleNotEmpty; $table_name = "worlds"; $fields = array('id', 'title', 'about', 'display', 'views'); $pars['page']=$page; $pars['order']='n'; $pars['items_on_page']=3; $pars['hidden_search_pars']=$search_pars; $pars['paging_pars']=$paging_pars; $pars['heads_on_page_var']='objects_on_page'; $pars['objects_type']='Objects'; $result_array=listalka($table_name, $fields, $pars); // echo "
".print_r($result_array, 1)."
"; //$beforeMainblock.="
".print_r($result_array, 1)."
"; if(is_array($result_array['fields'])){ foreach($result_array['fields'] as $array){ unset($image, $logo); foreach($array as $k=>$v){ $$k=unlanguage($v); } $href="$htmlrootpath/worlds/?id=$id"; $thumbik = thumbnail($table_name, $id, "t"); if($thumbik['exists']) { $thumb="background-image: url(".$thumbik['src'].");"; $yashareImage=$thumbik['src']; } else { $thumb=$yashareImage=""; } $thumbik = thumbnail($table_name, $id, "l"); if($thumbik['exists']) { $logo=""; } else { $logo="
"; } if($user_level>=5){ $edit=controls($id, $table_name, $display).""; } $tdThumb="
"; $tdTitle=" $logo
$title
$about

"; $worlds[]="
$tdThumb$tdTitle
$edit
"; $navis[]=""; } } if(is_array($worlds)){ $posters_navi="".join($navis).""; $worldsList="
".join($worlds, "")."
$posters_navi
"; } $beforeMainblock.="
$worldsList
"; $beforeMainblock.="
".unlanguage("ГАЛЕРЕЯ###Gallery")."
".unlanguage("ГРАФИКА И ФОТО БОРИСА ЮХАНАНОВА###Boris Yukhananov's graphics and photos")."
"; $beforeMainblock.="
"; echo standard_content($this_content); ?>