/**
  * Generates the proper PHP export code.
  * 
  * @since 2.0
  * 
  * @param int[] $containers The IDs of the containers that shoud be exported.
  * @return string
  */
 public function generate_php_export($ids)
 {
     $data = $this->generate_export_data($ids);
     $textdomain = isset($_POST['php-textdomain']) && $_POST['php-textdomain'] ? stripslashes(strip_tags($_POST['php-textdomain'])) : '';
     include ultimatefields()->themes->path('ui-tools/pt-php-export');
 }
 /**
  * Displays the submit meta box.
  *
  * @since 2.0
  * 
  * @param WP_Post $post
  */
 public function submit_box($post)
 {
     include ultimatefields()->themes->path('ui/edit-screen-submitdiv');
 }
 /**
  * The template files of CPT will follow the template
  * structure of the main plugin. This way, if there is a theme
  * that will change Ultimate Fields, it will be able to change the
  * User Interface too.
  * 
  * @since 2.0
  */
 public function add_themes()
 {
     ultimatefields()->themes->add_theme(UPT_DIR . 'templates');
 }
 /**
  * Shows the content of the migration tab.
  * 
  * @since 2.0
  */
 public function migrate_tab($settings_page)
 {
     $post_types = get_posts(array('post_type' => $this->get_slug(), 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'post_title'));
     include ultimatefields()->themes->path('ui-tools/migrate-post-types');
 }