classes/PodsAdmin.php
public function admin_content_settings() {

		// @codingStandardsIgnoreLine
		$pod_name = str_replace( 'pods-settings-', '', $_GET['page'] );

		$pod = pods( $pod_name );

		if ( 'custom' !== pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ) ) {
			$actions_disabled = array(
				'manage'    => 'manage',
				'add'       => 'add',
				'delete'    => 'delete',
				'duplicate' => 'duplicate',
				'view'      => 'view',
				'export'    => 'export',
			);

			// @codingStandardsIgnoreLine
			$_GET['action'] = 'edit';

			$page_title = pods_v( 'label', $pod->pod_data, ucwords( str_replace( '_', ' ', $pod->pod_data['name'] ) ), true );
			$page_title = apply_filters( 'pods_admin_menu_page_title', $page_title, $pod->pod_data );

			$ui = array(
				'pod'              => $pod,
				'fields'           => array(
					'edit' => $pod->pod_data['fields'],
				),
				'header'           => array(
					'edit' => $page_title,
				),
				'label'            => array(
					'edit' => __( 'Save Changes', 'pods' ),
				),
				'style'            => pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ),
				'icon'             => pods_evaluate_tags( pods_v( 'menu_icon', $pod->pod_data['options'] ), true ),
				'actions_disabled' => $actions_disabled,
			);

			$pod_pod_name = $pod->pod;

			$ui = apply_filters( "pods_admin_ui_{$pod_pod_name}", apply_filters( 'pods_admin_ui', $ui, $pod->pod, $pod ), $pod->pod, $pod );

			// Force disabled actions, do not pass go, do not collect $two_hundred
			$ui['actions_disabled'] = $actions_disabled;

			pods_ui( $ui );
		} else {
			$pod_pod_name = $pod->pod;
			do_action( 'pods_admin_ui_custom', $pod );
			do_action( "pods_admin_ui_custom_{$pod_pod_name}", $pod );
		}//end if
	}
public function admin_content_settings() {

		// @codingStandardsIgnoreLine
		$pod_name = str_replace( 'pods-settings-', '', $_GET['page'] );

		$pod = pods( $pod_name );

		if ( 'custom' !== pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ) ) {
			$actions_disabled = array(
				'manage'    => 'manage',
				'add'       => 'add',
				'delete'    => 'delete',
				'duplicate' => 'duplicate',
				'view'      => 'view',
				'export'    => 'export',
			);

			// @codingStandardsIgnoreLine
			$_GET['action'] = 'edit';

			$page_title = pods_v( 'label', $pod->pod_data, ucwords( str_replace( '_', ' ', $pod->pod_data['name'] ) ), true );
			$page_title = apply_filters( 'pods_admin_menu_page_title', $page_title, $pod->pod_data );

			$ui = array(
				'pod'              => $pod,
				'fields'           => array(
					'edit' => $pod->pod_data['fields'],
				),
				'header'           => array(
					'edit' => $page_title,
				),
				'label'            => array(
					'edit' => __( 'Save Changes', 'pods' ),
				),
				'style'            => pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ),
				'icon'             => pods_evaluate_tags( pods_v( 'menu_icon', $pod->pod_data['options'] ), true ),
				'actions_disabled' => $actions_disabled,
			);

			$pod_pod_name = $pod->pod;

			$ui = apply_filters( "pods_admin_ui_{$pod_pod_name}", apply_filters( 'pods_admin_ui', $ui, $pod->pod, $pod ), $pod->pod, $pod );

			// Force disabled actions, do not pass go, do not collect $two_hundred
			$ui['actions_disabled'] = $actions_disabled;

			pods_ui( $ui );
		} else {
			$pod_pod_name = $pod->pod;
			do_action( 'pods_admin_ui_custom', $pod );
			do_action( "pods_admin_ui_custom_{$pod_pod_name}", $pod );
		}//end if
	}
public function admin_content_settings ( ) { // @codingStandardsIgnoreLine $ pod_name = str_replace ( 'pods-settings-' , '' , $ _GET [ 'page' ] ) ; $ pod = pods ( $ pod_name ) ; if ( 'custom' !== pods_v ( 'ui_style' , $ pod -> pod_data [ 'options' ] , 'settings' , true ) ) { $ actions_disabled = array ( 'manage' => 'manage' , 'add' => 'add' , 'delete' => 'delete' , 'duplicate' => 'duplicate' , 'view' => 'view' , 'export' => 'export' , ) ; // @codingStandardsIgnoreLine $ _GET [ 'action' ] = 'edit' ; $ page_title = pods_v ( 'label' , $ pod -> pod_data , ucwords ( str_replace ( '_' , ' ' , $ pod -> pod_data [ 'name' ] ) ) , true ) ; $ page_title = apply_filters ( 'pods_admin_menu_page_title' , $ page_title , $ pod -> pod_data ) ; $ ui = array ( 'pod' => $ pod , 'fields' => array ( 'edit' => $ pod -> pod_data [ 'fields' ] , ) , 'header' => array ( 'edit' => $ page_title , ) , 'label' => array ( 'edit' => __ ( 'Save Changes' , 'pods' ) , ) , 'style' => pods_v ( 'ui_style' , $ pod -> pod_data [ 'options' ] , 'settings' , true ) , 'icon' => pods_evaluate_tags ( pods_v ( 'menu_icon' , $ pod -> pod_data [ 'options' ] ) , true ) , 'actions_disabled' => $ actions_disabled , ) ; $ pod_pod_name = $ pod -> pod ; $ ui = apply_filters ( "pods_admin_ui_{$pod_pod_name}" , apply_filters ( 'pods_admin_ui' , $ ui , $ pod -> pod , $ pod ) , $ pod -> pod , $ pod ) ; // Force disabled actions, do not pass go, do not collect $two_hundred $ ui [ 'actions_disabled' ] = $ actions_disabled ; pods_ui ( $ ui ) ; } else { $ pod_pod_name = $ pod -> pod ; do_action ( 'pods_admin_ui_custom' , $ pod ) ; do_action ( "pods_admin_ui_custom_{$pod_pod_name}" , $ pod ) ; } //end if }
Create PodsUI content for the settings administration pages
Create PodsUI content for the settings administration pages