Exemplo n.º 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;
}
Exemplo n.º 2
0
 /**
  * Main Easy_Load_More Instance
  *
  * Ensures only one instance of Easy_Load_More is loaded or can be loaded.
  *
  * @since 1.0.0
  * @static
  * @see Easy_Load_More()
  * @return Main Easy_Load_More instance
  */
 public static function instance($file = '', $version = '1.0.0')
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($file, $version);
     }
     return self::$_instance;
 }