wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-layouts.php
/**
		 * Load pre-desgined Layouts
		 *
		 * @access public
		 */
Load pre-desgined Layouts
@access public
Load pre - desgined Layouts @access public
public function load_predesigned_layouts_ajaxify() {
			check_ajax_referer( 'tb_load_nonce', 'nonce' );
			$selected = '';
			if(empty($_POST['src'])){
				$data = apply_filters('themify_load_predesigned_templates',array());
				$selected = $data['selected'];
				$data = json_encode($data['data']);
			}else{
				$request = wp_remote_get( $_POST['src'] );
				if ( ! is_wp_error( $request ) ) {
					$data = wp_remote_retrieve_body( $request );
				}else{
				    $data = '{}';
                }
			}
			wp_send_json( array('data'=>$data,'selected'=>$selected) );
		}
public function load_predesigned_layouts_ajaxify ( ) { check_ajax_referer ( 'tb_load_nonce' , 'nonce' ) ; $ selected = '' ; if ( empty ( $ _POST [ 'src' ] ) ) { $ data = apply_filters ( 'themify_load_predesigned_templates' , array ( ) ) ; $ selected = $ data [ 'selected' ] ; $ data = json_encode ( $ data [ 'data' ] ) ; } else { $ request = wp_remote_get ( $ _POST [ 'src' ] ) ; if ( ! is_wp_error ( $ request ) ) { $ data = wp_remote_retrieve_body ( $ request ) ; } else { $ data = '{}' ; } } wp_send_json ( array ( 'data' => $ data , 'selected' => $ selected ) ) ; }
Load pre-desgined Layouts
 @access public
Load pre - desgined Layouts @access public