예제 #1
0
/**
 * Returns the main instance of Easy_Load_More to prevent the need to use globals.
 *
 * @since  1.0.0
 * @return object Easy_Load_More
 */
function Easy_Load_More()
{
    $instance = Easy_Load_More::instance(__FILE__, '1.0.0');
    if (is_null($instance->settings)) {
        $instance->settings = Easy_Load_More_Settings::instance($instance);
    }
    return $instance;
}
 /**
  * Main Easy_Load_More_Settings Instance
  *
  * Ensures only one instance of Easy_Load_More_Settings is loaded or can be loaded.
  *
  * @since 1.0.0
  * @static
  * @see Easy_Load_More()
  * @return Main Easy_Load_More_Settings instance
  */
 public static function instance($parent)
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($parent);
     }
     return self::$_instance;
 }