| | |
| | | use JVBase\managers\CacheManager; |
| | | |
| | | add_filter('jvb_base', function () { |
| | | return 'ajv_'; |
| | | return 'altr_'; |
| | | }); |
| | | |
| | | |
| | |
| | | * - rewrite rules |
| | | * - archive title |
| | | */ |
| | | add_filter('jvb_site', 'ajv_setup_site'); |
| | | function ajv_setup_site(): array |
| | | add_filter('jvb_site', 'altr_setup_site'); |
| | | function altr_setup_site(): array |
| | | { |
| | | return [ |
| | | 'icons' => 'light', |
| | |
| | | * - term_approval = (bool) verified users can create new terms, but needs approval |
| | | * - member_only = (array) if empty, open to any registered user. otherwise an array of registered user roles |
| | | */ |
| | | //add_filter('jvb_membership', 'ajv_setup_membership'); |
| | | //function ajv_setup_membership():array |
| | | //add_filter('jvb_membership', 'altr_setup_membership'); |
| | | //function altr_setup_membership():array |
| | | //{ |
| | | // return [ |
| | | // 'member_content' => true, |
| | |
| | | // ]; |
| | | //} |
| | | |
| | | add_filter('jvbLoadingQuips', 'ajv_loading_quips'); |
| | | function ajv_loading_quips(array $quips): array |
| | | add_filter('jvbLoadingQuips', 'altr_loading_quips'); |
| | | function altr_loading_quips(array $quips): array |
| | | { |
| | | return []; |
| | | } |
| | | |
| | | |
| | | // /content/art.php |
| | | function ajv_art(): array |
| | | function altr_art(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Art', |
| | |
| | | |
| | | |
| | | // /content/design.php |
| | | function ajv_design(): array |
| | | function altr_design(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Graphic Design', |
| | |
| | | |
| | | |
| | | // /content/development.php |
| | | function ajv_development(): array |
| | | function altr_development(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Development', |
| | |
| | | require(AJV_DIR . '/content/support.php'); |
| | | require(AJV_DIR . '/content/writing.php'); |
| | | |
| | | add_filter('jvb_content', 'ajv_content'); |
| | | function ajv_content($content): array |
| | | add_filter('jvb_content', 'altr_content'); |
| | | function altr_content($content): array |
| | | { |
| | | return [ |
| | | 'design' => ajv_design(), |
| | | 'development' => ajv_development(), |
| | | 'strategy' => ajv_strategy(), |
| | | 'art' => ajv_art(), |
| | | 'writing' => ajv_writing(), |
| | | 'support' => ajv_support(), |
| | | 'design' => altr_design(), |
| | | 'development' => altr_development(), |
| | | 'strategy' => altr_strategy(), |
| | | 'art' => altr_art(), |
| | | 'writing' => altr_writing(), |
| | | 'support' => altr_support(), |
| | | ]; |
| | | } |
| | | |
| | | |
| | | // /content/strategy.php |
| | | function ajv_strategy(): array |
| | | function altr_strategy(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Strategy', |
| | |
| | | |
| | | |
| | | // /content/support.php |
| | | function ajv_support(): array |
| | | function altr_support(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Support', |
| | |
| | | |
| | | |
| | | // /content/writing.php |
| | | function ajv_writing(): array |
| | | function altr_writing(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Writing', |
| | |
| | | |
| | | |
| | | // /login/setup.php |
| | | add_filter('jvb_login', 'ajv_setup_login'); |
| | | function ajv_setup_login(): array |
| | | add_filter('jvb_login', 'altr_setup_login'); |
| | | function altr_setup_login(): array |
| | | { |
| | | return [ |
| | | 'login_from_favourite_header' => 'Join the scene; <small>keep your collection.</small>', |
| | |
| | | |
| | | |
| | | // /taxonomies/city.php |
| | | function ajv_city(): array |
| | | function altr_city(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'City', |
| | |
| | | } |
| | | |
| | | // /taxonomies/form.php |
| | | function ajv_form(): array |
| | | function altr_form(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Form', |
| | |
| | | } |
| | | |
| | | // /taxonomies/media.php |
| | | function ajv_media(): array |
| | | function altr_media(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Medium', |
| | |
| | | } |
| | | |
| | | // /taxonomies/progress.php |
| | | function ajv_progress(): array |
| | | function altr_progress(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Progress', |
| | |
| | | require(AJV_DIR . '/taxonomies/target.php'); |
| | | require(AJV_DIR . '/taxonomies/theme.php'); |
| | | |
| | | add_filter('jvb_taxonomy', 'ajv_taxonomy'); |
| | | function ajv_taxonomy(): array |
| | | add_filter('jvb_taxonomy', 'altr_taxonomy'); |
| | | function altr_taxonomy(): array |
| | | { |
| | | return [ |
| | | 'city' => ajv_city(), |
| | | 'style' => ajv_style(), |
| | | 'theme' => ajv_theme(), |
| | | 'form' => ajv_form(), |
| | | 'medium' => ajv_media(), |
| | | 'target' => ajv_target(), |
| | | 'progress' => ajv_progress(), |
| | | 'city' => altr_city(), |
| | | 'style' => altr_style(), |
| | | 'theme' => altr_theme(), |
| | | 'form' => altr_form(), |
| | | 'medium' => altr_media(), |
| | | 'target' => altr_target(), |
| | | 'progress' => altr_progress(), |
| | | ]; |
| | | } |
| | | |
| | | // /taxonomies/style.php |
| | | function ajv_style(): array |
| | | function altr_style(): array |
| | | { |
| | | return [ |
| | | 'directory' => 'Styles', |
| | |
| | | } |
| | | |
| | | // /taxonomies/target.php |
| | | function ajv_target(): array |
| | | function altr_target(): array |
| | | { |
| | | return [ |
| | | 'singular' => 'Target Audience', |
| | |
| | | } |
| | | |
| | | // /taxonomies/theme.php |
| | | function ajv_theme(): array |
| | | function altr_theme(): array |
| | | { |
| | | return [ |
| | | 'directory' => 'Themes', |
| | |
| | | |
| | | |
| | | // /users/client.php |
| | | function ajv_user_client(): array |
| | | function altr_user_client(): array |
| | | { |
| | | return [ |
| | | 'label' => 'Client', |
| | |
| | | } |
| | | |
| | | // /users/enthusiast.php |
| | | function ajv_user_enthusiast(): array |
| | | function altr_user_enthusiast(): array |
| | | { |
| | | return [ |
| | | 'label' => 'Enthusiast', |
| | |
| | | require(AJV_DIR . '/users/client.php'); |
| | | require(AJV_DIR . '/users/enthusiast.php'); |
| | | |
| | | add_filter('jvb_user', 'ajv_user'); |
| | | add_filter('jvb_user', 'altr_user'); |
| | | |
| | | function ajv_user():array |
| | | function altr_user():array |
| | | { |
| | | return [ |
| | | 'enthusiast' => ajv_user_enthusiast(), |
| | | 'client' => ajv_user_client(), |
| | | 'enthusiast' => altr_user_enthusiast(), |
| | | 'client' => altr_user_client(), |
| | | ]; |
| | | } |