|
2 | 2 |
|
3 | 3 | namespace OWC\PDC\Base\Metabox;
|
4 | 4 |
|
| 5 | +use OWC\PDC\Base\Support\Traits\RequestUPL; |
5 | 6 | use OWC\PDC\Base\Metabox\Handlers\UPLNameHandler;
|
6 | 7 | use OWC\PDC\Base\Metabox\Handlers\UPLResourceHandler;
|
7 |
| -use OWC\PDC\Base\Support\Traits\RequestUPL; |
8 | 8 |
|
9 | 9 | class MetaboxServiceProvider extends MetaboxBaseServiceProvider
|
10 | 10 | {
|
@@ -41,13 +41,13 @@ public function registerMetaboxes(array $rwmbMetaboxes): array
|
41 | 41 | $configMetaboxes = $this->getShowOnMetabox($configMetaboxes);
|
42 | 42 | }
|
43 | 43 |
|
44 |
| - if ($this->plugin->settings->useThemeTiles()) { |
45 |
| - $configMetaboxes = $this->getTilesMetabox($configMetaboxes); |
46 |
| - } |
| 44 | + if ($this->plugin->settings->useThemeTiles()) { |
| 45 | + $configMetaboxes = $this->getTilesMetabox($configMetaboxes); |
| 46 | + } |
47 | 47 |
|
48 |
| - if ($this->plugin->settings->useTableOfContents()) { |
49 |
| - $configMetaboxes = $this->getTableOfContentsMetabox($configMetaboxes); |
50 |
| - } |
| 48 | + if ($this->plugin->settings->useTableOfContents()) { |
| 49 | + $configMetaboxes = $this->getTableOfContentsMetabox($configMetaboxes); |
| 50 | + } |
51 | 51 |
|
52 | 52 | if ($this->plugin->settings->useFeedbackForm()) {
|
53 | 53 | $configMetaboxes = $this->getFeedbackFormMetabox($configMetaboxes);
|
@@ -86,12 +86,12 @@ protected function getShowOnMetabox(array $configMetaboxes): array
|
86 | 86 | return array_merge($configMetaboxes, $this->plugin->config->get('show_on_metabox'));
|
87 | 87 | }
|
88 | 88 |
|
89 |
| - protected function getTilesMetabox(array $configMetaboxes): array |
| 89 | + protected function getTilesMetabox(array $configMetaboxes): array |
90 | 90 | {
|
91 | 91 | return array_merge($configMetaboxes, $this->plugin->config->get('theme_tiles_metabox'));
|
92 | 92 | }
|
93 | 93 |
|
94 |
| - protected function getTableOfContentsMetabox(array $configMetaboxes): array |
| 94 | + protected function getTableOfContentsMetabox(array $configMetaboxes): array |
95 | 95 | {
|
96 | 96 | return array_merge($configMetaboxes, $this->plugin->config->get('table_of_contents_metabox'));
|
97 | 97 | }
|
|
0 commit comments