@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an after_posts template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,48 +13,48 @@ |
||
13 | 13 | class after_posts extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an after_posts template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an after_posts template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'after_posts'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_AFTER_POSTS'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_AFTER_POSTS_DESC'); |
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * {@inheritDoc} |
|
57 | - */ |
|
56 | + * {@inheritDoc} |
|
57 | + */ |
|
58 | 58 | public function will_display() |
59 | 59 | { |
60 | 60 | return strpos($this->user->page['page_name'], 'viewtopic') !== false; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an after_profile template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,48 +13,48 @@ |
||
13 | 13 | class after_profile extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an after_profile template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an after_profile template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'after_profile'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_AFTER_PROFILE'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_AFTER_PROFILE_DESC'); |
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * {@inheritDoc} |
|
57 | - */ |
|
56 | + * {@inheritDoc} |
|
57 | + */ |
|
58 | 58 | public function will_display() |
59 | 59 | { |
60 | 60 | return strpos($this->user->page['page_name'], 'memberlist') !== false && strpos($this->user->page['query_string'], 'viewprofile') !== false; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an before_posts template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,48 +13,48 @@ |
||
13 | 13 | class before_posts extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an before_posts template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an before_posts template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'before_posts'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_BEFORE_POSTS'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_BEFORE_POSTS_DESC'); |
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * {@inheritDoc} |
|
57 | - */ |
|
56 | + * {@inheritDoc} |
|
57 | + */ |
|
58 | 58 | public function will_display() |
59 | 59 | { |
60 | 60 | return strpos($this->user->page['page_name'], 'viewtopic') !== false; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an before_profile template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,48 +13,48 @@ |
||
13 | 13 | class before_profile extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an before_profile template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an before_profile template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'before_profile'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_BEFORE_PROFILE'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_BEFORE_PROFILE_DESC'); |
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * {@inheritDoc} |
|
57 | - */ |
|
56 | + * {@inheritDoc} |
|
57 | + */ |
|
58 | 58 | public function will_display() |
59 | 59 | { |
60 | 60 | return strpos($this->user->page['page_name'], 'memberlist') !== false && strpos($this->user->page['query_string'], 'viewprofile') !== false; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an below_footer template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,40 +13,40 @@ |
||
13 | 13 | class below_footer extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an below_footer template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an below_footer template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'below_footer'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_BELOW_FOOTER'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_BELOW_FOOTER_DESC'); |
@@ -21,7 +21,6 @@ |
||
21 | 21 | /** |
22 | 22 | * Construct an below_header template location object |
23 | 23 | * |
24 | - * @param \phpbb\user $config User object |
|
25 | 24 | */ |
26 | 25 | public function __construct(\phpbb\user $user) |
27 | 26 | { |
@@ -13,40 +13,40 @@ |
||
13 | 13 | class below_header extends base |
14 | 14 | { |
15 | 15 | /** |
16 | - * User object |
|
17 | - * @var \phpbb\user |
|
18 | - */ |
|
16 | + * User object |
|
17 | + * @var \phpbb\user |
|
18 | + */ |
|
19 | 19 | protected $user; |
20 | 20 | |
21 | 21 | /** |
22 | - * Construct an below_header template location object |
|
23 | - * |
|
24 | - * @param \phpbb\user $config User object |
|
25 | - */ |
|
22 | + * Construct an below_header template location object |
|
23 | + * |
|
24 | + * @param \phpbb\user $config User object |
|
25 | + */ |
|
26 | 26 | public function __construct(\phpbb\user $user) |
27 | 27 | { |
28 | 28 | $this->user = $user; |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritDoc} |
|
33 | - */ |
|
32 | + * {@inheritDoc} |
|
33 | + */ |
|
34 | 34 | public function get_id() |
35 | 35 | { |
36 | 36 | return 'below_header'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * {@inheritDoc} |
|
41 | - */ |
|
40 | + * {@inheritDoc} |
|
41 | + */ |
|
42 | 42 | public function get_name() |
43 | 43 | { |
44 | 44 | return $this->user->lang('AD_BELOW_HEADER'); |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * {@inheritDoc} |
|
49 | - */ |
|
48 | + * {@inheritDoc} |
|
49 | + */ |
|
50 | 50 | public function get_desc() |
51 | 51 | { |
52 | 52 | return $this->user->lang('AD_BELOW_HEADER_DESC'); |
@@ -13,30 +13,30 @@ discard block |
||
13 | 13 | class manager |
14 | 14 | { |
15 | 15 | /** |
16 | - * Array that contains all available template location types which are passed |
|
17 | - * via the service container |
|
18 | - * @var array |
|
19 | - */ |
|
16 | + * Array that contains all available template location types which are passed |
|
17 | + * via the service container |
|
18 | + * @var array |
|
19 | + */ |
|
20 | 20 | protected $template_locations; |
21 | 21 | |
22 | 22 | /** |
23 | - * Construct an template locations manager object |
|
24 | - * |
|
25 | - * @param array $template_locations Template location types passed via the service container |
|
26 | - */ |
|
23 | + * Construct an template locations manager object |
|
24 | + * |
|
25 | + * @param array $template_locations Template location types passed via the service container |
|
26 | + */ |
|
27 | 27 | public function __construct($template_locations) |
28 | 28 | { |
29 | 29 | $this->register_template_locations($template_locations); |
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | - * Get a list of all template location types |
|
34 | - * |
|
35 | - * Returns an associated array where key is the location id |
|
36 | - * and value is array of location name and location description. |
|
37 | - * |
|
38 | - * @return array Array containing a list of all template locations |
|
39 | - */ |
|
33 | + * Get a list of all template location types |
|
34 | + * |
|
35 | + * Returns an associated array where key is the location id |
|
36 | + * and value is array of location name and location description. |
|
37 | + * |
|
38 | + * @return array Array containing a list of all template locations |
|
39 | + */ |
|
40 | 40 | public function get_all_locations() |
41 | 41 | { |
42 | 42 | $location_types = array(); |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * Get a list of all template location IDs for display |
|
57 | - * |
|
58 | - * @return array Array containing a list of all template location IDs |
|
59 | - */ |
|
56 | + * Get a list of all template location IDs for display |
|
57 | + * |
|
58 | + * @return array Array containing a list of all template location IDs |
|
59 | + */ |
|
60 | 60 | public function get_all_location_ids() |
61 | 61 | { |
62 | 62 | $template_locations = array(); |
@@ -73,10 +73,10 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * Register template locations |
|
77 | - * |
|
78 | - * @param array $template_locations Template location types passed via the service container |
|
79 | - */ |
|
76 | + * Register template locations |
|
77 | + * |
|
78 | + * @param array $template_locations Template location types passed via the service container |
|
79 | + */ |
|
80 | 80 | protected function register_template_locations($template_locations) |
81 | 81 | { |
82 | 82 | if (!empty($template_locations)) |