| | |
| | | if (empty(jvbGlobalDirectories())) { |
| | | return; |
| | | } |
| | | $this->cache = new CacheManager('directory', WEEK_IN_SECONDS); |
| | | $this->cache = CacheManager::for('directory', WEEK_IN_SECONDS); |
| | | |
| | | add_action('init', [$this, 'registerDirectories']); |
| | | jvb_register_do_once('directories_registered', [$this, 'activate']); |
| | |
| | | 'slug' => $slug, |
| | | 'title' => $title, |
| | | 'ID' => $ID, |
| | | 'url' => get_home_url(2, '/directory/'.$slug), |
| | | 'url' => get_home_url(null, '/directory/'.$slug), |
| | | 'page' => $title, |
| | | 'description' =>$config[$directory]['description']??[], |
| | | 'type' => $type, |
| | |
| | | 'slug' => $slug, |
| | | 'title' => $title, |
| | | 'ID' => $ID, |
| | | 'url' => get_home_url(2, '/directory/'.$slug), |
| | | 'url' => get_home_url(null, '/directory/'.$slug), |
| | | 'page' => $title, |
| | | 'description' =>$config[$directory]['description']??[], |
| | | 'type' => $type, |
| | |
| | | 'slug' => 'map', |
| | | 'title' => 'Map', |
| | | 'ID' => $ID, |
| | | 'url' => get_home_url(2, '/directory/map'), |
| | | 'url' => get_home_url(null, '/directory/map'), |
| | | 'page' => 'Map', |
| | | 'type' => 'term', |
| | | ]; |