wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-library-item.php
/**
     * Save the item as Layout Part.
     * 
     * @access public
     * Return Array
     */
Save the item as Layout Part.

@access public
Return Array
Save the item as Layout Part . @access public Return Array
protected static function save_as_layout_part($data, $new_id) {
        if ($data['type'] === 'module') {
            $row = array('cols' => array(0 => array('grid_class' => 'col-full first last',  'modules' => array())));
            $row['cols'][0]['modules'][1] = $data['item'];
            ThemifyBuilder_Data_Manager::save_data(array($row), $new_id);
        } else {
            ThemifyBuilder_Data_Manager::save_data(array($data['item']), $new_id);
        }
	$post = get_post($new_id);
        return array(
            'status' => 'success',
            'post_name' => $post->post_name
        );
    }
protected static function save_as_layout_part ( $ data , $ new_id ) { if ( $ data [ 'type' ] === 'module' ) { $ row = array ( 'cols' => array ( 0 => array ( 'grid_class' => 'col-full first last' , 'modules' => array ( ) ) ) ) ; $ row [ 'cols' ] [ 0 ] [ 'modules' ] [ 1 ] = $ data [ 'item' ] ; ThemifyBuilder_Data_Manager :: save_data ( array ( $ row ) , $ new_id ) ; } else { ThemifyBuilder_Data_Manager :: save_data ( array ( $ data [ 'item' ] ) , $ new_id ) ; } $ post = get_post ( $ new_id ) ; return array ( 'status' => 'success' , 'post_name' => $ post -> post_name ) ; }
Save the item as Layout Part.
Save the item as Layout Part .