$check = array('Name', 'PluginURI', 'AuthorName', 'AuthorURI', 'Version', 'TextDomain');
        /* If this is not our plugin, exit. */
        foreach ($check as $key) {
            if ($plugin_data[$key] !== $framework_data[$key]) {
                return $plugin_meta;
            }
        }
        $framework_changelog_url = 'https://github.com/Justevolve/evolve-framework/releases';
        if ($framework_changelog_url !== '') {
            $plugin_meta[] = sprintf('<a target="_blank" rel="noopener noreferrer" data-changelog href="%s">%s</a>', esc_url($framework_changelog_url), esc_html(__('Changelog', 'ev_framework')));
        }
        return $plugin_meta;
    }
    /**
     * Return the instance of the framework class.
     *
     * @static
     * @since 0.1.0
     * @return Ev_Framework
     */
    public static function instance()
    {
        if (self::$_instance === null) {
            self::$_instance = new Ev_Framework();
        }
        return self::$_instance;
    }
}
/* Let the fun begin! */
Ev_Framework::instance();
Example #2
0
/**
 * Load the framework instance.
 *
 * @since 0.1.0
 * @return Ev_Framework
 */
function ev_fw()
{
    return Ev_Framework::instance();
}