Exemple #1
0
 /**
  * Get the class instance
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
if (!class_exists('Kirki') && !is_admin()) {
    define('KIRKI_PATH', get_template_directory() . '/includes/plugins/kirki');
    define('KIRKI_URL', get_template_directory_uri() . '/includes/plugins/kirki');
    require_once get_template_directory() . '/includes/plugins/kirki/kirki.php';
}
/**
 * If Timber is not installed as a plugin include the embedded version.
 */
if (!class_exists('Timber') && !is_admin()) {
    require_once get_template_directory() . '/includes/plugins/timber-library/timber.php';
}
/**
 * Dummy function to prevent fatal errors with the Tonesque library
 * Only used when Jetpack is not installed.
 */
if (!function_exists('jetpack_require_lib') && !is_admin()) {
    function jetpack_require_lib()
    {
    }
}
function Maera()
{
    return Maera::get_instance();
}
// Global
$GLOBALS['maera'] = maera();
global $maera;
// Load our Maera_EDD class if EDD is installed
if (class_exists('Easy_Digital_Downloads')) {
    Maera_EDD::get_instance();
}