wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-layouts.php
/**
		 * Register Layout and Layout Part Custom Post Type
		 *
		 * @access public
		 */
Register Layout and Layout Part Custom Post Type
@access public
Register Layout and Layout Part Custom Post Type @access public
private function register_layout() {
			if ( !class_exists( 'CPT' ) ) {
				include THEMIFY_BUILDER_LIBRARIES_DIR . '/CPT.php';
			}
			$layout = self::register_layout_post_type();
			$layout->columns( array(
				'cb' => '<input type="checkbox" />',
				'title' => __( 'Title', 'themify' ),
				'thumbnail' => __( 'Thumbnail', 'themify' ),
				'author' => __( 'Author', 'themify' ),
				'date' => __( 'Date', 'themify' )
			) );
			$layout->populate_column( 'thumbnail', array( $this, 'populate_column_layout_thumbnail' ) );
			$layout->menu_icon( 'dashicons-admin-page' );
			$layout_part = self::register_layout_part_post_type();
			$layout_part->columns( array(
				'cb' => '<input type="checkbox" />',
				'title' => __( 'Title', 'themify' ),
				'shortcode' => __( 'Shortcode', 'themify' ),
				'author' => __( 'Author', 'themify' ),
				'date' => __( 'Date', 'themify' )
			) );
			$layout_part->populate_column( 'shortcode', array( $this, 'populate_column_layout_part_shortcode' ) );
			$layout_part->menu_icon( 'dashicons-screenoptions' );
			$this->set_post_type_var( $layout->post_type_name );
			$this->set_post_type_var( $layout_part->post_type_name );
			add_post_type_support( $layout->post_type_name, 'revisions' );
			add_post_type_support( $layout_part->post_type_name, 'revisions' );
			if(is_admin()){
			    $this->register_providers();
			}
		}
private function register_layout ( ) { if ( ! class_exists ( 'CPT' ) ) { include THEMIFY_BUILDER_LIBRARIES_DIR . '/CPT.php' ; } $ layout = self :: register_layout_post_type ( ) ; $ layout -> columns ( array ( 'cb' => '<input type="checkbox" />' , 'title' => __ ( 'Title' , 'themify' ) , 'thumbnail' => __ ( 'Thumbnail' , 'themify' ) , 'author' => __ ( 'Author' , 'themify' ) , 'date' => __ ( 'Date' , 'themify' ) ) ) ; $ layout -> populate_column ( 'thumbnail' , array ( $ this , 'populate_column_layout_thumbnail' ) ) ; $ layout -> menu_icon ( 'dashicons-admin-page' ) ; $ layout_part = self :: register_layout_part_post_type ( ) ; $ layout_part -> columns ( array ( 'cb' => '<input type="checkbox" />' , 'title' => __ ( 'Title' , 'themify' ) , 'shortcode' => __ ( 'Shortcode' , 'themify' ) , 'author' => __ ( 'Author' , 'themify' ) , 'date' => __ ( 'Date' , 'themify' ) ) ) ; $ layout_part -> populate_column ( 'shortcode' , array ( $ this , 'populate_column_layout_part_shortcode' ) ) ; $ layout_part -> menu_icon ( 'dashicons-screenoptions' ) ; $ this -> set_post_type_var ( $ layout -> post_type_name ) ; $ this -> set_post_type_var ( $ layout_part -> post_type_name ) ; add_post_type_support ( $ layout -> post_type_name , 'revisions' ) ; add_post_type_support ( $ layout_part -> post_type_name , 'revisions' ) ; if ( is_admin ( ) ) { $ this -> register_providers ( ) ; } }
Register Layout and Layout Part Custom Post Type
 @access public
Register Layout and Layout Part Custom Post Type @access public
// create a template custom post type // define the columns to appear on the admin edit screen // populate the thumbnail column // use "pages" icon for post type // create a template custom post type // define the columns to appear on the admin edit screen // populate the thumbnail column // use "pages" icon for post type