| | |
| | | } |
| | | |
| | | use JVBase\managers\Cache; |
| | | use JVBase\meta\Form; |
| | | use JVBase\registrar\Registrar; |
| | | |
| | | /** |
| | | * For whatever reason, after much testing, it seems that |
| | |
| | | } |
| | | |
| | | /** |
| | | * @deprecated use CRUDManager.php or CRUDSkeleton.php |
| | | * Outputs the blocks of a CRUD management in backend |
| | | * Mainly used in news.php so far |
| | | * @param string $content |
| | |
| | | $nav .= '</nav>'; |
| | | echo $nav; |
| | | |
| | | $fields = jvbGetFields($postType); |
| | | |
| | | $meta = new JVBase\meta\MetaManager($ID, $contentType); |
| | | $fields = Registrar::getFieldsFor($postType); |
| | | ?> |
| | | <form class="jvb-form" id="bio" data-form-id="bio-<?=$ID?>" data-save="bio" |
| | | data-object-id="<?=$ID?>" data-content-type="<?=$postType?>"> |
| | |
| | | if (array_key_exists('role', $config)) { |
| | | $user = get_userdata($ID); |
| | | if (in_array($config['role'], $user->roles)) { |
| | | $meta->render('form', $field, $config); |
| | | echo Form::render($field, null, $config); |
| | | } |
| | | } else { |
| | | $meta->render('form', $field, $config); |
| | | echo Form::render($field, null, $config); |
| | | } |
| | | } |
| | | ?> |