public function ShowById($id) { $mode_txt = 'Отдельный образ'; $gender_txt = lng('NOT_SET'); $html_skin_list = ''; $skins_count = 1; $skin = new SPItem($id, $this->st_subdir); if (!$skin->Exist()) { $html_skin_list .= 'Скин удален'; } else { $gender_txt = $skin->isFemaleSkin() ? lng('FEMALE') : lng('MALE'); $html_skin_list = $skin->Show(); } ob_start(); include $this->GetView('skinposer/main.html'); return ob_get_clean(); }
public function ShowById($id, $list = 1) { $mode_txt = 'Отдельный образ'; $gender_txt = lng('NOT_SET'); $skins = ''; $skins_count = 1; $skin = new SPItem($id, $this->st_subdir); if (!$skin->Exist()) { $html_skin_list = 'Скин удален'; } else { $skins = $skin->Show(false, $full_info = true); ob_start(); include $this->GetView('skin_container.html'); $html_skin_list = ob_get_clean(); if ($this->discus) { loadTool('comment.class.php'); $comments = new CommentList($skin, $this->base_url . '&cid=' . $id, 'news/comments/'); $html_skin_list .= $comments->Show($list); $html_skin_list .= $comments->ShowAddForm(); } } ob_start(); include $this->GetView('main.html'); return ob_get_clean(); }