base); $post_type = $name_data[2]; //if we are on a main plugin settings page, set $post_type to 'site-meta' post type if($post_type == 'pressbooks'){ $post_type = site_cpt::pressbooks_identify() ? 'metadata' : 'site-meta'; } //if site-meta/metadata location is not active, ask user to activate it to be able to manage it (with other post types settings are just not shown in case they are inactive) if(($post_type == 'site-meta' && !in_array('site-meta', $allPostTypes)) || ($post_type == 'metadata' && !in_array('metadata', $allPostTypes))){ echo '

'.__('Activate Site-Meta location to manage Schema Types on this level', 'all-in-one-metadata').'

'; }else{ _e('

Select schema types that you want to be active

', 'all-in-one-metadata'); _e('

Choose What You Are Trying To Describe With Metadata

', 'all-in-one-metadata'); ?>
/>

'; ?>