Exemplo n.º 1
0
 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
/**
 * Get setting page instance
 * Call this function in after_setup_theme only, b/c it need to check if current theme is ET's theme.
 *
 * @return AEM_ET_Setting_Page
 */
function AEM_Admin()
{
    //Check wherever current site is using ET's Themes
    if (!class_exists('AE_Base')) {
        //if not using ET's theme, we create new ET
        AEM_Admin::instance();
    }
    if (class_exists('QA_Admin')) {
        require_once AEM_PLUGIN_PATH . '/inc/ae/appengine.php';
    }
    return AEM_Setting_Page::instance();
}