| | |
| | | * - 'section' => (string) the slug of the section, as defined above |
| | | */ |
| | | |
| | | use JVBase\registrar\Registrar; |
| | | |
| | | require(AJV_DIR . '/content/art.php'); |
| | | require(AJV_DIR . '/content/design.php'); |
| | | require(AJV_DIR . '/content/development.php'); |
| | |
| | | require(AJV_DIR . '/content/support.php'); |
| | | require(AJV_DIR . '/content/writing.php'); |
| | | |
| | | add_filter('jvb_content', 'ajv_content'); |
| | | //add_filter('jvb_content', 'ajv_content'); |
| | | function ajv_content($content):array |
| | | { |
| | | return [ |
| | |
| | | add_filter('wp_footer', 'ajv_gallery_output'); |
| | | function ajv_gallery_output():void |
| | | { |
| | | if (is_singular(array_map(function($item) { return BASE.$item; }, array_keys(JVB_CONTENT)))) { |
| | | $types = array_map(function($type) { return jvbCheckBase($type); }, Registrar::getRegistered('post')); |
| | | |
| | | if (is_singular($types)) { |
| | | jvbRenderGallery(); |
| | | } |
| | | } |