| | |
| | | } |
| | | |
| | | require(JVB_DIR . '/inc/helpers/breadcrumbs.php'); |
| | | require(JVB_DIR . '/inc/helpers/Events.php'); |
| | | //require(JVB_DIR . '/inc/helpers/cache.php'); |
| | | require(JVB_DIR . '/inc/helpers/commonPages.php'); |
| | | require(JVB_DIR . '/inc/helpers/crud.php'); |
| | | require(JVB_DIR . '/inc/helpers/dashboard.php'); |
| | | require(JVB_DIR . '/inc/helpers/directory.php'); |
| | | //require(JVB_DIR . '/inc/helpers/email.php'); |
| | | require(JVB_DIR . '/inc/helpers/foodmenu.php'); |
| | | require(JVB_DIR . '/inc/helpers/forms.php'); |
| | | require(JVB_DIR . '/inc/helpers/formatting.php'); |
| | | //require(JVB_DIR . '/inc/helpers/icons.php'); |
| | |
| | | 'message' => is_null($msg) ? ($success ? 'Completed successfully' : 'Something went wrong') : $msg |
| | | ]; |
| | | } |
| | | |
| | | function jvbTimelinePoints(int $ID, string $type, array $status = ['publish']):array |
| | | { |
| | | $type = jvbCheckBase($type); |
| | | return get_children([ |
| | | 'post_parent' => $ID, |
| | | 'orderby' => 'date', |
| | | 'order' => 'ASC', |
| | | 'posts_per_page'=> -1, |
| | | 'post_status' => $status, |
| | | 'fields' => 'ids', |
| | | 'post_type' => $type |
| | | ]); |
| | | } |