| | |
| | | exit; |
| | | } |
| | | |
| | | use JVBase\utility\Features; |
| | | |
| | | function jvbGlobalDirectories():array |
| | | { |
| | | $directories = get_option(BASE.'_global_directories'); |
| | |
| | | $manageableContent = false; |
| | | } |
| | | if ($manageableContent === false) { |
| | | |
| | | $manageableContent = []; |
| | | $bios = []; |
| | | foreach (JVB_USER as $role => $config) { |
| | | $manageableContent = array_merge($manageableContent, jvbRolePages($role)); |
| | | } |
| | | |
| | | |
| | | if (Features::forSite()->has('referrals')) { |
| | | $manageableContent[] = 'referrals'; |
| | | } |
| | | foreach (JVB_TAXONOMY as $tax => $config) { |
| | | if (jvbCheck('is_content', $config)) { |
| | | $manageableContent[] = strtolower($config['plural']); |
| | |
| | | |
| | | function jvbExtractUserContent(array $content):array |
| | | { |
| | | $out = []; |
| | | // Deprecated: Use Features::forUser($role)->getCreatableContent() instead |
| | | _deprecated_function(__FUNCTION__, '2.0.0', 'Features::forUser($role)->getCreatableContent()'); |
| | | |
| | | $out = []; |
| | | foreach ($content as $c) { |
| | | if (is_array($c)) { |
| | | foreach ($c as $type => $contents) { |