Exemple #1
0
 protected function get_modules(Query $query)
 {
     $return = array('title' => new HtmlArtTitle($query), 'search' => new HtmlArtSearch($query), 'error' => new HtmlArtError($query, true), 'list' => new Container(__NAMESPACE__ . '\\HtmlThumbnail' . ucfirst($query->mode())), 'tags' => new HtmlSidebarTag($query), 'tags_pool' => new HtmlSidebarTag($query), 'editmenu' => new HtmlSidebarEditmenu($query), 'editfield' => new HtmlArtEditfield($query), 'tools' => new HtmlSidebarTool($query), 'recent_comments' => new HtmlSidebarComment($query), 'paginator' => new HtmlArtPaginator($query));
     if ($query->is_pool_list()) {
         $return['tags']->set_pool_mode($query->mode());
         $return['tags_pool']->disable();
         $return['editmenu']->disable();
     } elseif ($query->get_pool_mode()) {
         $return['tags_pool']->set_pool_mode($query->get_pool_mode());
         $this->pool_tag_request = ['api' => 'art_' . $query->get_pool_mode(), 'id' => $query->get_pool_value()];
     } else {
         $return['tags_pool']->disable();
     }
     return $return;
 }