Habari\Theme::act_display_tag PHP Метод

act_display_tag() публичный Метод

Helper function: Display the posts for a tag
public act_display_tag ( array $user_filters = [] )
$user_filters array Additional arguments used to get the page content
    public function act_display_tag($user_filters = array())
    {
        $paramarray['fallback'] = array('tag.{$tag}', 'tag', 'multiple');
        // Use the according preset defined in the Posts class
        $default_filters = array('preset' => 'tag');
        $this->assign('tag', Controller::get_var('tag'));
        // Assign tag objects to the theme
        $tags = Tags::parse_url_tags(Controller::get_var('tag'), true);
        $this->assign('include_tag', $tags['include_tag']);
        $this->assign('exclude_tag', $tags['exclude_tag']);
        $paramarray['user_filters'] = array_merge($default_filters, $user_filters);
        return $this->act_display($paramarray);
    }