Tribe__Events__Main::activation_page()

Contents


Return

(Tribe__Admin__Activation_Page)


Top ↑

Source

File: src/Tribe/Main.php

		public function activation_page() {
			// Setup the activation page only if the relevant class exists (in some edge cases, if another
			// plugin hosting an earlier version of tribe-common is already active we could hit fatals
			// if we don't take this precaution).
			//
			// @todo remove class_exists() test once enough time has elapsed and the risk has reduced
			if ( empty( $this->activation_page ) && class_exists( 'Tribe__Admin__Activation_Page' ) ) {
				$this->activation_page = new Tribe__Admin__Activation_Page( array(
					'slug'                  => 'the-events-calendar',
					'activation_transient'  => '_tribe_events_activation_redirect',
					'version'               => self::VERSION,
					'plugin_path'           => $this->plugin_dir . 'the-events-calendar.php',
					'version_history_slug'  => 'previous_ecp_versions',
					'update_page_title'     => __( 'Welcome to The Events Calendar!', 'the-events-calendar' ),
					'update_page_template'  => $this->plugin_path . 'src/admin-views/admin-update-message.php',
					'welcome_page_title'    => __( 'Welcome to The Events Calendar!', 'the-events-calendar' ),
					'welcome_page_template' => $this->plugin_path . 'src/admin-views/admin-welcome-message.php',
				) );
			}

			return $this->activation_page;
		}