components/Advanced-Relationships.php
public function data_page_templates( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		if ( ! function_exists( 'get_page_templates' ) ) {
			include_once ABSPATH . 'wp-admin/includes/theme.php';
		}

		$page_templates = apply_filters( 'pods_page_templates', get_page_templates() );

		if ( ! in_array( 'page.php', $page_templates, true ) && locate_template( array( 'page.php', false ) ) ) {
			$page_templates['Page (WP Default)'] = 'page.php';
		}

		if ( ! in_array( 'index.php', $page_templates, true ) && locate_template( array( 'index.php', false ) ) ) {
			$page_templates['Index (WP Fallback)'] = 'index.php';
		}

		ksort( $page_templates );

		$page_templates = array_flip( $page_templates );

		foreach ( $page_templates as $page_template_file => $page_template ) {
			$data[ $page_template_file ] = $page_template;
		}

		return apply_filters( 'pods_form_ui_field_pick_data_page_templates', $data, $name, $value, $options, $pod, $id );
	}
public function data_page_templates( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		if ( ! function_exists( 'get_page_templates' ) ) {
			include_once ABSPATH . 'wp-admin/includes/theme.php';
		}

		$page_templates = apply_filters( 'pods_page_templates', get_page_templates() );

		if ( ! in_array( 'page.php', $page_templates, true ) && locate_template( array( 'page.php', false ) ) ) {
			$page_templates['Page (WP Default)'] = 'page.php';
		}

		if ( ! in_array( 'index.php', $page_templates, true ) && locate_template( array( 'index.php', false ) ) ) {
			$page_templates['Index (WP Fallback)'] = 'index.php';
		}

		ksort( $page_templates );

		$page_templates = array_flip( $page_templates );

		foreach ( $page_templates as $page_template_file => $page_template ) {
			$data[ $page_template_file ] = $page_template;
		}

		return apply_filters( 'pods_form_ui_field_pick_data_page_templates', $data, $name, $value, $options, $pod, $id );
	}
public function data_page_templates ( $ name = null , $ value = null , $ options = null , $ pod = null , $ id = null ) { $ data = array ( ) ; if ( ! function_exists ( 'get_page_templates' ) ) { include_once ABSPATH . 'wp-admin/includes/theme.php' ; } $ page_templates = apply_filters ( 'pods_page_templates' , get_page_templates ( ) ) ; if ( ! in_array ( 'page.php' , $ page_templates , true ) && locate_template ( array ( 'page.php' , false ) ) ) { $ page_templates [ 'Page (WP Default)' ] = 'page.php' ; } if ( ! in_array ( 'index.php' , $ page_templates , true ) && locate_template ( array ( 'index.php' , false ) ) ) { $ page_templates [ 'Index (WP Fallback)' ] = 'index.php' ; } ksort ( $ page_templates ) ; $ page_templates = array_flip ( $ page_templates ) ; foreach ( $ page_templates as $ page_template_file => $ page_template ) { $ data [ $ page_template_file ] = $ page_template ; } return apply_filters ( 'pods_form_ui_field_pick_data_page_templates' , $ data , $ name , $ value , $ options , $ pod , $ id ) ; }
Data callback for Page Templates

@param string       $name    The name of the field
@param string|array $value   The value of the field
@param array        $options Field options
@param array        $pod     Pod data
@param int          $id      Item ID

@return array

@since 2.3.0
Data callback for Page Templates