Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/cartflows   php

Repository URL to install this package:

Version: 1.6.11 

/ landing / class-cartflows-landing.php

<?php
/**
 * Landing
 *
 * @package CartFlows
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
define( 'CARTFLOWS_LANDING_DIR', CARTFLOWS_DIR . 'modules/landing/' );
define( 'CARTFLOWS_LANDING_URL', CARTFLOWS_URL . 'modules/landing/' );

/**
 * Initial Setup
 *
 * @since 1.0.0
 */
class Cartflows_Landing {


	/**
	 * Member Variable
	 *
	 * @var object instance
	 */
	private static $instance;

	/**
	 *  Initiator
	 */
	public static function get_instance() {
		if ( ! isset( self::$instance ) ) {
			self::$instance = new self();
		}
		return self::$instance;
	}

	/**
	 * Constructor function that initializes required actions and hooks
	 */
	public function __construct() {

		require_once CARTFLOWS_LANDING_DIR . 'classes/class-cartflows-landing-meta-data.php';
		require_once CARTFLOWS_LANDING_DIR . 'classes/class-cartflows-landing-markup.php';
	}
}

/**
 *  Kicking this off by calling 'get_instance()' method
 */
Cartflows_Landing::get_instance();