@@ -9,11 +9,11 @@ discard block |
||
9 | 9 | * @ignore |
10 | 10 | */ |
11 | 11 | if (!defined('IN_PHPBB')) { |
12 | - exit; |
|
12 | + exit; |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | if (empty($lang) || !is_array($lang)) { |
16 | - $lang = []; |
|
16 | + $lang = []; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | // DEVELOPERS PLEASE NOTE |
@@ -33,74 +33,74 @@ discard block |
||
33 | 33 | // |
34 | 34 | |
35 | 35 | $lang = array_merge($lang, [ |
36 | - 'ACP_SITEMAKER' => 'SiteMaker', |
|
37 | - 'ACP_SM_SETTINGS' => 'Settings', |
|
36 | + 'ACP_SITEMAKER' => 'SiteMaker', |
|
37 | + 'ACP_SM_SETTINGS' => 'Settings', |
|
38 | 38 | |
39 | - 'BLOCKS_CLEANUP' => 'Blocks Cleanup', |
|
40 | - 'BLOCKS_CLEANUP_EXPLAIN' => 'The following items were found to no longer exist or unreachable, and you can therefore delete all blocks associated to them. Please keep in mind that some of these may be false positives', |
|
41 | - 'BLOCKS_CLEANUP_BLOCKS' => 'Invalid Blocks (e.g. from uninstalled extensions):', |
|
42 | - 'BLOCKS_CLEANUP_ROUTES' => 'Unreachable/broken Pages:', |
|
43 | - 'BLOCKS_CLEANUP_STYLES' => 'Uninstalled Styles (ids):', |
|
44 | - 'BLOCKS_CLEANUP_SUCCESS' => 'Blocks purged sucessfully', |
|
39 | + 'BLOCKS_CLEANUP' => 'Blocks Cleanup', |
|
40 | + 'BLOCKS_CLEANUP_EXPLAIN' => 'The following items were found to no longer exist or unreachable, and you can therefore delete all blocks associated to them. Please keep in mind that some of these may be false positives', |
|
41 | + 'BLOCKS_CLEANUP_BLOCKS' => 'Invalid Blocks (e.g. from uninstalled extensions):', |
|
42 | + 'BLOCKS_CLEANUP_ROUTES' => 'Unreachable/broken Pages:', |
|
43 | + 'BLOCKS_CLEANUP_STYLES' => 'Uninstalled Styles (ids):', |
|
44 | + 'BLOCKS_CLEANUP_SUCCESS' => 'Blocks purged sucessfully', |
|
45 | 45 | |
46 | - 'FILEMANAGER_SETTINGS' => 'File Manager Settings', |
|
47 | - 'FILEMANAGER_STATUS' => 'Status', |
|
48 | - 'FILEMANAGER_NO_EXIST' => 'You will need to install the File Manager before you can enable it. Installation instructions are found <a href="%s" target="_blank" rel="noopener noreferrer"><strong>here</strong></a>', |
|
49 | - 'FILEMENAGER_NOT_WRITABLE' => 'Filemanager config folder (root/ResponsiveFilemanager/filemanager/config/) is not writable. Please change the permissions to writable by all (777 or -rwxrwxrwx within your FTP Client)', |
|
50 | - 'FILEMANAGER_IMAGE_AUTO_RESIZE' => 'Automatically resize uploaded images?', |
|
51 | - 'FILEMANAGER_IMAGE_AUTO_RESIZE_DIMENSIONS' => 'Resize to specified dimensions', |
|
52 | - 'FILEMANAGER_IMAGE_AUTO_RESIZING_MODE' => 'Auto resizing mode', |
|
53 | - 'FILEMANAGER_IMAGE_MAX_DIMENSIONS' => 'Max. image size', |
|
54 | - 'FILEMANAGER_IMAGE_MAX_MODE' => 'Max. image size mode', |
|
55 | - 'FILEMANAGER_IMAGE_MODE_EXPLAIN' => 'Used to calculate the height/width if you only provide height or width but not both above', |
|
56 | - 'FILEMANAGER_IMAGE_MODE_AUTO' => 'Auto', |
|
57 | - 'FILEMANAGER_IMAGE_MODE_CROP' => 'Crop', |
|
58 | - 'FILEMANAGER_IMAGE_MODE_EXACT' => 'Exact', |
|
59 | - 'FILEMANAGER_IMAGE_MODE_LANDSCAPE' => 'Landscape', |
|
60 | - 'FILEMANAGER_IMAGE_MODE_PORTRAIT' => 'Portrait', |
|
61 | - 'FILEMANAGER_WATERMARK' => 'Watermark', |
|
62 | - 'FILEMANAGER_WATERMARK_EXPLAIN' => 'URL of image to use as watermark on all uploaded images', |
|
63 | - 'FILEMANAGER_WATERMARK_POSITION' => 'Watermark position', |
|
64 | - 'FILEMANAGER_WATERMARK_POSITION_EXPLAIN' => 'Select a pre-determined position where the watermark should appear or enter the coordinates e.g. 50x100', |
|
65 | - 'FILEMANAGER_WATERMARK_POSITION_TL' => 'Top Left', |
|
66 | - 'FILEMANAGER_WATERMARK_POSITION_T' => 'Top', |
|
67 | - 'FILEMANAGER_WATERMARK_POSITION_TR' => 'Top Right', |
|
68 | - 'FILEMANAGER_WATERMARK_POSITION_L' => 'Left', |
|
69 | - 'FILEMANAGER_WATERMARK_POSITION_M' => 'Middle', |
|
70 | - 'FILEMANAGER_WATERMARK_POSITION_R' => 'Right', |
|
71 | - 'FILEMANAGER_WATERMARK_POSITION_BL' => 'Bottom Left', |
|
72 | - 'FILEMANAGER_WATERMARK_POSITION_B' => 'Bottom', |
|
73 | - 'FILEMANAGER_WATERMARK_POSITION_BR' => 'Bottom Right', |
|
74 | - 'FILEMANAGER_WATERMARK_POSITION_SUFFIX' => 'or', |
|
75 | - 'FILEMANAGER_WATERMARK_PADDING' => 'Watermark padding', |
|
76 | - 'FILEMANAGER_WATERMARK_PADDING_EXPLAIN' => 'If using a pre-determined position you can adjust the padding from the edges. If using co-ordinates, this value is ignored', |
|
46 | + 'FILEMANAGER_SETTINGS' => 'File Manager Settings', |
|
47 | + 'FILEMANAGER_STATUS' => 'Status', |
|
48 | + 'FILEMANAGER_NO_EXIST' => 'You will need to install the File Manager before you can enable it. Installation instructions are found <a href="%s" target="_blank" rel="noopener noreferrer"><strong>here</strong></a>', |
|
49 | + 'FILEMENAGER_NOT_WRITABLE' => 'Filemanager config folder (root/ResponsiveFilemanager/filemanager/config/) is not writable. Please change the permissions to writable by all (777 or -rwxrwxrwx within your FTP Client)', |
|
50 | + 'FILEMANAGER_IMAGE_AUTO_RESIZE' => 'Automatically resize uploaded images?', |
|
51 | + 'FILEMANAGER_IMAGE_AUTO_RESIZE_DIMENSIONS' => 'Resize to specified dimensions', |
|
52 | + 'FILEMANAGER_IMAGE_AUTO_RESIZING_MODE' => 'Auto resizing mode', |
|
53 | + 'FILEMANAGER_IMAGE_MAX_DIMENSIONS' => 'Max. image size', |
|
54 | + 'FILEMANAGER_IMAGE_MAX_MODE' => 'Max. image size mode', |
|
55 | + 'FILEMANAGER_IMAGE_MODE_EXPLAIN' => 'Used to calculate the height/width if you only provide height or width but not both above', |
|
56 | + 'FILEMANAGER_IMAGE_MODE_AUTO' => 'Auto', |
|
57 | + 'FILEMANAGER_IMAGE_MODE_CROP' => 'Crop', |
|
58 | + 'FILEMANAGER_IMAGE_MODE_EXACT' => 'Exact', |
|
59 | + 'FILEMANAGER_IMAGE_MODE_LANDSCAPE' => 'Landscape', |
|
60 | + 'FILEMANAGER_IMAGE_MODE_PORTRAIT' => 'Portrait', |
|
61 | + 'FILEMANAGER_WATERMARK' => 'Watermark', |
|
62 | + 'FILEMANAGER_WATERMARK_EXPLAIN' => 'URL of image to use as watermark on all uploaded images', |
|
63 | + 'FILEMANAGER_WATERMARK_POSITION' => 'Watermark position', |
|
64 | + 'FILEMANAGER_WATERMARK_POSITION_EXPLAIN' => 'Select a pre-determined position where the watermark should appear or enter the coordinates e.g. 50x100', |
|
65 | + 'FILEMANAGER_WATERMARK_POSITION_TL' => 'Top Left', |
|
66 | + 'FILEMANAGER_WATERMARK_POSITION_T' => 'Top', |
|
67 | + 'FILEMANAGER_WATERMARK_POSITION_TR' => 'Top Right', |
|
68 | + 'FILEMANAGER_WATERMARK_POSITION_L' => 'Left', |
|
69 | + 'FILEMANAGER_WATERMARK_POSITION_M' => 'Middle', |
|
70 | + 'FILEMANAGER_WATERMARK_POSITION_R' => 'Right', |
|
71 | + 'FILEMANAGER_WATERMARK_POSITION_BL' => 'Bottom Left', |
|
72 | + 'FILEMANAGER_WATERMARK_POSITION_B' => 'Bottom', |
|
73 | + 'FILEMANAGER_WATERMARK_POSITION_BR' => 'Bottom Right', |
|
74 | + 'FILEMANAGER_WATERMARK_POSITION_SUFFIX' => 'or', |
|
75 | + 'FILEMANAGER_WATERMARK_PADDING' => 'Watermark padding', |
|
76 | + 'FILEMANAGER_WATERMARK_PADDING_EXPLAIN' => 'If using a pre-determined position you can adjust the padding from the edges. If using co-ordinates, this value is ignored', |
|
77 | 77 | |
78 | - 'FORUM_INDEX_SETTINGS' => 'Forum Index Settings', |
|
79 | - 'FORUM_INDEX_SETTINGS_EXPLAIN' => 'These settings only apply when there is no startpage defined', |
|
78 | + 'FORUM_INDEX_SETTINGS' => 'Forum Index Settings', |
|
79 | + 'FORUM_INDEX_SETTINGS_EXPLAIN' => 'These settings only apply when there is no startpage defined', |
|
80 | 80 | |
81 | - 'HIDE' => 'Hide', |
|
82 | - 'HIDE_BIRTHDAY' => 'Hide Birthday section', |
|
83 | - 'HIDE_LOGIN' => 'Hide login box', |
|
84 | - 'HIDE_ONLINE' => 'Hide Whos online section', |
|
81 | + 'HIDE' => 'Hide', |
|
82 | + 'HIDE_BIRTHDAY' => 'Hide Birthday section', |
|
83 | + 'HIDE_LOGIN' => 'Hide login box', |
|
84 | + 'HIDE_ONLINE' => 'Hide Whos online section', |
|
85 | 85 | |
86 | - 'LAYOUT_BLOG' => 'Blog', |
|
87 | - 'LAYOUT_CUSTOM' => 'Custom', |
|
88 | - 'LAYOUT_HOLYGRAIL' => 'Holy Grail', |
|
89 | - 'LAYOUT_PORTAL' => 'Portal', |
|
90 | - 'LAYOUT_PORTAL_ALT' => 'Portal (alt)', |
|
91 | - 'LAYOUT_SETTINGS' => 'Layout Settings', |
|
86 | + 'LAYOUT_BLOG' => 'Blog', |
|
87 | + 'LAYOUT_CUSTOM' => 'Custom', |
|
88 | + 'LAYOUT_HOLYGRAIL' => 'Holy Grail', |
|
89 | + 'LAYOUT_PORTAL' => 'Portal', |
|
90 | + 'LAYOUT_PORTAL_ALT' => 'Portal (alt)', |
|
91 | + 'LAYOUT_SETTINGS' => 'Layout Settings', |
|
92 | 92 | |
93 | - 'LOG_DELETED_BLOCKS_FOR_STYLE' => 'Sitemaker blocks deleted for missing style with id %s', |
|
94 | - 'LOG_DELETED_BLOCKS_FOR_ROUTE' => 'Sitemaker blocks deleted for broken pages:<br />%s', |
|
95 | - 'LOG_DELETED_BLOCKS' => 'Invalid Sitemaker blocks deleted:<br />%s', |
|
93 | + 'LOG_DELETED_BLOCKS_FOR_STYLE' => 'Sitemaker blocks deleted for missing style with id %s', |
|
94 | + 'LOG_DELETED_BLOCKS_FOR_ROUTE' => 'Sitemaker blocks deleted for broken pages:<br />%s', |
|
95 | + 'LOG_DELETED_BLOCKS' => 'Invalid Sitemaker blocks deleted:<br />%s', |
|
96 | 96 | |
97 | - 'NAVIGATION_SETTINGS' => 'Navigation Settings', |
|
98 | - 'NO_NAVBAR' => 'None', |
|
97 | + 'NAVIGATION_SETTINGS' => 'Navigation Settings', |
|
98 | + 'NO_NAVBAR' => 'None', |
|
99 | 99 | |
100 | - 'SELECT_NAVBAR_MENU' => 'Select main navigation menu', |
|
101 | - 'SETTINGS_SAVED' => 'Your settings have been saved', |
|
102 | - 'SHOW' => 'Show', |
|
103 | - 'SHOW_FORUM_NAV' => 'Show ’Forum’ in navigation bar?', |
|
104 | - 'SHOW_FORUM_NAV_EXPLAIN' => 'When a page is set as startpage instead of the forum index, should we display ’Forum’ in navigation bar', |
|
105 | - 'SHOW_FORUM_NAV_WITH_ICON' => 'Yes - with icon:', |
|
100 | + 'SELECT_NAVBAR_MENU' => 'Select main navigation menu', |
|
101 | + 'SETTINGS_SAVED' => 'Your settings have been saved', |
|
102 | + 'SHOW' => 'Show', |
|
103 | + 'SHOW_FORUM_NAV' => 'Show ’Forum’ in navigation bar?', |
|
104 | + 'SHOW_FORUM_NAV_EXPLAIN' => 'When a page is set as startpage instead of the forum index, should we display ’Forum’ in navigation bar', |
|
105 | + 'SHOW_FORUM_NAV_WITH_ICON' => 'Yes - with icon:', |
|
106 | 106 | ]); |
@@ -8,11 +8,13 @@ |
||
8 | 8 | /** |
9 | 9 | * @ignore |
10 | 10 | */ |
11 | -if (!defined('IN_PHPBB')) { |
|
11 | +if (!defined('IN_PHPBB')) |
|
12 | +{ |
|
12 | 13 | exit; |
13 | 14 | } |
14 | 15 | |
15 | -if (empty($lang) || !is_array($lang)) { |
|
16 | +if (empty($lang) || !is_array($lang)) |
|
17 | +{ |
|
16 | 18 | $lang = []; |
17 | 19 | } |
18 | 20 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $this->config_path = $config_path; |
54 | 54 | $this->php_ext = $php_ext; |
55 | 55 | |
56 | - $this->config_template = __DIR__.'/default.config'; |
|
56 | + $this->config_template = __DIR__ . '/default.config'; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $config_file = $this->get_config_file(); |
103 | 103 | $test_line = file($config_file)[1]; |
104 | 104 | |
105 | - if (false === strpos($test_line, 'Sitemaker '.$this->config_version)) |
|
105 | + if (false === strpos($test_line, 'Sitemaker ' . $this->config_version)) |
|
106 | 106 | { |
107 | 107 | $curr_settings = []; |
108 | 108 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | protected function get_config_file() |
168 | 168 | { |
169 | - $config_file = $this->config_path.'config.'.$this->php_ext; |
|
169 | + $config_file = $this->config_path . 'config.' . $this->php_ext; |
|
170 | 170 | |
171 | 171 | if (!$this->filesystem->exists($config_file)) |
172 | 172 | { |