Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 60
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
bbcode
0.00% covered (danger)
0.00%
0 / 60
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 display
0.00% covered (danger)
0.00%
0 / 60
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\help\controller;
15
16/**
17 * BBCode help page
18 */
19class bbcode extends controller
20{
21    /**
22     * @return string The title of the page
23     */
24    public function display()
25    {
26        $this->language->add_lang('help/bbcode');
27
28        $this->template->assign_block_vars('navlinks', array(
29            'BREADCRUMB_NAME'    => $this->language->lang('BBCODE_GUIDE'),
30            'U_BREADCRUMB'        => $this->helper->route('phpbb_help_bbcode_controller'),
31        ));
32
33        $this->manager->add_block(
34            'HELP_BBCODE_BLOCK_INTRO',
35            false,
36            array(
37                'HELP_BBCODE_INTRO_BBCODE_QUESTION' => 'HELP_BBCODE_INTRO_BBCODE_ANSWER',
38            )
39        );
40        $this->manager->add_block(
41            'HELP_BBCODE_BLOCK_TEXT',
42            false,
43            array(
44                'HELP_BBCODE_TEXT_BASIC_QUESTION' => 'HELP_BBCODE_TEXT_BASIC_ANSWER',
45                'HELP_BBCODE_TEXT_COLOR_QUESTION' => 'HELP_BBCODE_TEXT_COLOR_ANSWER',
46                'HELP_BBCODE_TEXT_COMBINE_QUESTION' => 'HELP_BBCODE_TEXT_COMBINE_ANSWER',
47            )
48        );
49        $this->manager->add_block(
50            'HELP_BBCODE_BLOCK_QUOTES',
51            false,
52            array(
53                'HELP_BBCODE_QUOTES_TEXT_QUESTION' => 'HELP_BBCODE_QUOTES_TEXT_ANSWER',
54                'HELP_BBCODE_QUOTES_CODE_QUESTION' => 'HELP_BBCODE_QUOTES_CODE_ANSWER',
55            )
56        );
57        $this->manager->add_block(
58            'HELP_BBCODE_BLOCK_LISTS',
59            false,
60            array(
61                'HELP_BBCODE_LISTS_UNORDERER_QUESTION' => 'HELP_BBCODE_LISTS_UNORDERER_ANSWER',
62                'HELP_BBCODE_LISTS_ORDERER_QUESTION' => 'HELP_BBCODE_LISTS_ORDERER_ANSWER',
63            )
64        );
65        $this->manager->add_block(
66            'HELP_BBCODE_BLOCK_LINKS',
67            true,
68            array(
69                'HELP_BBCODE_LINKS_BASIC_QUESTION' => 'HELP_BBCODE_LINKS_BASIC_ANSWER',
70            )
71        );
72        $this->manager->add_block(
73            'HELP_BBCODE_BLOCK_IMAGES',
74            false,
75            array(
76                'HELP_BBCODE_IMAGES_BASIC_QUESTION' => 'HELP_BBCODE_IMAGES_BASIC_ANSWER',
77                'HELP_BBCODE_IMAGES_ATTACHMENT_QUESTION' => 'HELP_BBCODE_IMAGES_ATTACHMENT_ANSWER',
78            )
79        );
80        $this->manager->add_block(
81            'HELP_BBCODE_BLOCK_OTHERS',
82            false,
83            array(
84                'HELP_BBCODE_OTHERS_CUSTOM_QUESTION' => 'HELP_BBCODE_OTHERS_CUSTOM_ANSWER',
85            )
86        );
87
88        return $this->language->lang('BBCODE_GUIDE');
89    }
90}