wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Load content of only current inner page
	 * @param $builder_data
	 * @param $page_breaks count of page break modules
	 * @return array
	 */
Load content of only current inner page
@param $builder_data
@param $page_breaks count of page break modules
@return array
Load content of only current inner page @param $builder_data @param $page_breaks count of page break modules @return array
public function load_current_inner_page_content($builder_data, $page_breaks) {
	    $p = !empty($_GET['tb-page'])?(int)$_GET['tb-page']:1;
	    $temp_data = array();
	    $page_num = 1;
	    foreach ($builder_data as $row) {
			if (isset($row['styling']['custom_css_row']) && strpos($row['styling']['custom_css_row'], 'tb-page-break') !== false) {
				++$page_num;
			}
			else{
				$temp_data[$page_num][] = $row;
			}
	    }
	    unset($builder_data,$page_num);
	    ++$page_breaks;
	    $p = ($p > $page_breaks || $p < 1) ? 1 : $p;
	    return array(
		'pagination'=>Themify_Builder_Component_Base::get_pagination('','','tb-page',0,$page_breaks,$p),
		'builder_data'=>isset($temp_data[$p]) ? $temp_data[$p] : $builder_data
	    );
	}
public function load_current_inner_page_content ( $ builder_data , $ page_breaks ) { $ p = ! empty ( $ _GET [ 'tb-page' ] ) ? ( int ) $ _GET [ 'tb-page' ] : 1 ; $ temp_data = array ( ) ; $ page_num = 1 ; foreach ( $ builder_data as $ row ) { if ( isset ( $ row [ 'styling' ] [ 'custom_css_row' ] ) && strpos ( $ row [ 'styling' ] [ 'custom_css_row' ] , 'tb-page-break' ) !== false ) { ++ $ page_num ; } else { $ temp_data [ $ page_num ] [ ] = $ row ; } } unset ( $ builder_data , $ page_num ) ; ++ $ page_breaks ; $ p = ( $ p > $ page_breaks || $ p < 1 ) ? 1 : $ p ; return array ( 'pagination' => Themify_Builder_Component_Base :: get_pagination ( '' , '' , 'tb-page' , 0 , $ page_breaks , $ p ) , 'builder_data' => isset ( $ temp_data [ $ p ] ) ? $ temp_data [ $ p ] : $ builder_data ) ; }
Load content of only current inner page
 @param $builder_data
 @param $page_breaks count of page break modules
 @return array
Load content of only current inner page @param $builder_data @param $page_breaks count of page break modules @return array