| | |
| | | private function __construct() { |
| | | self::$based = BASE.$this->slug; |
| | | $this->cache = Cache::for('dashboard', 'post'); |
| | | if (JVB_TESTING) { |
| | | $this->cache->flush(); |
| | | } |
| | | |
| | | $this->registerDashboard(); |
| | | $this->buildPages(); |
| | | $this->buildSections(); |
| | |
| | | echo '<form data-save="user" data-auto data-action="dash">'.jvbFormStatus().$tabs->render().'<button type="submit">'.jvbDashIcon('floppy-disk').'Save</button></form>'; |
| | | } else { |
| | | $fields = Fields::getUserFields(); |
| | | $meta = new Meta($user->ID, 'user', $fields); |
| | | $meta = Meta::forUser($user->ID); |
| | | |
| | | echo Form::renderFormFrom($meta, 'user', [ |
| | | 'heading' => 'Your Account', |