GIF89A; .
KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Microsoft-IIS/10.0
System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586
User : fatorc ( 0)
PHP Version : 5.3.28
Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate
Directory :  e:/home/fatorc/Web/wp-content/plugins/types/application/controllers/page/extension/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : e:/home/fatorc/Web/wp-content/plugins/types/application/controllers/page/extension/edit_post.php
<?php

/**
 * This controller extends all post edit pages
 *
 * @since 2.0
 */
final class Types_Page_Extension_Edit_Post {

	private static $instance;

	public static function get_instance() {
		if( null == self::$instance ) {
			self::$instance = new self();
		}
		return self::$instance;
	}

	private function __construct() {
		$post = wpcf_admin_get_edited_post();
		$post_type = wpcf_admin_get_edited_post_type( $post );

		// if no post or no page
		if( $post_type != 'post' && $post_type != 'page' ) {
			$custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );

			// abort if also no custom post type of types
			if( ! array_key_exists( $post_type, $custom_types ) )
				return false;
		}

		$this->prepare();
	}

	private function __clone() { }


	public function prepare() {
		// documentation urls
		Types_Helper_Url::load_documentation_urls();

		// set analytics medium
		Types_Helper_Url::set_medium( 'post_editor' );
		
		// add information
		$this->prepare_information();

		// @todo load scripts
		if( function_exists( 'wpcf_edit_post_screen_scripts' ) )
			wpcf_edit_post_screen_scripts();
	}

	private function prepare_information() {
		$setting = new Types_Setting_Preset_Information_Table();

		if( ! $setting->get_value( 'show-on-post' ) )
			return false;

		$information = new Types_Information_Controller;
		$information->prepare();
	}
}

Anon7 - 2021