/** * Settings page registration * * @return void */ function moove_importer_settings_page() { $post_types = get_post_types(array('public' => true)); unset($post_types['attachment']); $data = array(); if (count($post_types)) { foreach ($post_types as $cpt) { $taxonomies = get_object_taxonomies($cpt, 'object'); $data[$cpt] = array('post_type' => $cpt, 'taxonomies' => $taxonomies); } } echo Moove_Importer_View::load('moove.admin.settings.settings_page', $data); }
echo $active_tab == 'feed_importer' ? 'nav-tab-active' : ''; ?> "> <?php _e('Feed Import', 'moove'); ?> </a> <a href="?page=moove-importer&tab=plugin_documentation" class="nav-tab <?php echo $active_tab == 'plugin_documentation' ? 'nav-tab-active' : ''; ?> "> <?php _e('Documentation', 'moove'); ?> </a> </h2> <div class="moove-form-container <?php echo $active_tab; ?> "> <?php if ($active_tab == 'feed_importer') { echo Moove_Importer_View::load('moove.admin.settings.post_type', $data); } elseif ($active_tab == 'plugin_documentation') { echo Moove_Importer_View::load('moove.admin.settings.documentation', null); } ?> </div> <!-- moove-form-container --> </div> <!-- wrap -->