| | |
| | | // Fields and sections |
| | | $this->skeleton->setFields($this->registrar->getFields()); |
| | | |
| | | foreach ($this->registrar->getSections() as $config) { |
| | | $this->skeleton->addSection($config['id'], $config); |
| | | } |
| | | $sections = $this->registrar->getSections(); |
| | | if (count($sections) > 1) { |
| | | foreach ($sections as $config) { |
| | | $this->skeleton->addSection($config['slug'], $config); |
| | | } |
| | | } |
| | | |
| | | // Taxonomies |
| | | $this->initTaxonomies(); |
| | |
| | | |
| | | protected function addDateRanges():array |
| | | { |
| | | return $this->cache->remember( |
| | | return $this->cache->user()->remember( |
| | | 'dateRanges', |
| | | function() { |
| | | $postType = jvbCheckBase($this->content); |